joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f2cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46ba9c]
cmp byte [eax + 0xc], 0
je 0x43f439
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f432
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46cb64], 0
jne 0x43f320
push 0x43f440
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f448
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb64], eax
cmp dword [0x46ab48], 0
jne 0x43f41b
push 0x43f458
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ab48], eax
cmp dword [0x46ab48], 0
je 0x43f41b
push 0x43f464
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb68], eax
push 0x43f474
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb6c], eax
push 0x43f488
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb70], eax
push 0x43f4a0
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb74], eax
push 0x43f4b8
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb78], eax
push 0x43f4cc
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb7c], eax
push 0x43f4e4
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb80], eax
push 0x43f4fc
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb84], eax
push 0x43f518
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb88], eax
push 0x43f524
mov eax, dword [0x46ab48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f439
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44377c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4437cb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404654
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44af9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44afec]
test si, 4
je 0x44afb0
or bl, 1
test si, 8
je 0x44afba
or bl, 4
test si, 1
je 0x44afc4
or bl, 8
test si, 2
je 0x44afce
or bl, 0x10
test si, 0x10
je 0x44afd8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44afe7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44aff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b028]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b009
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b018
or bl, 4
test esi, 0x20000000
je 0x44b023
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4516ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4516fe
add esp, 0xfffffff0
call fcn.00403990
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419a04
mov eax, dword [0x46b75c]
mov dword [eax + 4], ebx
mov dword [eax], 0x451a90
mov eax, dword [0x46b768]
mov dword [eax + 4], ebx
mov dword [eax], 0x451a9c
mov eax, ebx
call fcn.00451aa8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ce4]
call fcn.00403628
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ce4]
call fcn.00403628
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ce4]
call fcn.00403628
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ce4]
call fcn.00403628
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ce4]
call fcn.00403628
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44dec0
push eax
push 0
push 0
mov eax, dword [0x46b8b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b468]
call fcn.0041cc00
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b468]
call fcn.0041cc00
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b468]
call fcn.0041cc00
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451ef8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451dc0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451dc0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451dc0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45183b
call fcn.004039e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451ba4
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 0x451d4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451d30
mov dl, 1
mov eax, dword [0x412100]
call fcn.00403628
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451d1f
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.0043f62c
test al, al
je 0x451d12
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, 0x451d60
lea eax, [ebp - 0x254]
call fcn.00409074
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451d12
xor eax, eax
push ebp
push 0x451d0b
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 0x451d98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451cf4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
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 0x451cf4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451d12
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451c15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415bf4
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 0x451d56
lea eax, [ebp - 0x260]
call fcn.004043e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x46cbb0]
cmp byte [eax + 0xa5], 0
jne 0x452709
cmp dword [0x46cbc8], 0
jne 0x4526ca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452654
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46cbc8], eax
cmp dword [0x46cbc4], 0
jne 0x4526e5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46cbc4], eax
cmp dword [0x46cbcc], 0
jne 0x452709
push esp
push 0
push 0
push 0x4525f8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46cbcc], eax
pop edx
ret
Function at 0x452d9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46cbb0]
cmp dword [eax + 0x30], 0
je 0x452e46
cmp dword [ebx + 0x94], 0
jne 0x452e40
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452d2c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452e40
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 0x452e06
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452e40
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.0041404c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452e15
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4539a4
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 0x4539d9
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.004044d4
jmp 0x4539e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404438
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454b98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454bd9
mov eax, esi
call fcn.0043aca8
test al, al
je 0x454bd9
mov eax, dword [ebx + 0x84]
call fcn.0043a9a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454bd9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a9a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4582c4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4582f2
mov eax, ebx
call fcn.00458d78
cmp dword [ebx + 0x40], 0
je 0x4582eb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x458363
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x458355
cmp dword [ebx + 8], 0
je 0x458314
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x458326
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x458355
cmp dword [ebx + 8], 0
je 0x458307
cmp eax, 3
je 0x458339
dec eax
jne 0x458307
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x458307
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x458307
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x458381
cmp dword [ebx + 0x14], 0xcc
je 0x458381
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045838c
pop ebx
ret
Function at 0x468d1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403070
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
xor eax, eax
push ebp
push 0x468dbb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, esi
call fcn.004048a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test bl, bl
jne 0x468d85
mov bl, 1
jmp 0x468db1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468dce
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d8ab3
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5d87dc
add ebx, ecx
and ecx, ecx
or ecx, ecx
call fcn.005d8aee
mov ecx, 0x506f44ea
dec ebx
xor dword [esi], edi
sub ecx, 0xfa50aca5
add ebx, 0x2c7ddf4f
add esi, 2
add ebx, ebx
sub ebx, ebx
cmp esi, eax
jl fcn.005d8ab3
or ebx, ebx
and ecx, ebx
ret
Function at 0x410b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402d84
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 0x402ddd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c20
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c20
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402dc7
inc ebx
jmp 0x402db0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402de4
lea eax, [ebp - 8]
call fcn.00404a0c
ret

Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a0c
test esi, esi
jne 0x402e23
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.00404afc
jmp 0x402e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c20
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403c24
Capabilities:
Query or enumerate registry value

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

Function at 0x404888
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b044], 0
je 0x4048e9
cmp word [0x41b218], 0xd7b2
jne 0x4048b1
cmp dword [0x41b220], 0
jbe 0x4048b1
mov eax, 0x41b214
call dword [0x41b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a0b8
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 0x404910
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a02c], 0
jne 0x404905
push 0
push 0x41a0b0
push 0x41a0b8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065c8
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 0x40662e
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.00404c7c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035a8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406618
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406635
lea eax, [ebp - 0x10]
call fcn.00404a0c
ret

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

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

Function at 0x408388
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404ea8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4083aa
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ae44
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 0x40ae7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404afc
jmp 0x40ae86
mov eax, ebx
mov edx, esi
call fcn.00404a60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae90
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 0x40aeb1
mov al, byte [esp]
jmp 0x40aeb3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b548
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3b0
mov eax, dword [0x41aad8]
cmp byte [eax], 0
je 0x40b5c4
mov eax, dword [0x41a9ec]
call fcn.004031bc
call fcn.00402ad8
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.00408798
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 0x40b60c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41a9c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41b660]
call fcn.00405a70
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 0x40c3fc
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 0x40c460
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.00404c7c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c467
lea eax, [ebp - 0xc]
call fcn.00404a0c
ret

Function at 0x4182fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4183b3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404c7c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040c1f8
push dword [ebp - 0x10c]
push 0x4183c8
lea eax, [ebp - 0x114]
mov edx, dword [0x41ab18]
call fcn.00404c70
push dword [ebp - 0x114]
push 0x4183d8
mov eax, ebx
mov edx, 4
call fcn.00404d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4183ba
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404a30
ret