joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439c00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2f8], 3
jne 0x439e2a
cmp byte [esi + 0x501], 0
push ebx
push edi
jne 0x439e1f
cmp byte [esi + 0x518], 0
jne 0x439e1f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x208]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], pe_nt_image_headers32
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x439ca3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00425e80
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00438650
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
lea eax, [ebp - 0x184]
mov dword [ebp - 0x20c], pe_nt_image_headers32
push 0
push eax
call fcn.004748f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x439d17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00425e80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00438650
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
call fcn.00438f80
add esp, 0x10
test al, al
jne 0x439d80
call fcn.0047f3a8
mov esi, dword [eax]
call fcn.0047f3a8
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00425e80
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00438650
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [ebp - 0x20c]
lea eax, [ebp - 0x184]
push eax
call fcn.00438f80
add esp, 0x10
test al, al
jne 0x439e1f
call fcn.0047f3a8
mov esi, dword [eax]
call fcn.0047f3a8
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00425e80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00438650
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
push esi
call fcn.00439820
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004728e8
mov esp, ebp
pop ebp
ret
Function at 0x43a8f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0xb0f], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43a94d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00438730
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
push dword [esi + 0xaac]
mov dword [ebp - 0x10], 1
call fcn.0043aba0
push dword [esi + 0xab0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0043aba0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x43a9bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00438730
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004728e8
mov esp, ebp
pop ebp
ret

Function at 0x43a9d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x108], 1
mov esi, dword [eax]
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43aa34
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00425e80
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00438730
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004728e8
mov esp, ebp
pop ebp
ret
Function at 0x43ae30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x43ae4b
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x4a5f6c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x4a5f7c
push edi
call fcn.00485f1a
add esp, 8
test eax, eax
je 0x43ae9c
test ebx, ebx
je 0x43ae8c
push 8
push 0
push edi
mov ecx, ebx
call dword [0x4a2398]
call ebx
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x43aecb
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43aecb
push 0x800
push 0
push edi
mov ecx, ebx
call dword [0x4a2398]
call ebx
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x43afb6
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43aee7
sub ecx, esi
mov esi, dword [fcn.0047e230]
sar ecx, 1
lea eax, [ecx + edx]
mov ecx, esi
lea eax, [eax*2 + 2]
push eax
call dword [0x4a2398]
call esi
mov esi, eax
add esp, 4
test esi, esi
je 0x43af97
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43af97
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43af31
sub ecx, edx
sar ecx, 1
mov dword [esi + ecx*2], 0x5c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43af50
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, esi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x43af65
test ebx, ebx
je 0x43af8c
push 8
push 0
push esi
mov ecx, ebx
call dword [0x4a2398]
call ebx
mov ebx, eax
jmp 0x43af99
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
jmp 0x43af99
xor ebx, ebx
push esi
mov esi, dword [fcn.0047dab0]
mov ecx, esi
call dword [0x4a2398]
call esi
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b140
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x43b199
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x43b186
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43b180
shr eax, 8
cmp al, 2
je 0x43b199
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
call fcn.004529a0
test eax, eax
jne 0x43b1fb
push str.iphlpapi.dll
call fcn.0043ae30
add esp, 4
mov dword [0x4c1dc8], eax
test eax, eax
je 0x43b1d5
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c1dc4]
test eax, eax
cmovne ecx, eax
mov dword [0x4c1dc4], ecx
push 3
push 2
push 0
push 6
call fcn.0043afd0
add esp, 0x10
test al, al
setne byte [0x4c3838]
push 0x4c3840
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret

Function at 0x43d630
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call fcn.004748f0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43d6fe
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43d6e0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43d6e0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x43d6e0
cmp esi, dword [ebp - 0xc]
jb 0x43d6e0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x43d6ee
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x43d6fe
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44033b
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x440376
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x44035d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x44036e
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x440378
inc edi
add eax, 0x28
cmp edi, esi
jb 0x440353
xor eax, eax
pop edi
pop esi
ret
Function at 0x440910
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4408a0
cmp dword [eax + 0xc], ebx
je 0x440943
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004402fb
jecxz 0x4408de
scasd eax, dword es:[edi]
sar byte [ecx], 1
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov dword [ebp + 0x10], edi
jmp 0x4408e8
call fcn.004402fb
bound edi, qword [esi]
lodsd eax, dword [si]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x440931
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x44090c
and eax, 0xffff
push eax
jmp fcn.00440910
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004402c0
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x440aea
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x4408f1
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x440892
invalid
call fcn.004402fb
jne 0x440940
xor esp, dword [edx]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4409af
add eax, esi

Function at 0x440990
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4409af
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4409aa
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x440994
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x44099c
cmp edx, ebx
jne 0x440aea
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x44096b
add eax, dword [eax + 4]
jmp 0x440958
mov dword [ebp + 0xc], ebx
jmp 0x4409ba
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4409d2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4409f0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x440a4e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x440a35
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x440a3e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x440a48
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x440a2a
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4409b4
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x440ba0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004402c0
add esp, 0xc
invalid
Function at 0x440f20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
invalid
test edx, esi
cli
Function at 0x442e90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x548], 2
jne 0x442ea8
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00442e50
mov al, 1
pop ebp
ret

Function at 0x443040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44306b
cmp dword [esi + 0x80], 0
je 0x44306b
push 2
push 3
push esi
call fcn.0043d040
push dword [ebp + 0xc]
call fcn.004429d0
add esp, 0x10
jmp 0x44307a
push dword [ebp + 0xc]
call fcn.004429d0
add esp, 4
test esi, esi
je 0x44308e
cmp dword [esi + 0x80], 0
je 0x44308e
push 3
push esi
call fcn.0043d090
add esp, 8
pop esi
pop ebp
ret
Function at 0x44e220
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004425f0
mov esi, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 8]
movups xmm0, xmmword [eax]
push 1
push esi
push edi
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x44e29b
nop
lea eax, [ebp - 0x20]
push eax
call fcn.004425f0
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.004426a0
add esp, 0x20
test edx, edx
ja 0x44e2a3
jb 0x44e285
cmp eax, 0x3e8
ja 0x44e2a3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x44e250
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e310
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x44e482
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x44e4f1
push ebx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x44e360
mov eax, 0x10
jmp 0x44e36e
cmp eax, 0x17
jne 0x44e446
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 0xc], eax
je 0x44e446
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x44e446
cmp ecx, eax
jb 0x44e446
mov edi, dword [fcn.0047e230]
mov ecx, edi
push 0x20
call dword [0x4a2398]
call edi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44e4dd
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov edi, dword [fcn.0047e230]
mov ecx, edi
push eax
call dword [0x4a2398]
call edi
add esp, 4
mov dword [ebx + 0x18], eax
test eax, eax
je 0x44e4bc
push dword [ebp - 0xc]
push dword [esi + 0x18]
push eax
call fcn.00474370
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x44e42e
mov edi, dword [0x4c0058]
mov ecx, edi
push eax
call dword [0x4a2398]
call edi
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
je 0x44e488
mov edi, dword [ebp - 8]
test edi, edi
mov eax, dword [ebp - 0x10]
cmove edi, ebx
mov dword [ebp - 8], edi
test eax, eax
je 0x44e443
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x44e351
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x44e463
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x44e4ea
push dword [ebp - 8]
call fcn.0044e2b0
add esp, 4
xor edi, edi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 4]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x18]
mov esi, dword [fcn.0047dab0]
mov edi, 8
mov ecx, esi
mov dword [ebp - 4], edi
call dword [0x4a2398]
call esi
mov esi, dword [fcn.0047dab0]
add esp, 4
mov ecx, esi
push ebx
call dword [0x4a2398]
call esi
add esp, 4
jmp 0x44e454
mov esi, dword [fcn.0047dab0]
mov edi, 8
push ebx
mov ecx, esi
mov dword [ebp - 4], edi
call dword [0x4a2398]
call esi
add esp, 4
jmp 0x44e454
mov edi, 8
mov dword [ebp - 4], edi
jmp 0x44e454
mov edi, dword [ebp - 8]
test edi, edi
jne 0x44e478
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e9f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0048665c
add esp, 0x18
test eax, eax
je 0x44ea12
cmp eax, 0xffffffff
jne 0x44ea14
xor eax, eax
pop ebp
ret
Function at 0x45a100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x45a121
jl 0x45a118
test edi, edi
jne 0x45a121
xor eax, eax
xor edx, edx
jmp 0x45a1e2
cmp dword [ebx + 0x38], 0
je 0x45a136
push eax
push edi
push dword [ebp + 8]
call fcn.0045a1f0
jmp 0x45a1e2
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45a17d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x45a17d
cmp eax, edi
jb 0x45a157
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00474370
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x45a183
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x45a1d7
mov ecx, ebx
call fcn.004597c1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x45a1c2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0047f7b0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x45a1d7
jmp 0x45a195
test edx, edx
je 0x45a1d7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0047f7b0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4723a1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00486bca
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4723e0
sub eax, 1
je 0x4723db
sub eax, 1
je 0x4723d7
xor eax, eax
leave
ret
push 3
jmp 0x4723e2
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x473aea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x473b29
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x473b29
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x473b29
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x473b29
cmp dword [ecx + 0x74], 0xe
jbe 0x473b29
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x47ff28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00473320
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0048fb7d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47ff6a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4800c6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00473070
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c2a10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00491789
mov ecx, dword [esi*4 + 0x4c2a10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4800bf
cmp eax, dword [ecx + edi + 0x24]
jne 0x4800bf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4800bf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00491789
add esp, 0x14
test edx, edx
jl 0x4800bf
jg 0x480035
test eax, eax
jb 0x4800bf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4800bf
jl 0x48004f
cmp dword [ebp - 0x1008], eax
ja 0x4800bf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48006d
test ebx, ebx
je 0x4800a6
cmp ecx, edi
jae 0x4800a6
mov al, byte [ecx]
cmp al, 0xd
jne 0x480087
lea eax, [edi - 1]
cmp ecx, eax
jae 0x480093
cmp byte [ecx + 1], 0xa
jne 0x480093
inc ecx
jmp 0x480093
movzx eax, al
movsx eax, byte [eax + 0x4c02c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48006d
cmp edx, ebx
jne 0x48006d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4800c4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004728e8
leave
ret