joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1a68
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4b1a7a
add esp, 0xfffffff0
call fcn.004052dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043e8a8
mov eax, dword [0x4c019c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b1ec4
mov eax, dword [0x4c01a8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b1ed0
mov eax, ebx
call fcn.004b1edc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4ac810
push eax
push 0
push 0
mov eax, dword [0x4c0358]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44920c]
call fcn.0044f4e0
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44920c]
call fcn.0044f4e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44920c]
call fcn.0044f4e0
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44920c]
call fcn.0044f4e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44920c]
call fcn.0044f4e0
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004b2434
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b22a4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b22a4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b22a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b22a4
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b22a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b1bf5
call fcn.00405334
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b2044
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b21f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4b21d2
mov dl, 1
mov eax, dword [0x42a4a8]
call fcn.00436320
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406844
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4b21c1
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.0049476c
test al, al
je 0x4b21b4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4b2200
lea eax, [ebp - 0x394]
call fcn.00413114
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4b21b4
xor eax, eax
push ebp
push 0x4b21ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4b2270
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4b2196
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a2c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4b2196
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b21b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4b20b7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043625c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b21f8
lea eax, [ebp - 0x3a0]
call fcn.00406834
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c62bc]
cmp byte [eax + 0xad], 0
jne 0x4b2dc2
cmp dword [0x4c62d4], 0
jne 0x4b2d82
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4c0050]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4c62d4], eax
cmp dword [0x4c62d0], 0
jne 0x4b2d9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4c62d0], eax
cmp dword [0x4c62d8], 0
jne 0x4b2dc2
push esp
push 0
push 0
mov eax, dword [0x4c004c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4c62d8], eax
pop edx
ret
Function at 0x4b30e8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4b30ff
add esp, 0xfffffff0
call fcn.004052dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043e8a8
mov eax, dword [0x4c00bc]
cmp byte [eax], 0
jne 0x4b312c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4c0330]
cmp word [eax + 2], 0
jne 0x4b3146
mov eax, dword [0x4c0330]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b51e0
mov eax, dword [0x4c0424]
cmp word [eax + 2], 0
jne 0x4b3160
mov eax, dword [0x4c0424]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b53f0
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44920c]
call fcn.0044f4e0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4b59a0
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44d6a4]
call fcn.00458950
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4b3340
mov eax, dword [0x4c021c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00458de4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4b5c88
mov dl, 1
mov eax, dword [0x427da8]
call fcn.00404d78
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4c021c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00412f60
test eax, eax
je 0x4b3271
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00412d44
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00412f44
test eax, eax
je 0x4b3289
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a2c
push ebx
push 0x4b4bb0
call fcn.004a8df8
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4c00bc]
cmp byte [eax], 0
jne 0x4b32da
mov eax, ebx
call fcn.004b34b4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004b5eb4
mov eax, ebx
call fcn.004b6ae8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b3337
call fcn.00405334
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3788
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b382a
cmp dword [ebx + 0x94], 0
jne 0x4b3824
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b36d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b3824
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_GetWindowLongW
test al, 8
je 0x4b37ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b3824
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.00432cb4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b37f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b3a48
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4c62bc]
cmp dword [eax + 0x170], 0
je 0x4b3bad
test bl, bl
jne 0x4b3afb
cmp dword [esi + 0x9c], 0
jne 0x4b3af0
mov eax, esi
call fcn.004b6938
push eax
push 0x4b3954
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4b3ac1
mov eax, dword [0x4c62bc]
cmp byte [eax + 0xd3], 0
je 0x4b3ac1
mov eax, dword [esi + 0xd8]
call fcn.00407e50
mov edi, eax
cmp edi, 0
jl 0x4b3ac1
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b3aaa
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b3af0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00432cb4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b3ad0
inc dword [esi + 0x9c]
jmp 0x4b3bad
cmp dword [esi + 0x9c], 0
jle 0x4b3bad
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4b3bad
cmp dword [esi + 0x44], 0
je 0x4b3b58
mov eax, dword [0x4c62bc]
cmp byte [eax + 0xd3], 0
je 0x4b3b58
mov eax, dword [esi + 0xd8]
call fcn.00407e50
mov edi, eax
cmp edi, 0
jl 0x4b3b58
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b3b41
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b3b87
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00432cb4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b3b67
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4a6cd0]
call fcn.00408010
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4b47fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b4867
cmp byte [ebx + 0xd3], 0
jne 0x4b4867
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406980
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b4854
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b4874
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406844
jmp 0x4b4874
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406844
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b609c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b610a
mov eax, esi
call fcn.0048e6c0
test al, al
je 0x4b610a
mov eax, dword [ebx + 0x84]
call fcn.0048e314
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b610a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4b60fe
push 0
mov eax, dword [ebx + 0x84]
call fcn.0048e314
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004852e8
jmp 0x4b610a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004b5ed4
pop esi
pop ebx
ret

Function at 0x4b7500
Capabilities:
Terminate process

Disassembly:
push ecx
push esp
push edx
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp], 0
je 0x4b7524
push 0xffffffffffffffff
mov eax, dword [esp + 4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
pop edx
ret

Function at 0x4b77f0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push ecx
mov ebx, ecx
mov esi, edx
push 0
push 0
push 0
mov eax, esi
call fcn.004068d0
push eax
push 0x4b7890
push 0
call sub.shell32.dll_ShellExecuteW
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetExitCodeProcess
push 0x1388
call sub.kernel32.dll_Sleep_1
push 0x4b789c
push 0
call sub.user32.dll_FindWindowW
mov esi, eax
mov eax, dword [ebx + 8]
mov edx, 0x4b78b8
call fcn.00406f04
jne 0x4b784a
mov dword [0x4c62e8], esi
mov eax, dword [ebx + 8]
mov edx, 0x4b78d0
call fcn.00406f04
jne 0x4b785f
mov dword [0x4c62ec], esi
mov dword [0x4c62f0], 1
mov eax, ebx
call fcn.0048e314
push eax
push esi
call sub.user32.dll_SetParent
push 0xffffffffffffffff
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
push 0
push 0
push esi
call sub.user32.dll_MoveWindow
pop edx
pop esi
pop ebx
ret
Function at 0x4b78dc
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffac
mov ebx, edx
mov eax, esp
xor ecx, ecx
mov edx, 0x44
call fcn.0040476c
mov dword [esp], 0x44
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
mov eax, ebx
call fcn.004068d0
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b794e
mov eax, dword [esp + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x48]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4b7953
call fcn.00418d1c
add esp, 0x54
pop ebx
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x2d3a61ca
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, str.3_M
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x24733dd5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402a74
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.004040d0
test esi, esi
jne 0x402aaa
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.004041c0
jmp 0x402ac8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402988
mov edi, eax
test esi, esi
je 0x402ac8
cmp dword [ebx], 0
je 0x402ac8
dec esi
jmp 0x402ab1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031f0
Capabilities:
Query or enumerate registry value

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

Function at 0x403f54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d04c], 0
je 0x403fb5
cmp word [0x47d220], 0xd7b2
jne 0x403f7d
cmp dword [0x47d228], 0
jbe 0x403f7d
mov eax, 0x47d21c
call dword [0x47d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b06c
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 0x403fdc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47b030], 0
jne 0x403fd1
push 0
push 0x47b064
push 0x47b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40601c
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 0x406082
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.00404340
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d5c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40606c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406089
lea eax, [ebp - 0x10]
call fcn.004040d0
ret

Function at 0x40b3a0
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 0x40b3d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041c0
jmp 0x40b3e2
mov eax, ebx
mov edx, esi
call fcn.00404124
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba94
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b90c
mov eax, dword [0x47ccd4]
cmp byte [eax], 0
je 0x40bb10
mov eax, dword [0x47ca78]
call fcn.00402b8c
call fcn.004028b4
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.00408b34
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 0x40bb58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb46
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47ca1c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47d668]
call fcn.00405530
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