joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411537
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c4e6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x46b200]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4115a1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0x58], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, eax
lea eax, [esp + 0x24]
push eax
call fcn.00415290
mov dword [esp + 0x70], ebx
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x14]
jmp 0x411603
mov ecx, dword [esi + 0x64]
cmp dword [ecx - 0xc], ebx
jne 0x411611
cmp eax, ebx
jne 0x411611
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0x58], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x54]
mov edi, eax
mov eax, dword [esi + 0x58]
cmp eax, ecx
jb 0x4115d1
sub eax, ecx
jmp 0x4115d4
sub eax, ecx
dec eax
movzx ecx, word [esi + 0x5e]
cmp dword [esi + 0x5c], ebx
push ecx
movzx ecx, word [esi + 0x5c]
push ecx
setl cl
movzx ecx, cl
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004152c6
mov dword [esp + 0x70], 2
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x14]
or dword [esp + 0x70], 0xffffffff
lea edi, [esp + 0x24]
call fcn.004143e3
mov eax, dword [ebp + 8]
lea edi, [esi + 0x64]
call fcn.0040488e
mov ecx, dword [esi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
mov ecx, dword [eax]
push str.window.external.onsaiclose__s_
push eax
call dword [ecx + 0xc]
add esp, 0xc
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea ebx, [esi + 4]
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
movsd dword es:[edi], dword [esi]
call fcn.00426c5a
mov eax, ebx
call fcn.00426f13
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416075
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x44db69
call fcn.0044831c
and dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
setne al
test al, al
je 0x416118
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00401415
mov dword [ebp - 4], 2
cmp byte [ebp + 8], 0
je 0x4160d9
lea eax, [ebp + 8]
push 0x456d0c
push eax
lea edi, [ebp + 0xc]
call fcn.00404b62
pop ecx
pop ecx
mov byte [ebp - 4], 3
call fcn.0040488e
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00401452
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00408221
mov byte [ebp - 4], 4
call fcn.0042bd57
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040114e
test bl, bl
jne 0x41610c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401452
call fcn.004483f4
ret 8
Function at 0x4183b6
Capabilities:
Create thread
Resume thread

Disassembly:
push 8
mov eax, 0x44db2c
call fcn.0044831c
mov ebx, ecx
push 0x10
call fcn.00436221
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
test edi, edi
je 0x418407
mov eax, dword [ebp + 8]
lea esi, [edi + 4]
mov dword [edi], ebx
call fcn.00401403
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
call fcn.004081a9
mov byte [ebp - 4], 2
mov dword [edi + 0xc], 2
mov byte [ebp - 4], 0
jmp 0x418409
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push 4
push edi
xor esi, esi
push 0x4186e9
push esi
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x418430
xor al, al
jmp 0x418457
lea esi, [ebx + 0x40]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
add ebx, 0x10
call fcn.00418aee
push esi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov al, 1
call fcn.004483f4
ret 8

Function at 0x4192c7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c00e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x46b200]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0x454740
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
call fcn.00401415
push str.ap_pbundler.comP_inball_Corporation.Blinkx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x38], ebx
call fcn.00401415
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x3c], 1
call fcn.0042fae1
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x10]
jmp 0x41938e
lea eax, [esp + 0xc]
push eax
lea esi, [esp + 0x18]
call fcn.0042fef5
push 0x453f00
push 0x4544cc
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 5
call fcn.004048cf
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.00404eb4
mov byte [esp + 0x30], 4
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4193a5
add eax, 0xfffffff0
call fcn.0040114e
lea esi, [esp + 0x14]
call fcn.0042fe74
test al, al
jne 0x41934b
jmp 0x4193af
add eax, 0xfffffff0
mov bl, 1
call fcn.0040114e
or dword [esp + 0x30], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0042fc88
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419848
Capabilities:
Get graphical window text

Disassembly:
push 0x80c
mov eax, 0x44bfc6
call fcn.00448385
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
je 0x4198b6
push 0x400
lea ecx, [ebp - 0x814]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jle 0x4198b6
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.00401415
push 1
lea eax, [ebp - 0x818]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.0042f589
or dword [ebp - 4], 0xffffffff
mov bl, al
mov eax, dword [ebp - 0x818]
add esp, 0xc
add eax, 0xfffffff0
call fcn.0040114e
mov al, bl
call fcn.00448408
ret 4
Function at 0x41adc8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41adeb
call fcn.0040cd57
jmp 0x41aded
xor eax, eax
pop ebp
ret 8

Function at 0x41ae72
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov eax, dword [eax]
push 0
push dword [0x47005c]
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41ae99
call fcn.0040cd57
jmp 0x41ae9b
xor eax, eax
pop ebp
ret 4
Function at 0x41b7df
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
jle 0x41b848
sub ecx, edi
push ebx
mov dword [ebp - 4], ecx
mov dword [ebp + 8], edx
push esi
inc byte [eax + 0x100]
movzx esi, byte [eax + 0x100]
mov cl, byte [esi + eax]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov bl, byte [ecx + eax]
mov dl, byte [esi + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp + 8]
jne 0x41b7f5
pop esi
pop ebx
pop edi
leave
ret 4

Function at 0x41c26f
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push 0x41c421
push ebx
push ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x41c2b6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.UserRetryDownload___CreateThread_error:__d
lea ebx, [edi + 0x470]
call fcn.0042f50f
pop ecx
pop ecx
jmp 0x41c36e
push esi
push dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push eax
call esi
mov dword [ebp - 8], eax
cmp eax, 0x102
jne 0x41c32b
cmp dword [edi + 0x28], ebx
jbe 0x41c2de
push 0xffffffffffffffff
push dword [ebp - 0xc]
call esi
mov dword [ebp - 8], eax
jmp 0x41c318
push 3
pop eax
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x7d0
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push str.UserRetryDownload___terminated_thread
lea ebx, [edi + 0x470]
call fcn.0042f50f
pop ecx
xor ebx, ebx
cmp dword [ebp - 8], 0x102
jne 0x41c32b
push dword [edi + 0xc]
push str.UserRetryDownload___WAIT_TIMEOUT__lu_
jmp 0x41c357
cmp dword [ebp - 8], 0xffffffff
jne 0x41c33f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.UserRetryDownload___WAIT_FAILED_error:__d
jmp 0x41c357
cmp dword [ebp - 8], ebx
jne 0x41c34f
mov al, byte [edi + 0x890]
mov byte [ebp - 1], al
jmp 0x41c364
push dword [ebp - 8]
push str.UserRetryDownload___unknown_wait_return:__d
lea ebx, [edi + 0x470]
call fcn.0042f50f
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x41dd92
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x41de07
cmp word [ebx + 8], 2
jne 0x41dde7
cmp word [ebx + 0xa], 4
jne 0x41dde7
mov edi, dword [ebx + 0xc]
jmp 0x41dde1
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041dd2b
mov dword [esi], eax
test eax, eax
je 0x41de02
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x41ddc5
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.00437f7f
add esp, 0x10
xor eax, eax
jmp 0x41de2d
push 8
pop eax
jmp 0x41de2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x41de2d
dec ecx
je 0x41de28
dec ecx
je 0x41de21
dec ecx
jmp 0x41de2d
mov eax, 0x2afb
jmp 0x41de2d
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x41e480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x46b200]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46fc10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x238], str.getaddrinfo
mov dword [ebp - 0x234], 0x41dfe6
mov dword [ebp - 0x230], str.getnameinfo
mov dword [ebp - 0x22c], 0x41e2b5
mov dword [ebp - 0x228], str.freeaddrinfo
mov dword [ebp - 0x224], fcn.0041dfaa
jne 0x41e5ff
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x41e5f5
lea eax, [ebp - 0x220]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00437c20
push str.ws2_32
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00437f12
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x41e559
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41e555
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x41e5ae
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00437c20
push str.wship6
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00437f12
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x41e5f5
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41e5aa
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x41e5f5
xor esi, esi
push dword [ebp + esi*8 - 0x238]
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + esi*8 - 0x234], eax
test eax, eax
je 0x41e5d1
inc esi
cmp esi, 3
jl 0x41e5b0
jmp 0x41e5da
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x41e5f5
xor eax, eax
mov ecx, dword [ebp + eax - 0x234]
mov dword [eax + 0x46db58], ecx
add eax, 8
cmp eax, 0x18
jl 0x41e5e0
mov dword [0x46fc10], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x46db58]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004350d6
leave
ret 4
Function at 0x41e928
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46b200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x41e944
mov al, 1
jmp 0x41e9b4
mov eax, dword [esi + 0x40]
mov byte [ebp - 0x31], 1
cmp eax, 0xffffffff
jne 0x41e954
xor al, al
jmp 0x41e9b4
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x41e9ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41e9a8
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x41e9ab
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00435b70
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x41e9ae
mov dword [esi + 0x48], eax
mov byte [ebp - 0x31], bl
mov al, byte [ebp - 0x31]
mov byte [esi + 0x44], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004350d6
leave
ret 4

Function at 0x41e9c3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x41e9ea
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x41ea91
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x41ea08
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x41ea90
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x41ea50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x41ea82
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x41ea85
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x41ea7c
mov bl, 1
jmp 0x41ea85
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x41ea96
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
mov ebx, eax
call edi
test eax, eax
je 0x41eac0
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x41eb78
push 0
push dword [esi + 4]
call edi
cmp eax, 0x80
jne 0x41ead7
mov dword [esi + 0x48], 0x2734
jmp 0x41eab9
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
and dword [ebx], 0
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41eb35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x41eb6a
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x41eb6d
and dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x41eb64
mov bl, 1
jmp 0x41eb6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop edi
pop ebx
leave
ret 4
Function at 0x42247d
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
push edi
mov edi, eax
lea eax, [edi + 0x14]
push eax
call fcn.004222f0
lea eax, [edi + 0x2c]
push eax
call fcn.004222f0
or dword [edi + 0x44], 0xffffffff
xor ebx, ebx
mov dword [edi + 4], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov byte [edi + 0x48], bl
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], 0x2710
cmp dword [0x46e9c0], ebx
je 0x4224d1
push 0x46e830
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x46e9c0], eax
fld dword [0x45c700]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x45c6fc]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x45c6f8]
mov dword [esi + 4], ebx
fstp dword [esi + 0x14]
mov dword [esi + 8], 0x11
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00418f8d
fld dword [0x45c700]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x45c6fc]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x45c6f8]
mov dword [esi + 8], 0x11
fstp dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00418f8d
lea esi, [edi + 0xc8]
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
call fcn.0041f90b
lea esi, [edi + 0x10d8]
call fcn.0041d16d
lea esi, [edi + 0x3544]
mov ecx, section..data
call fcn.00401577
lea esi, [edi + 0x3548]
mov ecx, section..data
call fcn.00401577
lea esi, [edi + 4]
call fcn.0041e803
call fcn.00420fdc
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x429d1e
Capabilities:
Check os version

Disassembly:
push 0x120
mov eax, 0x449cee
call fcn.00448385
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
mov ecx, section..data
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], ebx
call fcn.00401577
push 0x114
xor esi, esi
lea eax, [ebp - 0x124]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x12c], esi
call fcn.00435b70
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x429de5
mov eax, dword [ebp - 0x120]
cmp eax, 3
jb 0x429e1d
cmp eax, 4
jbe 0x429dde
cmp eax, 5
je 0x429db0
cmp eax, 6
jne 0x429e1d
push str.vista
jmp 0x429e12
cmp dword [ebp - 0x11c], ebx
jne 0x429dbf
push str.win2k
jmp 0x429e12
cmp dword [ebp - 0x11c], esi
jne 0x429dce
push str.winxp
jmp 0x429e12
cmp dword [ebp - 0x11c], 2
jb 0x429e1d
push str.win2k3
jmp 0x429e12
push str.winnt
jmp 0x429e12
cmp dword [ebp - 0x114], esi
jne 0x429e1d
cmp dword [ebp - 0x11c], 0x5a
jb 0x429dfd
push str.winme
jmp 0x429e12
cmp dword [ebp - 0x11c], 0xa
jb 0x429e0d
push str.win98
jmp 0x429e12
push str.win95
push dword [ebp - 0x128]
call fcn.00404e5a
mov eax, dword [ebp - 0x128]
call fcn.00448408
ret
Function at 0x429e29
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ebx, [eax - 1]
mov eax, dword [ebp + 8]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040114e
mov al, bl
pop ebx
pop ebp
ret
Function at 0x429f08
Capabilities:
Check if file exists
Create process on windows
Create process suspended

Disassembly:
push 0x6c
mov eax, 0x44cd23
call fcn.0044831c
mov esi, ecx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00401415
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429f7f
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.File_does_not_exist:__s
push eax
call fcn.0042f02b
add esp, 0xc
push eax
mov byte [ebp - 4], 2
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x20]
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040114e
xor bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040114e
mov al, bl
call fcn.004483f4
ret
push 0x44
pop edi
push edi
lea eax, [ebp - 0x78]
push 0
push eax
mov byte [ebp + 0xb], 0
call fcn.00435b70
and dword [ebp - 0x14], 0
add esp, 0xc
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x78], edi
jne 0x429fb2
xor eax, eax
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 0x14], 0x8000000
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040167a
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.00429e4f
pop ecx
pop ecx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 6
call fcn.0040114e
lea eax, [ebp - 0x2c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x42a048
push dword [ebp + 0x14]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, ebx
jne 0x42a035
mov byte [ebp + 0xb], 1
cmp dword [ebp + 0x18], ebx
je 0x42a09a
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
jmp 0x42a09a
cmp eax, 0x102
jne 0x42a09a
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x42a09a
mov byte [eax], 1
jmp 0x42a09a
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov byte [ebp - 4], 7
push dword [eax]
lea eax, [ebp + 8]
push dword [ebp - 0x10]
push str.CreateProcess_on_file__s_fail:__s
push eax
call fcn.0042f02b
add esp, 0x10
mov byte [ebp - 4], 8
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1c]
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp + 0xb], bl
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x42a0aa
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x28], ebx
je 0x42a0b4
push dword [ebp - 0x28]
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040114e
mov bl, byte [ebp + 0xb]
jmp 0x429f68