joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475c3c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475de7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x475dc8
mov dl, 1
mov eax, dword [0x417cdc]
call fcn.004033b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404178
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x475db7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004637fc
test al, al
je 0x475daa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x475df8
lea eax, [ebp - 0x254]
call fcn.00409830
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x475daa
xor eax, eax
push ebp
push 0x475da3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x475e30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x475d8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x475d8c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475daa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x475cad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c2b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475dee
lea eax, [ebp - 0x260]
call fcn.00404178
ret

Function at 0x47671c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4a1c14]
cmp byte [eax + 0xa5], 0
jne 0x47678d
cmp dword [0x4a1c2c], 0
jne 0x47674e
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4766d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a1c2c], eax
cmp dword [0x4a1c28], 0
jne 0x476769
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4a1c28], eax
cmp dword [0x4a1c30], 0
jne 0x47678d
push esp
push 0
push 0
push 0x47667c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4a1c30], eax
pop edx
ret
Function at 0x4768b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4768cb
add esp, 0xfffffff0
call fcn.0040374c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422328
mov eax, dword [0x4a01f4]
cmp word [eax + 2], 0
jne 0x4768f3
mov eax, dword [0x4a01f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00477fa4
mov eax, dword [0x4a02dc]
cmp word [eax + 2], 0
jne 0x47690d
mov eax, dword [0x4a02dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047819c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417678]
call fcn.004033b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417678]
call fcn.004033b8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42494c]
call fcn.0042c63c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x476a94
mov eax, dword [0x4a00e8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ca0c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47873c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a00e8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d0dc
test eax, eax
je 0x476a02
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091f4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d104
test eax, eax
je 0x476a16
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
mov eax, dword [0x49ff44]
cmp byte [eax], 0
jne 0x476a4a
mov eax, ebx
call fcn.00476bbc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00478918
mov eax, ebx
call fcn.004792dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x476a8a
call fcn.004037a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476e3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a1c14]
cmp dword [eax + 0x30], 0
je 0x476ee6
cmp dword [ebx + 0x94], 0
jne 0x476ee0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x476dcc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x476ee0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x476ea6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x476ee0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419ec8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x476eb5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x477a48
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x477a7d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404268
jmp 0x477a8a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x478af4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x478b35
mov eax, esi
call fcn.0045edc4
test al, al
je 0x478b35
mov eax, dword [ebx + 0x84]
call fcn.0045eac0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x478b35
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045eac0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47ab18
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x47abac
push 0
mov eax, ebx
call fcn.00404638
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x47ab87
mov eax, esi
call fcn.00404438
inc eax
push eax
mov eax, esi
call fcn.00404638
push eax
push 1
push 0
mov eax, edi
call fcn.00404638
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
je 0x47aba2
mov ecx, dword [0x4a00e4]
mov dl, 1
mov eax, dword [0x479910]
call fcn.0040c33c
call fcn.00403bb4
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x47ac00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4169f4]
call fcn.00404b3c
xor eax, eax
push ebp
push 0x47ad44
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49e044], 0
jne 0x47ac53
mov ecx, dword [0x49ff68]
mov dl, 1
mov eax, dword [0x4077ec]
call fcn.0040c33c
call fcn.00403bb4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402da4
mov eax, ebx
call fcn.004049ec
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47ad54
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405cfc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049fc
test eax, eax
jle 0x47aceb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x47ace4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404400
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004043e8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408644
test eax, eax
jne 0x47ace4
mov ebx, 0x15
jmp 0x47acf0
mov ebx, 0x10
jmp 0x47acf0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49e044]
call fcn.0047aaa8
mov eax, dword [ebp - 8]
call fcn.0047aaa8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ad4b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040419c
lea eax, [ebp - 0x10]
mov edx, dword [0x4169f4]
call fcn.00404c0c
ret

Function at 0x487118
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004263e4
cmp ebx, dword [ebp - 8]
jge 0x48717b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042679c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042679c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004267c8
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x487141
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x487184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004263e4
cmp ebx, dword [ebp - 8]
jge 0x4871e7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042679c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042679c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004267c8
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4871ad
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x48f168
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404628
xor eax, eax
push ebp
push 0x48f1bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x48f1a6
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404638
push eax
push 0x48f1c8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f1c3
lea eax, [ebp - 4]
call fcn.00404178
ret
Function at 0x402e34
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 0x402e8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cd0
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cd0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e77
inc ebx
jmp 0x402e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e94
lea eax, [ebp - 8]
call fcn.00404524
ret

Function at 0x402e9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404524
test esi, esi
jne 0x402ed3
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.00404614
jmp 0x402ef4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cd0
mov dword [esp], eax
test esi, esi
je 0x402ef4
cmp dword [ebx], 0
je 0x402ef4
dec esi
jmp 0x402edb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403588
Capabilities:
Query or enumerate registry value

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

Function at 0x404380
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b904c], 0
je 0x4043e1
cmp word [0x4b9220], 0xd7b2
jne 0x4043a9
cmp dword [0x4b9228], 0
jbe 0x4043a9
mov eax, 0x4b921c
call dword [0x4b9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48206c
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 0x404408
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482030], 0
jne 0x4043fd
push 0
push 0x482064
push 0x48206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066c0
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 0x406726
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.00404794
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040314c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406710
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40672d
lea eax, [ebp - 0x10]
call fcn.00404524
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409049
test al, 0x10
jne 0x40904d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bdac
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 0x40bde5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404614
jmp 0x40bdee
mov eax, ebx
mov edx, esi
call fcn.00404578
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c4b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c318
mov eax, dword [0x4b8e88]
cmp byte [eax], 0
je 0x40c52c
mov eax, dword [0x4b8c50]
call fcn.00402fb8
call fcn.00402bfc
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.0040944c
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 0x40c574
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c562
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b8bec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b9668]
call fcn.00405b2c
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 0x40ce18
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 0x40ceee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045bc
lea eax, [ebp - 8]
call fcn.00404a50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ced8
mov eax, ebx
call fcn.00402a70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ced1
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.00404a00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cebb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf00
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cebb
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 0x40ced8
mov eax, dword [ebp - 0x10]
call fcn.00402aa0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cef5
lea eax, [ebp - 8]
call fcn.00404524
ret

Function at 0x40d56c
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 0x40d5d0
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.00404794
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5d7
lea eax, [ebp - 0xc]
call fcn.00404524
ret

Function at 0x424adc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b9888
cmp dword [edi], 0
jne 0x424b58
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b9884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48262c
mov ecx, 2
call fcn.00402c90
mov edx, 0x424ab4
lea eax, [esi + 5]
call fcn.00424ad4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424ad4
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 0x424b2d
mov dword [0x4b9884], 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 0x4260dc
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 0x4260e2
ret
Function at 0x433dd8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x433f41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004045bc
mov eax, dword [ebp - 0x10]
call fcn.00433a28
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x433e2a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404aa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00434530
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x433eff
xor eax, eax
push ebp
push 0x433ef8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00433bd4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00433f70
test al, al
je 0x433ed6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404614
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x433ed6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404a00
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x433ed0
mov eax, dword [ebp - 0x14]
call fcn.00404a00
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040471c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00433dd8
dec ebx
cmp ebx, 0xffffffff
jne 0x433e89
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433eff
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00433bd4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404a00
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00433bc0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433f48
lea eax, [ebp - 0x3c]
call fcn.00404524
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404548
ret

Function at 0x433f70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040312c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4b8fbc]
cmp byte [edx + 0xc], 0
je 0x433fd4
mov edx, dword [0x4b8fb0]
cmp dword [edx], 2
jne 0x433fd4
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret