joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x4c
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x48], eax
mov al, 0xaa
push ebx
mov bl, 0xc2
mov byte [esp + 0x20], al
mov dl, 0xc6
mov byte [esp + 0x2f], al
mov al, 0xc1
mov byte [esp + 0x29], bl
mov byte [esp + 0x2b], bl
mov cl, 0xc7
mov byte [esp + 0x31], al
mov byte [esp + 0x33], bl
mov byte [esp + 0x3f], al
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], al
mov bl, 0x53
mov byte [esp + 0x11], al
mov al, 0xbf
mov byte [esp + 0x2a], dl
mov byte [esp + 0x35], dl
mov byte [esp + 0x44], dl
mov byte [esp + 0x12], dl
mov dl, 0xb4
mov byte [esp + 0x48], bl
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 0xa6
mov byte [esp + 0x1d], 0xa2
mov byte [esp + 0x1e], 0x99
mov byte [esp + 0x1f], 0xa7
mov byte [esp + 0x21], 0x94
mov byte [esp + 0x22], 0xa5
mov byte [esp + 0x23], 0x98
mov byte [esp + 0x24], 0xaf
mov byte [esp + 0x25], 0xa0
mov byte [esp + 0x26], 0xbc
mov byte [esp + 0x27], 0xb6
mov byte [esp + 0x28], 0xc5
mov byte [esp + 0x2c], 0xb9
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], 0xaf
mov byte [esp + 0x30], 0xbc
mov byte [esp + 0x32], 0xb7
mov byte [esp + 0x34], 0xca
mov byte [esp + 0x36], 0x73
mov byte [esp + 0x37], 0xa1
mov byte [esp + 0x38], 0xa7
mov byte [esp + 0x39], 0xaf
mov byte [esp + 0x3a], 0x96
mov byte [esp + 0x3b], 0xc8
mov byte [esp + 0x3c], 0xc5
mov byte [esp + 0x3d], 0xc5
mov byte [esp + 0x3e], 0xb8
mov byte [esp + 0x40], cl
mov byte [esp + 0x41], 0xa9
mov byte [esp + 0x42], 0xb8
mov byte [esp + 0x43], 0xc5
mov byte [esp + 0x45], 0xbc
mov byte [esp + 0x10], 0x9c
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], dl
mov byte [esp + 0x17], 0x97
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], 0xb8
xor eax, eax
pop ebx
jmp 0x402d70
add byte [esp + eax + 0x18], 0xad
add eax, 1
cmp eax, 0x2d
jb 0x402d70
lea eax, [esp]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x24]
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
lea ebx, [ebx]
add byte [esp + eax + 0xc], 0xad
add eax, 1
cmp eax, 0xc
jb 0x402da0
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402deb
mov eax, 1
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00403591
add esp, 0x4c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
setne al
xor ecx, esp
call fcn.00403591
add esp, 0x4c
ret
Function at 0x4030e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
call fcn.00401cf0
test eax, eax
jne 0x40314a
call fcn.004015f0
test eax, eax
je 0x40314a
push 0
push 0
push str.socket
push 0
push 0
push str.error
call fcn.00401bd0
add esp, 0x18
mov eax, 1
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00403591
add esp, 0x194
ret 0x10
call fcn.00403460
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.00403591
add esp, 0x194
ret 0x10

Function at 0x403170
Capabilities:
Create raw socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push 0
push 2
push 2
mov dword [esp + 0x10], 2
call sub.WSOCK32.dll_socket
push 4
mov esi, eax
lea eax, [esp + 8]
push eax
push 3
push 0
push esi
call sub.WSOCK32.dll_setsockopt
xor eax, eax
mov dword [esp + 8], eax
push 0xea27a53a
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htonl
push 0x58c2
mov dword [esp + 0x10], eax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x20]
push ecx
mov word [esp + 0xe], ax
call sub.WSOCK32.dll_htonl
push 0x10
lea edx, [esp + 0xc]
push edx
push 0
mov dword [esp + 0x2c], eax
push 4
lea eax, [esp + 0x30]
push eax
push esi
call sub.WSOCK32.dll_sendto
push esi
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.00403591
add esp, 0x18
ret

Function at 0x4032d0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [0x433258], 0
jne 0x4033da
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0xffff
push eax
mov dword [0x433254], eax
mov dword [esp + 0x14], 1
call sub.WSOCK32.dll_setsockopt
xor eax, eax
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htonl
push 0x58c2
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_htons
push 0x10
lea edx, [esp + 0x14]
mov word [esp + 0x16], ax
mov eax, dword [0x433254]
push edx
push eax
call sub.WSOCK32.dll_bind
test eax, eax
je 0x40338e
mov ecx, dword [0x433254]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [0x433254], 0
mov dword [0x433250], 5
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00403591
add esp, 0x24
ret
push 0xea27a53a
call sub.WSOCK32.dll_htonl
push 0
mov dword [esp + 8], eax
call sub.WSOCK32.dll_htonl
push 8
lea edx, [esp + 8]
push edx
push 5
mov dword [esp + 0x14], eax
mov eax, dword [0x433254]
push 0
push eax
call sub.WSOCK32.dll_setsockopt
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x403220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x433258], eax
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00403591
add esp, 0x24
ret
Function at 0x403591
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41405c]
jne 0x40359b
repz ret
jmp fcn.00405701

Function at 0x40d847
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00407f76
xor ebx, ebx
cmp dword [0x433cb4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40d91c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40d887
xor eax, eax
jmp 0x40d9e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40d880
push eax
call fcn.00407f13
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433cb4], eax
call esi
push eax
call fcn.00407f13
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433cb8], eax
call esi
push eax
call fcn.00407f13
mov dword [0x433cbc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040924a
test eax, eax
pop ecx
pop ecx
je 0x40d8ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405562
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40d91c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00407f13
cmp eax, ebx
pop ecx
mov dword [0x433cc4], eax
je 0x40d91c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407f13
pop ecx
mov dword [0x433cc0], eax
mov eax, dword [0x433cc0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40d995
cmp dword [0x433cc4], esi
je 0x40d995
push eax
call fcn.00407f7f
pop ecx
call eax
cmp eax, ebx
je 0x40d962
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x433cc4]
call fcn.00407f7f
pop ecx
call eax
test eax, eax
je 0x40d962
test byte [ebp - 0x18], 1
jne 0x40d995
lea eax, [ebp - 0xc]
push eax
call fcn.00409281
test eax, eax
pop ecx
je 0x40d97d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405562
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40d98c
or dword [ebp + 0x10], 0x200000
jmp 0x40d9c6
or dword [ebp + 0x10], 0x40000
jmp 0x40d9c6
mov eax, dword [0x433cb8]
cmp eax, esi
je 0x40d9c6
push eax
call fcn.00407f7f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d9c6
mov eax, dword [0x433cbc]
cmp eax, esi
je 0x40d9c6
push dword [ebp - 4]
push eax
call fcn.00407f7f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x433cb4]
call fcn.00407f7f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403188
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.00404e70
test esi, esi
jne 0x4031be
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.00404f60
jmp 0x4031dc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040308c
mov edi, eax
test esi, esi
je 0x4031dc
cmp dword [ebx], 0
je 0x4031dc
dec esi
jmp 0x4031c5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d88
Capabilities:
Query or enumerate registry value

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

Function at 0x404c3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49304c], 0
je 0x404c9d
cmp word [0x493220], 0xd7b2
jne 0x404c65
cmp dword [0x493228], 0
jbe 0x404c65
mov eax, 0x49321c
call dword [0x493238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404cc4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48f02c], 0
jne 0x404cb9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404df4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48f034], 0
je 0x404e1a
mov edx, esi
mov eax, ebx
call dword [0x48f034]
jmp 0x404e29
mov eax, 8
call fcn.00402d90
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404dbc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406618
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 0x406848
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40669b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406848
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40669b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406864
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406724
xor eax, eax
push ebp
push 0x40671d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406454
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 0x406702
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406884
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406702
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 0x406724
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 0x40683e
cmp byte [ebp - 0xd], 0
jne 0x40676b
cmp byte [ebp - 0x12], 0
je 0x40683e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406784
dec ebx
cmp byte [ebx], 0x2e
je 0x406793
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406783
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40683e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4067d0
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 0x40683e
cmp byte [ebp - 0xd], 0
je 0x40683e
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 0x40683e
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
Function at 0x409154
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4091e4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4091e4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409197
test edx, 3
jne 0x409186
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409191
jmp 0x409197
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409197
cmp dword [ecx - 8], 1
je 0x4091a1
mov edx, ebx
or edx, 3
call fcn.004055bc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4091b3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e70

Function at 0x4091f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409280
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409280
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409233
test edx, 3
jne 0x409222
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40922d
jmp 0x409233
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409233
cmp dword [ecx - 8], 1
je 0x40923d
mov edx, ebx
or edx, 3
call fcn.004055bc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40924f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e70

Function at 0x409e38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405334
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e51
test al, 0x10
je 0x409e55
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d10c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d145
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f60
jmp 0x40d14e
mov eax, ebx
mov edx, esi
call fcn.00404ec4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d158
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d17a
movzx eax, byte [esp]
jmp 0x40d17c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d80c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d684
mov eax, dword [0x491fd0]
cmp byte [eax], 0
je 0x40d888
mov eax, dword [0x491cac]
call fcn.00403560
call fcn.00402eec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a014
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d8d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d8be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x491c34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4957f8]
call fcn.004063fc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e170
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e246
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404f08
lea eax, [ebp - 4]
call fcn.00405384
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405334
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e230
mov eax, ebx
call fcn.00402d90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e229
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405334
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e213
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e258
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e213
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e230
mov eax, dword [ebp - 0x10]
call fcn.00402dac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e24d
lea eax, [ebp - 4]
call fcn.00404e70
ret

Function at 0x4208f8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420634
dec esi
jne 0x42091a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421a8c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x496308
cmp dword [edi], 0
jne 0x421b08
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x496304]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48fb14
mov ecx, 2
call fcn.00402f8c
mov edx, 0x421a64
lea eax, [esi + 5]
call fcn.00421a84
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421a84
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, 0xffc
jl 0x421add
mov dword [0x496304], 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 0x423fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405334
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42403c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x492190]
mov dl, 1
mov eax, dword [0x423b08]
call fcn.0040d9d8
call fcn.00404804
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423c10
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425194
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42519a
ret