joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404971
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x9b0], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
mov esi, ecx
call fcn.00408de0
add esp, 0xc
lea edi, [ebp - 0x808]
test esi, esi
je 0x4049bb
mov edi, esi
xor eax, eax
and dword [ebp - 0x9b4], eax
and dword [ebp - 0x9ac], eax
mov word [edi], ax
lea eax, [ebp - 0x9a8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404a15
push 0x41dec4
mov esi, 0x3ff
push esi
push edi
call fcn.00409325
push 0x41dee4
push esi
push edi
call fcn.00408f0a
push 0x41dee8
push esi
push edi
call fcn.00408f0a
add esp, 0x24
xor eax, eax
jmp 0x404aa3
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4049e2
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404ab1
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b4], eax
push 4
lea eax, [ebp - 0x9b4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x404ab1
push 0x41dec4
mov esi, 0x3ff
push esi
push edi
call fcn.00409325
push 0x41dee4
push esi
push edi
call fcn.00408f0a
push 0x41dee8
push esi
push edi
call fcn.00408f0a
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x404a9d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [ebp - 0x9ac]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408dc8
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x814], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404af7
push 0x41df28
jmp 0x404a66
mov dword [ebp - 0x9ac], esi
jmp 0x404a9d

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 4], ecx
cmp dword [eax], ecx
je 0x404b8e
cmp edi, ecx
jle 0x404b3c
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, edi
jl 0x404b30
lea ebx, [edi + 7]
push ebx
call fcn.0040b8ce
mov esi, eax
lea eax, [edi + 5]
push 5
mov word [esi], ax
lea eax, [esi + 2]
push 0x4230c0
push eax
call fcn.00408fc0
push edi
push dword [ebp + 0xc]
lea eax, [esi + 7]
push eax
call fcn.00408fc0
mov eax, dword [ebp + 8]
add esp, 0x1c
push 0
push ebx
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404b91
cmp eax, ebx
jne 0x404b91
mov dword [ebp - 4], 1
jmp 0x404b91
mov esi, dword [ebp + 8]
test esi, esi
je 0x404b9c
push esi
call fcn.0040b6a9
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x404cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e4
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
push esi
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 0x7c]
push edi
mov dword [ebp - 0x874], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x85c], ax
lea eax, [ebp - 0x85a]
mov ebx, ecx
push eax
mov dword [ebp - 0x870], ebx
mov edi, edx
call fcn.00408de0
add esp, 0xc
lea esi, [ebp - 0x85c]
mov dword [ebp - 0x860], esi
test edi, edi
je 0x404d3a
mov dword [ebp - 0x860], edi
mov esi, edi
xor eax, eax
mov word [esi], ax
mov ebx, dword [ebx]
xor edi, edi
mov dword [ebp - 0x86c], eax
cmp ebx, eax
je 0x404e9e
cmp dword [ebp - 0x864], eax
je 0x404e9e
push 0xc7
push eax
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5b]
push eax
call fcn.00408de0
add esp, 0xc
push edi
push 2
lea eax, [ebp - 0x5c]
push eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
call ebx
cmp eax, 0xffffffff
je 0x404e80
test eax, eax
je 0x404e80
movzx eax, word [ebp - 0x5c]
mov dword [ebp - 0x868], eax
add eax, 2
push eax
xor esi, esi
call fcn.0040b8ce
cmp dword [ebp - 0x868], esi
pop ecx
mov edi, eax
jle 0x404e93
mov eax, dword [ebp - 0x868]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x870]
push dword [eax]
call ebx
cmp eax, 0xffffffff
je 0x404e15
test eax, eax
je 0x404e15
add esi, eax
cmp dword [ebp - 0x868], esi
jg 0x404db7
cmp esi, 5
jl 0x404e93
push 5
push edi
push 0x4230c0
sub esi, 5
call fcn.00409f9b
add esp, 0xc
test eax, eax
je 0x404e35
push 0x41df48
push 0x3ff
push dword [ebp - 0x860]
jmp 0x404e8b
push 0x41df48
push 0x3ff
push dword [ebp - 0x860]
call fcn.00409325
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404e93
test esi, esi
jle 0x404e44
lea eax, [edi + 5]
mov ecx, esi
not byte [eax]
inc eax
dec ecx
jne 0x404e3e
mov ebx, dword [ebp - 0x874]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404e64
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408fc0
mov dword [ebx], esi
jmp 0x404e74
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408fc0
mov dword [ebp - 0x86c], 1
jmp 0x404e90
push 0x41df48
push 0x3ff
push esi
call fcn.00409325
add esp, 0xc
test edi, edi
je 0x404e9e
push edi
call fcn.0040b6a9
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x86c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dc8
add ebp, 0x70
leave
ret
Function at 0x405049
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
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.004156a0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x40508f
xor eax, eax
jmp 0x4050dd
cmp dword [ebp - 0x78], ebx
jbe 0x4050cc
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x4050cc
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00409e6a
add ebx, dword [ebp - 0x80]
add esp, 0x10
mov dword [0x4246fc], ebx
cmp ebx, dword [ebp - 0x78]
jb 0x405094
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00409c8c
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dc8
add ebp, 0xf90
leave
ret

Function at 0x4068ee
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4068f9
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4069ab
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41f9a8]
inc ecx
sub edi, 8
dec esi
jne 0x406910
pop ebx
test edi, edi
je 0x4069c4
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x41f9a8]
inc ecx
dec edi
jne 0x4069af
pop esi
not eax
pop edi
ret

Function at 0x4069c9
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41f9a8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f9a8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x40703e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40706e
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407069
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x407096
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40707f
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00408fc0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x407d3c
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x407dc3
cmp dword [esi + 4], 0xffffffff
jne 0x407dc3
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00409eec
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp ax, 0x5c
je 0x407d85
cmp ax, 0x2f
je 0x407d85
push 0x41dc88
push edi
call fcn.00408e86
pop ecx
pop ecx
push 0x20
call fcn.0040b8ce
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], bl
mov byte [eax + 1], 1
mov byte [eax + 0x10], bl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.004072b7
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x407dc8
mov eax, 0x1000000
pop edi
pop ebx
pop ecx
ret 8

Function at 0x40899b
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
xor esi, esi
call fcn.00408de0
add esp, 0xc
test edi, edi
je 0x408a53
and dword [ebp - 0x80], esi
mov esi, 0x41de3c
push esi
call fcn.00409eec
pop ecx
test eax, eax
jbe 0x4089fc
push 0x41dd1c
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004094d2
add esp, 0xc
jmp 0x408a30
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x420004
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408f0a
push 0x41dd1c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004094d2
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x80], 0
je 0x408a53
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.00409e6a
push dword [ebp - 0x80]
call fcn.00409c8c
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408dc8
add ebp, 0x190
leave
ret
Function at 0x408a6b
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
mov dword [ebp - 0x80], esi
call fcn.00408de0
add esp, 0xc
mov dword [ebp - 0x7c], esi
cmp ebx, esi
je 0x408b3c
push edi
mov edi, 0x41dd3c
push edi
call fcn.00409eec
pop ecx
test eax, eax
je 0x408b3b
cmp dword [0x423040], 3
mov esi, 0x104
lea eax, [ebp - 0x78]
jne 0x408aed
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc88
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00408f0a
add esp, 0xc
jmp 0x408af5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00408f0a
push 0x41dd14
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004094d2
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x408b3b
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00409bf8
push dword [ebp - 0x7c]
call fcn.00409c8c
add esp, 0x14
mov dword [ebp - 0x80], esi
pop edi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.00408dc8
add ebp, 0x194
leave
ret

Function at 0x408b55
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
mov dword [ebp - 0x80], esi
call fcn.00408de0
add esp, 0xc
mov dword [ebp - 0x7c], esi
cmp ebx, esi
je 0x408bfd
push edi
mov edi, 0x420004
push edi
call fcn.00409eec
pop ecx
test eax, eax
je 0x408bfc
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00408f0a
push 0x41dd14
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004094d2
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x408bfc
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00409bf8
push dword [ebp - 0x7c]
call fcn.00409c8c
add esp, 0x14
mov dword [ebp - 0x80], esi
pop edi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.00408dc8
add ebp, 0x194
leave
ret
Function at 0x408d0d
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408d2d
mov eax, dword [ebp + 8]
call fcn.00408d78
test eax, eax
je 0x408d73
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408d72
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x408d6b
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x408d78
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408d8b
xor eax, eax
pop esi
ret
test al, 1
je 0x408d92
xor eax, 1
test al, 4
je 0x408d99
xor eax, 4
test al, 2
je 0x408da0
xor eax, 2
test al, 0x20
je 0x408da7
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret

Function at 0x408dc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422044]
jne 0x408dd2
repz ret
jmp fcn.0040c995
Function at 0x414f9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ce9a
and dword [ebp - 4], 0
cmp dword [0x424430], 0
mov ebx, eax
jne 0x41504e
push 0x41cbc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4150ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cbb8
push edi
call esi
test eax, eax
je 0x4150ff
push eax
call fcn.0040ce28
mov dword [esp], 0x41cba8
push edi
mov dword [0x424430], eax
call esi
push eax
call fcn.0040ce28
mov dword [esp], 0x41cb94
push edi
mov dword [0x424434], eax
call esi
push eax
call fcn.0040ce28
mov dword [esp], 0x41cb78
push edi
mov dword [0x424438], eax
call esi
push eax
call fcn.0040ce28
pop ecx
mov dword [0x424440], eax
test eax, eax
je 0x41504e
push 0x41cb60
push edi
call esi
push eax
call fcn.0040ce28
pop ecx
mov dword [0x42443c], eax
mov eax, dword [0x42443c]
cmp eax, ebx
je 0x4150a6
cmp dword [0x424440], ebx
je 0x4150a6
push eax
call fcn.0040cea3
push dword [0x424440]
mov esi, eax
call fcn.0040cea3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4150a6
test edi, edi
je 0x4150a6
call esi
test eax, eax
je 0x41509d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41509d
test byte [ebp - 0xc], 1
jne 0x4150a6
or dword [ebp + 0x10], 0x200000
jmp 0x4150df
mov eax, dword [0x424434]
cmp eax, ebx
je 0x4150df
push eax
call fcn.0040cea3
pop ecx
test eax, eax
je 0x4150df
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4150df
mov eax, dword [0x424438]
cmp eax, ebx
je 0x4150df
push eax
call fcn.0040cea3
pop ecx
test eax, eax
je 0x4150df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424430]
call fcn.0040cea3
pop ecx
test eax, eax
je 0x4150ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415101
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b40
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404750
test esi, esi
jne 0x402b76
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404840
jmp 0x402b94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f4
mov edi, eax
test esi, esi
je 0x402b94
cmp dword [ebx], 0
je 0x402b94
dec esi
jmp 0x402b7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ec020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403828
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403808
xor eax, eax
push ebp
push 0x403801
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 0x403844
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 0x403808
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ec020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ec020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404550
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f104c], 0
je 0x4045b1
cmp word [0x4f1220], 0xd7b2
jne 0x404579
cmp dword [0x4f1228], 0
jbe 0x404579
mov eax, 0x4f121c
call dword [0x4f1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ec070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ec030], 0
jne 0x4045cd
push 0
push 0x4ec068
push 0x4ec070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404704
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.004027b8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406040
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 0xf0019
push 0
push 0x406270
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406270
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40628c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40614c
xor eax, eax
push ebp
push 0x406145
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405e88
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 0x40612a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4062ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40612a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40614c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x406266
cmp byte [ebp - 0xd], 0
jne 0x406193
cmp byte [ebp - 0x12], 0
je 0x406266
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4061ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4061bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406266
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4061f8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406266
cmp byte [ebp - 0xd], 0
je 0x406266
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406266
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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