joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x47ac60]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x47c2a0], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x41aad0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x41adc0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0041aa80
je 0x41b0f2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x479888]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00427b50
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41b1ef
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0042ce21
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0042d314
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41b16d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x41b1b4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0042ce21
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0042d314
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x41b1eb
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x41b21f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x41b21f
add edi, 1
cmp edi, 3
jl 0x41b1b6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x479888], edx
mov dword [0x479890], eax
mov dword [fcn.0041aa80], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x479888]
xor ecx, esp
mov dword [0x47c2a0], 1
call fcn.00427b50
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x41b1eb

Function at 0x41b38e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x47ac60]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
mov edx, dword [esi + 0x10]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jl 0x41b3e2
cmp dword [esp + 4], 0x10
jne 0x41b3e2
mov eax, dword [esp + 0x20]
add esi, 0x14
push esi
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0041b270
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00427b50
add esp, 0x18
ret 4
add esi, 0x14
push str.unknown
mov ecx, esi
mov dword [esi + 4], 0
call fcn.004067a0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00427b50
add esp, 0x18
ret 4
Function at 0x41b430
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x47ac60]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
mov edx, dword [esi + 4]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jl 0x41b492
cmp dword [esp + 4], 0x10
jne 0x41b492
mov eax, dword [esp + 0x20]
add esi, 0xc
push esi
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0041b270
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00427b50
add esp, 0x18
ret 4
add esi, 0xc
push str.unknown
mov ecx, esi
mov dword [esi + 4], 0
call fcn.004067a0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00427b50
add esp, 0x18
ret 4

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

Disassembly:
push esi
mov esi, ecx
mov dword [esi + 0x24], 0
cmp dword [0x47c278], 4
push edi
mov edi, dword [esp + 0x10]
jl 0x41b576
push edi
push str.NetTcpTransport_send__d_bytes_n
call fcn.00428f9f
add esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push 0
push edi
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x41b5ad
mov esi, dword [esp + 0x14]
push str.socket
push str.write
mov ecx, esi
call fcn.0040ea60
push 0x44fb00
mov ecx, esi
call fcn.00408050
pop edi
pop esi
ret 0xc
Function at 0x41b5c8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 8], ebp
push edi
mov dword [esi + 0x24], 1
je 0x41b644
mov ebx, dword [sym.imp.WSOCK32.dll_select]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x7a120
mov dword [esp + 0x2c], 1
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x41b6af
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
test eax, eax
je 0x41b6e6
cmp edi, ebp
je 0x41b63f
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x41b644
cmp dword [esi + 8], ebp
jne 0x41b5e0
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov ecx, dword [esi + 4]
push ebp
push edx
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
cmp esi, ebp
jge 0x41b689
mov edi, dword [esp + 0x128]
push str.socket
push str.read
mov ecx, edi
call fcn.0040ea60
push 0x44faf8
mov ecx, edi
call fcn.00408050
cmp dword [0x47c278], 4
jl 0x41b6a0
push esi
push str.NetTcpTransport_recv__d_bytes_n
call fcn.00428f9f
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
mov edi, dword [esp + 0x128]
push str.socket
push str.select
mov ecx, edi
call fcn.0040ea60
push 0x44faf8
mov ecx, edi
call fcn.00408050
pop edi
mov dword [esi + 0x24], ebp
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esp + 0x128]
push 0x44fb28
call fcn.00408050
pop edi
mov dword [esi + 0x24], ebp
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret 0xc

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

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jl 0x41b7d9
cmp dword [0x47c278], 1
jl 0x41b79c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
push 2
call edx
mov edi, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 2
mov ecx, esi
call edx
mov eax, dword [eax]
push edi
push eax
push str.NetTcpTransport__s_closing__s_n
call fcn.00428f9f
add esp, 0xc
pop edi
cmp dword [0x47c278], 4
jl 0x41b7b6
mov ecx, dword [esi + 0x24]
push ecx
push str.NetTcpTransport_lastRead_d_n
call fcn.00428f9f
add esp, 8
cmp dword [esi + 0x24], 0
je 0x41b7cf
mov eax, dword [esi + 4]
push 0
push 1
lea edx, [esp + 0xf]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop esi
pop ecx
ret
Function at 0x41b761
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jl 0x41b7d9
cmp dword [0x47c278], 1
jl 0x41b79c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
push 2
call edx
mov edi, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 2
mov ecx, esi
call edx
mov eax, dword [eax]
push edi
push eax
push str.NetTcpTransport__s_closing__s_n
call fcn.00428f9f
add esp, 0xc
pop edi
cmp dword [0x47c278], 4
jl 0x41b7b6
mov ecx, dword [esi + 0x24]
push ecx
push str.NetTcpTransport_lastRead_d_n
call fcn.00428f9f
add esp, 8
cmp dword [esi + 0x24], 0
je 0x41b7cf
mov eax, dword [esi + 4]
push 0
push 1
lea edx, [esp + 0xf]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop esi
pop ecx
ret

Function at 0x41b7f6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x41b83f
xor eax, eax
pop esi
add esp, 0x110
ret
test eax, eax
je 0x41b86c
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41b86c
mov eax, dword [esi + 4]
push 2
push 1
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x41b835
mov eax, 1
pop esi
add esp, 0x110
ret

Function at 0x41bcc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x47ac60]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov ecx, 0x47c220
mov dword [esi + 4], ecx
mov dword [esi], vtable.NetTcpEndPoint.0
push edi
mov edi, dword [esp + 0x1a0]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
lea eax, [esp + 8]
push eax
mov dword [esi + 0x14], ecx
push 0x101
mov dword [esi + 0x10], 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x41bd2a
push 0x449fc6
push str.WSAStartup_failure
mov ecx, edi
call fcn.0040ea60
mov ecx, dword [esp + 0x198]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00427b50
add esp, 0x194
ret 4
Function at 0x423eb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x423ebb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x423fb7
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x423ee0
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x445188]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x423ee0
pop ebp
test edi, edi
je 0x423fdc
jmp 0x423fc0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x445188]
add ecx, 1
sub edi, 1
jne 0x423fc0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x427b50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47ac60]
jne 0x427b5a
repz ret
jmp fcn.0042e265

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42c5a3
call fcn.0042b345
mov dword [eax], esi
call fcn.0042b332
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004285d3
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c5c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042b358
pop ecx
jmp 0x42c59e
test byte [esp + 0xc], 0x80
je 0x42c5cd
and eax, 0xfffffffe
jmp 0x42c5d0
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x42c5b2
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42c610
call fcn.0042b345
mov dword [eax], esi
call fcn.0042b332
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004285d3
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42c62e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042b358
pop ecx
jmp 0x42c60b
test byte [esp + 0xc], 0x80
je 0x42c63a
and eax, 0xfffffffe
jmp 0x42c63d
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42c61f
xor eax, eax
pop esi
ret
Function at 0x42f6e4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x47b118]
je 0x42f6ff
inc edi
cmp edi, 0x17
jb 0x42f6f0
cmp edi, 0x17
jae 0x42f87f
push ebp
push 3
call fcn.004383ec
cmp eax, 1
pop ecx
je 0x42f84b
push 3
call fcn.004383ec
test eax, eax
pop ecx
jne 0x42f733
cmp dword [0x47ac58], 1
je 0x42f84b
cmp ebx, 0xfc
je 0x42f87e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47c678
push ebp
call fcn.0042ce21
add esp, 0xc
test eax, eax
je 0x42f769
push esi
push esi
push esi
push esi
push esi
call fcn.004284d7
add esp, 0x14
push 0x104
mov esi, 0x47c691
push esi
push 0
mov byte [0x47c795], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42f7ad
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042ce21
add esp, 0xc
test eax, eax
je 0x42f7ad
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004284d7
add esp, 0x14
push esi
call fcn.0042dd60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42f7f2
push esi
call fcn.0042dd60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47c98c
push 0x441e84
sub ecx, eax
push ecx
push eax
call fcn.0042cfe3
add esp, 0x14
test eax, eax
je 0x42f7f2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004284d7
add esp, 0x14
jmp 0x42f7f4
xor esi, esi
push 0x448b48
push ebx
push ebp
call fcn.0042d314
add esp, 0xc
test eax, eax
je 0x42f814
push esi
push esi
push esi
push esi
push esi
call fcn.004284d7
add esp, 0x14
push dword [edi*8 + 0x47b11c]
push ebx
push ebp
call fcn.0042d314
add esp, 0xc
test eax, eax
je 0x42f836
push esi
push esi
push esi
push esi
push esi
call fcn.004284d7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043822f
add esp, 0xc
jmp 0x42f87e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42f87e
cmp ebp, 0xffffffff
je 0x42f87e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47b11c]
push dword [esi]
call fcn.0042dd60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43822f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042f202
xor ebx, ebx
cmp dword [0x47cd5c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x438305
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4383e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4383e5
push eax
call fcn.0042f194
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47cd5c], eax
call esi
push eax
call fcn.0042f194
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47cd60], eax
call esi
push eax
call fcn.0042f194
mov dword [0x47cd64], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00427ed0
test eax, eax
pop ecx
pop ecx
je 0x4382d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004284d7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x438305
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042f194
cmp eax, ebx
pop ecx
mov dword [0x47cd6c], eax
je 0x438305
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f194
pop ecx
mov dword [0x47cd68], eax
mov eax, dword [0x47cd68]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43838a
cmp dword [0x47cd6c], ecx
je 0x43838a
push eax
call fcn.0042f20b
push dword [0x47cd6c]
mov esi, eax
call fcn.0042f20b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43838a
cmp edi, ebx
je 0x43838a
call esi
cmp eax, ebx
je 0x438357
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x438357
test byte [ebp - 0x18], 1
jne 0x43838a
lea eax, [ebp - 0x10]
push eax
call fcn.00427f07
test eax, eax
pop ecx
je 0x438372
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004284d7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x438381
or dword [ebp + 0x10], 0x200000
jmp 0x4383c5
or dword [ebp + 0x10], 0x40000
jmp 0x4383c5
mov eax, dword [0x47cd60]
cmp eax, dword [ebp - 8]
je 0x4383c5
push eax
call fcn.0042f20b
cmp eax, ebx
pop ecx
je 0x4383c5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4383c5
mov eax, dword [0x47cd64]
cmp eax, dword [ebp - 8]
je 0x4383c5
push eax
call fcn.0042f20b
cmp eax, ebx
pop ecx
je 0x4383c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47cd5c]
call fcn.0042f20b
cmp eax, ebx
pop ecx
je 0x4383e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4383e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402794
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 0x40282c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40280c
xor eax, eax
push ebp
push 0x402805
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 0x402848
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 0x40280c
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 0x404068
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 0x404220
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4040c9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40423c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404136
xor eax, eax
push ebp
push 0x40412f
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 0x404118
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40425c
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 0x404136
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 0x404217
cmp byte [ebp - 0xd], 0
jne 0x404178
cmp byte [ebp - 0x12], 0
je 0x404217
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404191
dec ebx
cmp byte [ebx], 0x2e
je 0x4041a0
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404190
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404217
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4041cd
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 0x404217
cmp byte [ebp - 0xd], 0
je 0x404217
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 0x404217
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 0x406640
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 0x40674a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x406693
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.004031b0
jmp 0x406731
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004065f4
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406614
mov ebx, eax
test esi, esi
je 0x4066bb
dec esi
test esi, esi
jl 0x4066bb
cmp edi, ebx
jne 0x40669a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004031f0
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.0040343c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403238
cmp eax, 2
jl 0x406731
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406731
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403238
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406731
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403238
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.0040343c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406751
lea eax, [ebp - 0x110]
call fcn.004030cc
ret

Function at 0x40678c
Capabilities:
Get file attributes

Disassembly:
call fcn.004053dc
push eax
call sub.kernel32.dll_GetFileAttributesA
and al, 0x10
sete al
ret

Function at 0x4068a0
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 0x40690a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004031f0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406911
lea eax, [ebp - 0x10c]
call fcn.004030cc
ret

Function at 0x406918
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 0x406982
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004031f0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406989
lea eax, [ebp - 0x10c]
call fcn.004030cc
ret