joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a970
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ebx
lea ebx, [ecx + 4]
mov dword [ebp - 0x14], ebx
push esi
push edi
test eax, eax
je 0x40a99d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor esi, esi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
lea ebx, [esi + 2]
movaps xmm0, xmmword [0x442e60]
movups xmmword [ebp - 0x34], xmm0
test eax, eax
jne 0x40a9c6
xor edi, edi
jmp 0x40aa65
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, ebx
test ax, ax
jne 0x40a9d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
imul ebx
mov edi, eax
add eax, 0x80000000
adc edx, esi
mov dword [ebp - 0xc], edx
jne 0x40aa5e
cmp eax, 0xffffffff
ja 0x40aa5e
cmp edi, 0x400
jg 0x40aa14
mov ecx, edi
call fcn.00411850
test al, al
je 0x40aa14
mov eax, edi
call fcn.0042ef40
mov ebx, esp
jmp 0x40aa38
mov eax, edi
not eax
cmp eax, 8
jb 0x40ab5d
lea eax, [edi + 8]
push eax
call fcn.0041e428
add esp, 4
test eax, eax
je 0x40aa5e
mov dword [eax], esi
lea ebx, [eax + 8]
mov esi, eax
test ebx, ebx
je 0x40aa5e
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x40aa60
xor edi, edi
mov ebx, 2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ab0a
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa75
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
imul ebx
mov ebx, eax
add eax, 0x80000000
adc edx, 0
mov dword [ebp - 0xc], edx
jne 0x40ab0a
cmp eax, 0xffffffff
ja 0x40ab0a
cmp ebx, 0x400
jg 0x40aabe
mov ecx, ebx
call fcn.00411850
test al, al
je 0x40aabe
mov eax, ebx
call fcn.0042ef40
mov eax, esp
mov dword [ebp - 0xc], esp
jmp 0x40aae5
mov eax, ebx
not eax
cmp eax, 8
jb 0x40ab5d
lea eax, [ebx + 8]
push eax
call fcn.0041e428
add esp, 4
test eax, eax
je 0x40ab0a
mov dword [eax], esi
mov esi, eax
add eax, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40ab0a
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [eax], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
jmp 0x40ab0c
xor eax, eax
test edi, edi
je 0x40ab27
test eax, eax
je 0x40ab27
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
jmp 0x40ab32
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, 0xffffffff
test esi, esi
je 0x40ab45
push esi
mov esi, dword [esi]
call fcn.0041d8e7
add esp, 4
test esi, esi
jne 0x40ab36
mov eax, edi
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret 0x18
push 0x80070216
call fcn.00402be0
int3
Function at 0x40ab70
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
xorps xmm0, xmm0
lea eax, [esi + 0x10]
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40aba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40aba2
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x40ac2c
lea eax, [esi + 0x28]
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40abd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40abd7
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x40ac32
mov dword [esi], 1
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x40], 0xffffffff
mov byte [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x2710
cmp dword [0x447b90], 0
je 0x40ac28
push 0x447a00
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x447b90], eax
mov eax, esi
pop esi
ret
push eax
call fcn.00402be0
push eax
call fcn.00402be0
int3

Function at 0x40ade0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp byte [esi + 0x44], 0
je 0x40ae0f
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x40]
push ebx
mov bl, 1
cmp eax, 0xffffffff
jne 0x40ae2e
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x40ae8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40ae87
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ae8a
push 0x2c
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041c000
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 0
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ae8c
mov dword [esi + 0x48], eax
xor bl, bl
mov ecx, dword [ebp - 4]
mov al, bl
mov byte [esi + 0x44], bl
xor ecx, ebp
pop ebx
pop esi
call fcn.00419174
mov esp, ebp
pop ebp
ret 8
Function at 0x40aeb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x4c]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x40aedd
pop edi
mov dword [esi + 0x48], 0x2749
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x40aefc
pop edi
mov dword [esi + 0x48], 0x2734
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
mov dword [ebx], 0
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 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x40af49
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x40af8c
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x40af8f
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x40af86
push dword [ebp - 4]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40afb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x4c]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x40afdf
mov dword [esi + 0x48], 0x2749
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push dword [esi + 4]
call edi
cmp eax, 0x80
jne 0x40afff
mov dword [esi + 0x48], 0x2734
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x10]
push eax
mov dword [ebx], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
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 0x40b06d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x40b0b0
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40b0b3
mov 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 0x40b0aa
push dword [ebp + 8]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40b250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0041c000
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0041c000
add esp, 0x18
lea ecx, [ebp - 0x20c]
call fcn.0040b310
test eax, eax
lea eax, [ebp - 0x20c]
je 0x40b2ac
push eax
push str._sNGM
jmp 0x40b2c9
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b2d8
lea eax, [ebp - 0x20c]
push eax
push str._sNexonNGM
lea eax, [ebp - 0x61c]
push eax
call fcn.00407ba0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.00421f7a
add esp, 0xc
xor eax, eax
mov ecx, esi
mov word [esi + 0x206], ax
call fcn.0040b780
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419174
mov esp, ebp
pop ebp
ret
Function at 0x40b430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push 0
push eax
call fcn.0041c000
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040b310
test eax, eax
jne 0x40b523
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b523
call fcn.004026f0
mov ecx, eax
test ecx, ecx
jne 0x40b4c4
push 0x80004005
call fcn.00402be0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x21c]
push str._sNexon
push eax
call fcn.00407a40
mov esi, dword [ebp - 0x21c]
add esp, 0xc
mov ecx, edi
push esi
call fcn.00404840
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b56e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40b56e
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x218], ax
je 0x40b55f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b550
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00404d10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret

Function at 0x40b590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push 0x201
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b605
mov esi, dword [ebp + 0x14]
mov dword [ebp - 8], 1
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b5fc
cmp dword [ebp - 8], 1
jne 0x40b5fc
mov eax, dword [ebp - 0xc]
cmp dword [esi], eax
jb 0x40b5fc
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b780
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b7b5
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.0041bea7
add esp, 8
test eax, eax
je 0x40b8aa
push esi
push edi
add eax, 2
push 0x5c
push eax
call fcn.0041bea7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add esp, 8
test edi, edi
je 0x40b861
mov esi, edi
lea eax, [ebp - 0x210]
sub esi, ebx
sar esi, 1
push esi
push ebx
push eax
call fcn.00421f7a
add esi, esi
add esp, 0xc
cmp esi, 0x20a
jae 0x40b8bb
xor eax, eax
mov word [ebp + esi - 0x210], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b847
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b84d
call esi
cmp eax, 0xb7
jne 0x40b881
jmp 0x40b84d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0041bea7
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b7e4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b894
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b894
call esi
cmp eax, 0xb7
je 0x40b894
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00419174
mov esp, ebp
pop ebp
ret
call fcn.004199e5
int3
Function at 0x40bf30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430ec8
mov eax, dword fs:[0]
push eax
mov eax, 0x59f0
call fcn.0042f270
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x2484]
call fcn.0040a790
push 4
push dword [0x4422c0]
mov eax, 0x50
mov dword [ebp - 0x34], 2
mov word [ebp - 0x38], ax
mov eax, ecx
push 0x21
push eax
mov dword [ebp - 0x30], 4
call fcn.00421a55
push eax
call fcn.00401f70
add esp, 0x14
lea ecx, [ebp - 0x2484]
call fcn.0040a790
push esi
call fcn.0040a1b0
test eax, eax
jne 0x40bfd5
test edi, edi
je 0x40bfce
push esi
push str.Invalid_URL____s
push edi
call fcn.00407a40
add esp, 0xc
xor eax, eax
jmp 0x40c130
lea ecx, [ebp - 0x59f4]
call fcn.0040d5c0
push ecx
lea eax, [ebp - 0x2484]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x59f4]
call fcn.0040d7b0
test al, al
jne 0x40c023
test edi, edi
je 0x40c011
push esi
push str.AtlHttp_Navigate_Fail____s
push edi
call fcn.00407a40
add esp, 0xc
lea ecx, [ebp - 0x59f4]
call fcn.0040ccd0
xor eax, eax
jmp 0x40c130
mov eax, dword [0x448ebc]
test eax, eax
jne 0x40c058
push 0x20
call fcn.0041965a
add esp, 4
mov dword [ebp - 0x59fc], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004126f0
mov dword [0x448ebc], eax
test eax, eax
jne 0x40c058
xor ecx, ecx
mov dword [ecx], 1
lea ecx, [eax + 0x14]
xor eax, eax
cmp eax, dword [ecx]
push 0
push 0x80
push 2
sbb eax, eax
and eax, ecx
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x59fc], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x40c0bd
test edi, edi
je 0x40c0a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CreateFile_Fail____s__d_
push edi
call fcn.00407a40
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x59f4]
call fcn.0040ccd0
xor eax, eax
jmp 0x40c130
mov eax, dword [ebp - 0x492c]
lea ecx, [ebp - 0x59f8]
add eax, dword [ebp - 0x2498]
add eax, dword [ebp - 0x249c]
push 0
push ecx
push dword [ebp - 0x24a0]
mov dword [ebp - 0x59f8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c115
test edi, edi
je 0x40c10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.WriteFile_Fail____s__d_
push edi
call fcn.00407a40
add esp, 0x10
test esi, esi
je 0x40c0ae
push esi
jmp 0x40c0a8
test esi, esi
je 0x40c120
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x59f4]
call fcn.0040ccd0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret
Function at 0x40c600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1002c
call fcn.0042f270
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10014], eax
mov dword [ebp - 0x10018], edi
cmp eax, 0xffffffff
je 0x40c770
lea ecx, [ebp - 0x10010]
mov dword [ebp - 0x10010], edi
push ecx
push eax
mov dword [ebp - 0x1000c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40c65c
xorps xmm0, xmm0
movlpd qword [ebp - 0x10010], xmm0
mov ebx, dword [ebp - 0x1000c]
lea eax, [ebp - 0x10010]
mov esi, dword [ebp - 0x10010]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x10028], xmm0
push dword [ebp - 0x10024]
mov dword [ebp - 0x1001c], ebx
push dword [ebp - 0x10028]
mov dword [ebp - 0x10010], edi
push dword [ebp - 0x10014]
mov dword [ebp - 0x1000c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test ebx, ebx
jne 0x40c6b4
test esi, esi
je 0x40c730
test ebx, ebx
ja 0x40c6c4
jb 0x40c6c0
cmp esi, 0x10000
jae 0x40c6c4
mov edi, esi
jmp 0x40c6c9
mov edi, 0x10000
push 0
lea eax, [ebp - 0x1000c]
push eax
push edi
lea eax, [ebp - 0x10008]
push eax
push dword [ebp - 0x10014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c72e
mov ebx, dword [ebp - 0x1000c]
cmp ebx, edi
jne 0x40c72e
mov ecx, dword [ebp - 0x10018]
lea edx, [ebp - 0x10008]
push ebx
call fcn.004134a0
add esp, 4
mov edi, eax
sub esi, ebx
mov dword [ebp - 0x10018], edi
mov ebx, dword [ebp - 0x1001c]
sbb ebx, 0
mov dword [ebp - 0x1001c], ebx
test ebx, ebx
ja 0x40c6c4
jb 0x40c730
test esi, esi
jne 0x40c6b2
jmp 0x40c730
xor edi, edi
push 0
lea eax, [ebp - 0x10028]
mov dword [ebp - 0x10028], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x10024], 0
movlpd qword [ebp - 0x10010], xmm0
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push dword [ebp - 0x10014]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419174
mov esp, ebp
pop ebp
ret
Function at 0x40cb80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431040
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004023b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x40cbf8
push str._ngm
push eax
call fcn.0041ad04
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x40cbf2
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x40cc1b
cmp dword [eax - 0xc], 0
jge 0x40cbfd
or ecx, 0xffffffff
jmp 0x40cc1b
push 0x4426e8
push eax
call fcn.0041ad04
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40cc16
or ecx, 0xffffffff
jmp 0x40cc1b
sub ecx, dword [ebp - 0x10]
sar ecx, 1
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401cd0
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40cc46
mov eax, dword [esi]
jmp 0x40cc48
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x40cc66
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cc57
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00404d10
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cc90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40ccaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412320
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 0x2450]
lea edx, [edi + 0x42]
mov dword [esi + 0x10], eax
test edx, edx
jne 0x41233f
xor ecx, ecx
jmp 0x412357
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412347
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x20]
call fcn.004022b0
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x41239c
movups xmm0, xmmword [str.Session_not_initialized_]
pop edi
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [0x442ae0]
movups xmmword [esi + 0x40], xmm0
movups xmm0, xmmword [0x442af0]
movups xmmword [esi + 0x50], xmm0
mov ax, word [0x442b00]
mov word [esi + 0x60], ax
xor al, al
pop esi
pop ebx
pop ebp
ret 4
movzx eax, word [edi + 0x244c]
test ax, ax
jne 0x4123af
movzx eax, word [esi + 0x1830]
push 0
push 0
push dword [esi + 0x1834]
push 0
push 0x4401e0
push eax
push dword [esi + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x412402
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], eax
push ecx
push 0x400
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4