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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
nop
mov eax, 0
mov dword [ebp - 0x218], eax
mov eax, 0
mov dword [ebp - 0x21c], eax
mov eax, 0
mov dword [ebp - 0x220], eax
mov eax, 0
mov dword [ebp - 0x224], eax
mov eax, 0
mov byte [ebp - 0x225], al
mov eax, 0x403290
push eax
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp eax, 0
jne 0x401fca
mov eax, 0
jmp 0x402105
mov eax, 0x403293
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 8], eax
cmp eax, 0
jne 0x401ffe
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, 0
jmp 0x402105
movzx eax, byte [0x40368d]
shl eax, 0x18
shr eax, 0x1f
cmp eax, 1
jne 0x402057
movzx eax, byte [0x40368e]
push eax
mov eax, 0x403296
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, str.ct9Z
movzx ecx, byte [0x40368e]
add eax, ecx
movzx ecx, byte [eax]
mov byte [ebp - 0x225], cl
movzx eax, byte [ebp - 0x225]
push eax
mov eax, 0x4032b6
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 4]
push eax
mov eax, 0x200
push eax
mov eax, 1
push eax
lea eax, [ebp - 0x208]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
cmp eax, 0
jne 0x402090
jmp 0x4020e3
movzx eax, byte [ebp - 0x225]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00402107
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x218]
push eax
mov eax, 1
push eax
lea eax, [ebp - 0x208]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov dword [ebp - 0x220], eax
jmp 0x402057
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, 2
jmp 0x402105
leave
ret

Function at 0x402107
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
nop
mov eax, 0
mov word [ebp - 2], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
movzx ecx, byte [ebp + 0xc]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov ecx, eax
add eax, 1
mov dword [ebp + 8], eax
movzx eax, word [ebp - 2]
mov ecx, eax
add eax, 1
mov word [ebp - 2], ax
movzx eax, word [ebp - 2]
cmp eax, 0x200
jl 0x40211a
leave
ret
Function at 0x402203
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
nop
mov eax, 0
mov dword [ebp - 0x214], eax
mov eax, 0
mov dword [ebp - 0x218], eax
mov eax, 0
mov dword [ebp - 0x21c], eax
mov eax, 0
mov dword [ebp - 0x220], eax
mov eax, 0
mov byte [ebp - 0x221], al
mov eax, 0x4033f0
push eax
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp eax, 0
jne 0x40226c
mov eax, 0
jmp 0x402409
movzx eax, byte [0x40368d]
shl eax, 0x18
shr eax, 0x1f
cmp eax, 1
jne 0x4022c5
movzx eax, byte [0x40368e]
push eax
mov eax, str.MP3_Message.Encrypt_Index___d_n
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, str.ct9Z
movzx ecx, byte [0x40368e]
add eax, ecx
movzx ecx, byte [eax]
mov byte [ebp - 0x221], cl
movzx eax, byte [ebp - 0x221]
push eax
mov eax, str.xor___02X_n
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 0x218]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x218], eax
mov eax, 0x200
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x204]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov eax, 0x200
push eax
mov eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cmp eax, 0
jne 0x40232a
jmp 0x40238b
movzx eax, byte [ebp - 0x221]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00402107
add esp, 8
mov eax, dword [ebp - 0x218]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, 0x200
push eax
mov eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x4022d6
mov eax, dword [ebp + 0x10]
shl eax, 3
mov ecx, 0x406660
add ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
shl eax, 3
mov ecx, 0x406660
add ecx, eax
add ecx, 4
mov eax, dword [ebp - 0x220]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
mov ecx, 0x405668
add ecx, eax
mov eax, dword [0x403688]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
add eax, 1
shl eax, 2
mov ecx, 0x405668
add ecx, eax
mov eax, dword [ebp - 0x220]
shl eax, 8
mov edx, dword [0x403688]
add edx, eax
mov dword [ecx], edx
mov dword [0x403688], edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, 2
jmp 0x402409
leave
ret
Function at 0x100011a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100011ba
test al, 0x10
je 0x100011ba
mov eax, 1
ret
xor eax, eax
ret
Function at 0x10001420
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x1000601c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x11c]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_vsprintf_s]
add esp, 0x1c
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10002eec
add esp, 0x108
ret

Function at 0x10001490
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1000601c]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x21c]
lea edx, [esp + 0x220]
push edx
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll__vswprintf]
add esp, 0x18
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10002eec
add esp, 0x20c
ret

Function at 0x10001500
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x1000601c]
xor eax, esp
mov dword [esp + 0x210], eax
lea eax, [esp]
push eax
push 8
push 0
push str.SYSTEMCurrentControlSetControlClass
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10001560
push eax
push str.RegOpenKeyEx_error:__d
call sym.OSUtil.dll_Ordinal_5
mov ecx, dword [esp + 8]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10002eec
add esp, 0x214
ret
push esi
push edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
xor esi, esi
mov word [esp + 0x1c], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push eax
mov dword [esp + 0x2c], 0x208
call edi
test eax, eax
jne 0x10001616
jmp 0x100015b0
mov ecx, str.3F966BD9_FA04_4EC5_991C_D326973B5128
lea eax, [esp + 0x10]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100015e6
test dx, dx
je 0x100015e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100015e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100015c0
xor eax, eax
jmp 0x100015eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000163a
mov eax, dword [esp + 8]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x2c], 0x104
call edi
test eax, eax
je 0x100015b0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10002eec
add esp, 0x214
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.10002eec
add esp, 0x214
ret
Function at 0x10001660
Capabilities:
Log keystrokes

Disassembly:
push str.Windows
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x100016d7
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push 0
push 0x12
call esi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call ebx
push 0
push 0
push 0
push 0x49
call esi
push eax
push 0x49
call edi
push 0x64
call ebx
push 0
push 2
push 0
push 0x49
call esi
push eax
push 0x49
call edi
push 0
push 2
push 0
push 0x12
call esi
push eax
push 0x12
call edi
pop edi
pop esi
mov al, 1
pop ebx
ret
xor al, al
ret

Function at 0x100017d0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x100017f0
xor al, al
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push esi
push 0x34
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10001814
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push esi
call ebx
test eax, eax
je 0x10001865
mov eax, dword [esp + 0x10]
cmp eax, 4
je 0x1000187a
cmp eax, 1
jne 0x10001865
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10001865
lea edx, [esp + 0xc]
push edx
push esi
call ebx
cmp eax, 1
jne 0x10001865
cmp dword [esp + 0x10], 4
je 0x1000187a
lea eax, [esp + 0xc]
push eax
push esi
call ebx
cmp eax, 1
je 0x10001851
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
mov al, 1
pop edi
add esp, 0x1c
ret
Function at 0x10001890
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x234
mov eax, dword [0x1000601c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
mov ebp, dword [esp + 0x23c]
push esi
push 0
push 2
mov byte [esp + 0x13], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
jne 0x100018da
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.10002eec
add esp, 0x234
ret
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10001942
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll__wcsicmp]
push edi
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
lea edx, [esp + 0x38]
push ebp
push edx
mov edi, eax
call ebx
add esp, 8
test eax, eax
jne 0x1000193c
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1000193c
mov byte [esp + 0x13], 1
test edi, edi
jne 0x10001900
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
mov al, byte [esp + 0xb]
pop esi
pop ebp
xor ecx, esp
call fcn.10002eec
add esp, 0x234
ret

Function at 0x10001970
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100019c1
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100019b5
cmp dword [esp + 4], 0x103
jne 0x100019b5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x10001c90
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 8
mov eax, dword [0x1000601c]
xor eax, esp
mov dword [esp + 4], eax
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 0
mov dword [esp + 0xc], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x10001cd2
cmp eax, 0x6f
je 0x10001cd2
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10002eec
add esp, 8
ret
mov ecx, dword [esp + 4]
push esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10001cfc
lea edx, [esp + 8]
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x10001d0f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10002eec
add esp, 8
ret
lea eax, [esi + 0x194]
test eax, eax
je 0x10001d52
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
push ecx
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [eax]
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
call fcn.10002730
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
mov al, 1
call fcn.10002eec
add esp, 8
ret

Function at 0x10002eec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000601c]
jne 0x10002ef6
repz ret
jmp fcn.100033ca
Function at 0x7acd20
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7acd2a
pushal
call 0x7acd30
pop ebp
sub ebp, 0x10
sub ebp, 0x3acd20
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7acd54
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7acd5d
mov eax, 0x3acd20
add eax, ebp
add eax, 0x63
mov ecx, 0x600
mov edx, 0xb72b9728
xor byte [eax], dl
inc eax
dec ecx
jne 0x7acd74
jmp 0x7acd87
mov dword [0x14a1a3e5], eax
sub byte [eax], ch
sub byte [ecx + 0x2828d0e9], ch
sub byte [ebx], ch
in eax, 0x90
sub al, 0x28
sub byte [eax], ch
xchg edx, eax
add byte [eax], ch
sub byte [eax], ch
invalid
Function at 0x402e24
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e7d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cc0
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cc0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e67
inc ebx
jmp 0x402e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e84
lea eax, [ebp - 8]
call fcn.004045a0
ret

Function at 0x402e8c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a0
test esi, esi
jne 0x402ec3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404690
jmp 0x402ee4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cc0
mov dword [esp], eax
test esi, esi
je 0x402ee4
cmp dword [ebx], 0
je 0x402ee4
dec esi
jmp 0x402ecb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403600
Capabilities:
Query or enumerate registry value

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

Function at 0x40441c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476044], 0
je 0x40447d
cmp word [0x476218], 0xd7b2
jne 0x404445
cmp dword [0x476220], 0
jbe 0x404445
mov eax, 0x476214
call dword [0x476230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47206c
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 0x4044a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x404499
push 0
push 0x472064
push 0x47206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40625a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404810
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403148
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406244
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406261
lea eax, [ebp - 0x10]
call fcn.004045a0
ret

Function at 0x40ba14
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 0x40ba4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404690
jmp 0x40ba56
mov eax, ebx
mov edx, esi
call fcn.004045f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba60
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 0x40ba81
mov al, byte [esp]
jmp 0x40ba83
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c118
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf80
mov eax, dword [0x475d00]
cmp byte [eax], 0
je 0x40c194
mov eax, dword [0x475ad8]
call fcn.00402fb4
call fcn.00402bec
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.00409130
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 0x40c1dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1ca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475a80]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x476660]
call fcn.00405660
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 0x40ca38
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404638
lea eax, [ebp - 8]
call fcn.00404ab0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40caf8
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40caf1
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 - 8]
call fcn.00404a60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cadb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cb20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cadb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caf8
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb15
lea eax, [ebp - 8]
call fcn.004045a0
ret

Function at 0x40d074
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d0d8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404810
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b8c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0df
lea eax, [ebp - 0xc]
call fcn.004045a0
ret

Function at 0x41c03c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x476894
cmp dword [edi], 0
jne 0x41c0b8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x476890]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x472450
mov ecx, 2
call fcn.00402c80
mov edx, 0x41c014
lea eax, [esi + 5]
call fcn.0041c034
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c034
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 0x41c08d
mov dword [0x476890], 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 0x41e9b4
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 0x41e9ba
ret
Function at 0x420e88
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x420ed9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420ec0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420eb0
jmp 0x420ed9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x420ec1
pop ebx
mov esp, ebp
pop ebp
ret