joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404674
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40482c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4046d5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404848
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404742
xor eax, eax
push ebp
push 0x40473b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404724
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404868
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404742
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404823
cmp byte [ebp - 0xd], 0
jne 0x404784
cmp byte [ebp - 0x12], 0
je 0x404823
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40479d
dec ebx
cmp byte [ebx], 0x2e
je 0x4047ac
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40479c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404823
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047d9
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404823
cmp byte [ebp - 0xd], 0
je 0x404823
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404823
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b08
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406c12
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x406b5b
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403298
jmp 0x406bf9
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00406abc
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406adc
mov ebx, eax
test esi, esi
je 0x406b83
dec esi
test esi, esi
jl 0x406b83
cmp edi, ebx
jne 0x406b62
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403368
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.004035c8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004033c4
cmp eax, 2
jl 0x406bf9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406bf9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004033c4
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406bf9
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004033c4
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.004035c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c19
lea eax, [ebp - 0x110]
call fcn.004031b4
ret

Function at 0x406c8c
Capabilities:
Get file attributes

Disassembly:
call fcn.004058cc
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x406ca0
dec eax
and al, 0x10
sete al
ret

Function at 0x406e0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406e76
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403368
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406d3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e7d
lea eax, [ebp - 0x10c]
call fcn.004031b4
ret

Function at 0x406e84
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0
mov eax, esi
call fcn.00403588
push eax
mov eax, ebx
call fcn.00403588
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, edi
mov edx, esp
mov ecx, 0x105
call fcn.00403398
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x4071a8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407240
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x4071f5
mov eax, dword [ebx + 0x19]
call fcn.00403588
push eax
push esi
mov eax, edi
call fcn.00403588
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403588
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x40722a
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403588
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004068e0
mov eax, dword [ebp - 8]
call fcn.00403588
push eax
mov eax, edi
call fcn.00403588
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403588
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407247
lea eax, [ebp - 8]
call fcn.004031b4
ret
Function at 0x407ae8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
call fcn.004096a0
test eax, eax
je 0x407b04
cmp dword [eax + 0x155], ebx
jne 0x407b04
xor edx, edx
mov dword [eax + 0x155], edx
mov ecx, dword [ebx + 0x18]
jecxz 0x407b11
push 0
push ecx
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.00405ab0
mov eax, ebx
call fcn.00409248
xor ecx, ecx
cmp byte [ebx + 0x8a], cl
jne 0x407c7f
xchg byte [ebx + 0xfb], cl
jecxz 0x407b40
mov eax, dword [ebx + 0xf6]
call fcn.00402534
inc byte [ebx + 0x8a]
mov eax, dword [ebx + 0x10a]
call fcn.00405a94
mov eax, dword [ebx + 0x112]
call fcn.00405a94
mov eax, dword [ebx + 0x40]
call fcn.00405a94
xor ecx, ecx
mov dword [ebx + 0x10a], ecx
mov dword [ebx + 0x112], ecx
mov dword [ebx + 0x40], ecx
xchg dword [ebx + 0x52b], ecx
jecxz 0x407b83
xchg ecx, eax
call fcn.00402534
mov eax, dword [ebx + 0x52f]
call fcn.00405a94
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x407c00
xor ecx, ecx
xchg dword [ebx + 0x93], ecx
jecxz 0x407ba5
push ecx
call sub.user32.dll_DestroyAcceleratorTable
mov eax, dword [ebx + 0x8f]
call fcn.00405a94
mov eax, dword [ebx + 0x97]
test eax, eax
je 0x407bc1
call fcn.00405a94
jmp 0x407bb0
push dword [ebx + 0x18]
call sub.user32.dll_IsWindow
test eax, eax
je 0x407bfb
push eax
push 1
push 0x80
push dword [ebx + 0x18]
call sub.user32.dll_SendMessageA
test eax, eax
je 0x407bed
cmp byte [ebx + 0x35], 0
jne 0x407bed
push eax
call sub.user32.dll_DestroyIcon
cmp byte [ebx + 0x48], 0
jne 0x407bfb
push dword [ebx + 0x18]
call sub.user32.dll_DestroyWindow
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x36]
test eax, eax
je 0x407c0c
call fcn.00402534
mov eax, dword [ebx + 0x26d]
test eax, eax
je 0x407c1b
call fcn.00402534
mov ecx, dword [ebx + 0x49]
jecxz 0x407c3a
cmp dword [ecx + 0x155], ebx
jne 0x407c30
xor eax, eax
mov dword [ecx + 0x155], eax
mov eax, dword [ecx + 0x60]
mov edx, ebx
call fcn.00405c28
mov ecx, dword [ebx + 0x79]
jecxz 0x407c45
push ecx
call sub.gdi32.dll_DeleteObject
push ebx
push dword [ebx + 0x60]
push dword [ebx + 0x568]
push dword [ebx + 0x56c]
push dword [ebx + 0x2f5]
push dword [ebx + 0xcb]
mov bl, 5
pop eax
call fcn.00405a94
dec bl
jne 0x407c63
pop ebx
lea eax, [ebx + 0x4fb]
call fcn.004031b4
xchg ebx, eax
call fcn.00405aa0
pop ebx
ret
Function at 0x408c7c
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x408c8b
mov edx, dword [edx + 0x36]
jmp fcn.00403368
mov ecx, dword [edx + 0x18]
jecxz 0x408c83
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.004036f4
pop edx
mov ecx, dword [ebx]
jecxz 0x408cb3
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40c720
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
cmp dword [0x419504], 0
jne 0x40c741
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
jmp 0x40c743
mov al, 1
inc dword [0x419504]
add esp, 0x190
ret

Function at 0x410578
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x41a5a8
cmp dword [edi], 0
jne 0x4105f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x41a5a4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x419568
mov ecx, 2
call fcn.00402608
mov edx, 0x410550
lea eax, [esi + 5]
call fcn.00410570
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00410570
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0x52b
jl 0x4105c9
mov dword [0x41a5a4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x402790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x51d56c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4027e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4027da
shr eax, 8
cmp al, 2
jne 0x4027da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
Function at 0x40d3f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x40d40b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x40d43f
cmp eax, 2
jg 0x40d43f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d8810]
push 2
push edx
call fcn.004acc70
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.004acc70
add esp, 0x20
xor eax, eax
ret

Function at 0x40d880
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [eax + 0x2b8]
push ebx
mov ebx, dword [eax + ecx*4 + 0x168]
push esi
lea esi, [ecx + 0x19]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x40d91b
cmp dword [eax + ecx*4 + 0x180], 0x40d5d0
jne 0x40d91b
cmp dword [esi], 0
je 0x40d8ba
test edi, edi
je 0x40d91b
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00402c40
add esp, 0x10
cmp eax, 0xffffffff
je 0x40d91b
test al, 1
je 0x40d91b
cmp dword [esi], 0
jne 0x40d8fd
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x40d918
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40d91b
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
ret

Function at 0x40db20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51d56c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x47c], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x40dbae
mov edx, dword [esi + 0x480]
push edx
mov dword [ebp - 0x10], 1
call fcn.004147a0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x484]
push eax
call fcn.004147a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
Function at 0x40e1c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x51d56c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x40e3a9
cmp dword [esi + 0x234], 0
push edi
jne 0x40e39f
cmp dword [esi + 0x29c], 0
jne 0x40e39f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x40e264
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0041b610
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0040d530
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.004abb90
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x40e2cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0041b610
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0040d530
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0xcc]
lea ebx, [esi + 0xfc]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.0040e180
test eax, eax
jne 0x40e32a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.0041b610
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0040d530
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x130]
lea edi, [eax + 0x100]
lea esi, [ebp - 0x84]
call fcn.0040e180
test eax, eax
jne 0x40e399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0041b610
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0040d530
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.0040e120
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
Function at 0x40e3f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51eb1c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x40e441
push 3
push 2
push eax
push 6
call fcn.0041b6f0
add esp, 0x10
test eax, eax
je 0x40e435
mov dword [0x51eb1c], 2
mov esp, ebp
pop ebp
ret
mov dword [0x51eb1c], 1
jmp 0x40e446
cmp eax, 2
je 0x40e487
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x40e46f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x40e486
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x40eff6
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x40efd8
push esi
cmp dword [edi + 4], 2
jne 0x40ef5c
cmp dword [edi + 0x18], ebx
je 0x40ef5c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x40ef5c
cmp eax, 0x10
jb 0x40ef5c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40ef69
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x40ef72
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x40ef47
push eax
call dword [0x51500c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x40ef85
cmp dword [ebp - 4], ebx
jne 0x40ef4f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40ef59
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x40eea2
jmp 0x40efa0
mov dword [ebp - 8], 8
jmp 0x40efa0
push esi
mov dword [ebp - 8], 8
call dword [0x515004]
add esp, 4
jmp 0x40efa0
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x515004]
push esi
call dword [0x515004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x40efaf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x40efd3
mov eax, dword [ebp - 4]
push eax
call fcn.0040ee20
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x40efea
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4106d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004ad8c6
add esp, 0x18
test eax, eax
je 0x4106f4
cmp eax, 0xffffffff
jne 0x4106f6
xor eax, eax
pop ebp
ret
Function at 0x41ba80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004ae440
mov eax, dword [0x51d56c]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x41bac7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004ae46b
add esp, 8
test eax, eax
js 0x41bab0
mov eax, 8
call fcn.004ae440
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.0041b8f0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x41bab0
push 0x4d8394
push esi
call fcn.004ac799
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x41bba1
jmp 0x41bb24
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x41bb32
mov esi, ebx
cmp ebx, 0x400
jl 0x41bb37
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.004ac3c1
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x41bb85
fild dword [esp + 0x44]
mov eax, 8
call fcn.004ae440
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.0041b8f0
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x41bb20
sub ebx, esi
test ebx, ebx
jg 0x41bb20
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004ac103
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004c1ad0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret

Function at 0x4319b0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.004abb90
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x432210
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x432232
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x432226
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x432262
cmp dword [esi + 8], 0
jne 0x432255
mov ecx, dword [eax + 8]
push 0x4d8394
push ecx
call fcn.004ac799
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x432255
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004ac3c1
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x432284
mov eax, dword [esi + 8]
test eax, eax
je 0x43227e
push eax
call fcn.004ac103
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x433680
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51d56c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004af161
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4336e4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x4336e4
lea edx, [ebp - 0x108]
push edx
call dword [0x51500c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab15e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004ab15e
mov esp, ebp
pop ebp
ret

Function at 0x433700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433680