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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46f3a0]
cmp byte [eax + 0xc], 0
je 0x444779
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444772
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470b08], 0
jne 0x444660
push 0x444780
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x444788
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b08], eax
cmp dword [0x46ec90], 0
jne 0x44475b
push 0x444798
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ec90], eax
cmp dword [0x46ec90], 0
je 0x44475b
push 0x4447a4
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b0c], eax
push 0x4447b4
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b10], eax
push 0x4447c8
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b14], eax
push 0x4447e0
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b18], eax
push 0x4447f8
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b1c], eax
push 0x44480c
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b20], eax
push 0x444824
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b24], eax
push 0x44483c
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b28], eax
push 0x444858
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b2c], eax
push 0x444864
mov eax, dword [0x46ec90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444779
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449290
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.004048cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4492df
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.00404b3c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450c2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450c7c]
test si, 4
je 0x450c40
or bl, 1
test si, 8
je 0x450c4a
or bl, 4
test si, 1
je 0x450c54
or bl, 8
test si, 2
je 0x450c5e
or bl, 0x10
test si, 0x10
je 0x450c68
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450c77
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450cb8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450c99
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450ca8
or bl, 4
test esi, 0x20000000
je 0x450cb3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45737c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45738e
add esp, 0xfffffff0
call fcn.00403e5c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b098
mov eax, dword [0x46f038]
mov dword [eax + 4], ebx
mov dword [eax], 0x457720
mov eax, dword [0x46f048]
mov dword [eax + 4], ebx
mov dword [eax], 0x45772c
mov eax, ebx
call fcn.00457738
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403af4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403af4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403af4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403af4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412824]
call fcn.00403af4
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, 0x453b50
push eax
push 0
push 0
mov eax, dword [0x46f1a0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cb68]
call fcn.0041e228
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cb68]
call fcn.0041e228
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cb68]
call fcn.0041e228
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457b88
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457a50
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457a50
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457a50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4574cb
call fcn.00403eb4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457834
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 0x4579df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4579c0
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.00403af4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4579af
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.0044496c
test al, al
je 0x4579a2
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, 0x4579f0
lea eax, [ebp - 0x254]
call fcn.004098b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4579a2
xor eax, eax
push ebp
push 0x45799b
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 0x457a28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457984
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b3c
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 0x457984
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4579a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4578a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417148
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 0x4579e6
lea eax, [ebp - 0x260]
call fcn.004048cc
ret

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

Disassembly:
push ecx
mov eax, dword [0x470b54]
cmp byte [eax + 0xa5], 0
jne 0x458399
cmp dword [0x470b6c], 0
jne 0x45835a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4582e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470b6c], eax
cmp dword [0x470b68], 0
jne 0x458375
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470b68], eax
cmp dword [0x470b70], 0
jne 0x458399
push esp
push 0
push 0
push 0x458288
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470b70], eax
pop edx
ret
Function at 0x458a2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470b54]
cmp dword [eax + 0x30], 0
je 0x458ad6
cmp dword [ebx + 0x94], 0
jne 0x458ad0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4589bc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458ad0
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 0x458a96
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458ad0
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.00414d2c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458aa5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459634
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 0x459669
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.004049bc
jmp 0x459676
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404920
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a830
Capabilities:
Hide graphical window

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

Function at 0x45ea14
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x46ef28], 0
jne 0x45eae6
mov byte [0x46ef28], 1
xor eax, eax
mov dword [0x46ef20], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x45ea5c
cmp dword [esp + 0x1c], 3
jne 0x45eabc
cmp dword [esp + 0x20], 0x33
jbe 0x45eabc
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x45eaf0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45eae6
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x45eb20
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45eae6
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x45eae6
cmp byte [esp + 9], 0
jne 0x45eae6
jmp 0x45ead1
push 0
push 0x45eb20
push 0x45eb28
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x45eae6
mov eax, dword [0x46ef1c]
call fcn.00404d8c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ef20], eax
add esp, 0xac
ret
Function at 0x468f78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404d7c
mov eax, dword [ebp - 8]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x46908e
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
call fcn.00404b8c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00404b8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x468fd7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404f18
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x46900c
mov ebx, 1
mov eax, edi
call fcn.00404de4
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x468fed
cmp byte [ebp - 9], 0
je 0x469044
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x469073
inc esi
mov eax, edi
call fcn.00404de4
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x46901e
jmp 0x469073
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x469073
inc esi
mov eax, edi
call fcn.00404de4
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x469050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469095
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret

Function at 0x469858
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov ebx, edx
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
call sub.shfolder.dll_SHGetFolderPathA
call fcn.004073e0
test eax, eax
je 0x4698a4
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b3c
jmp 0x4698ab
mov eax, ebx
call fcn.004048cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a84
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.0040411c
test esi, esi
jne 0x402aba
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.0040420c
jmp 0x402ad8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402938
mov edi, eax
test esi, esi
je 0x402ad8
cmp dword [ebx], 0
je 0x402ad8
dec esi
jmp 0x402ac1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031b8
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 0x403250
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403230
xor eax, eax
push ebp
push 0x403229
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 0x40326c
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 0x403230
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 0x403f1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48404c], 0
je 0x403f7d
cmp word [0x484220], 0xd7b2
jne 0x403f45
cmp dword [0x484228], 0
jbe 0x403f45
mov eax, 0x48421c
call dword [0x484238]
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 0x403fa4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482030], 0
jne 0x403f99
push 0
push 0x482064
push 0x48206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026fc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404098
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060bc
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 0x406122
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.0040438c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40610c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406129
lea eax, [ebp - 0x10]
call fcn.0040411c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045dc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408d25
test al, 0x10
jne 0x408d29
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b8f0
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 0x40b929
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040420c
jmp 0x40b932
mov eax, ebx
mov edx, esi
call fcn.00404170
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bfe4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40be5c
mov eax, dword [0x483bd0]
cmp byte [eax], 0
je 0x40c060
mov eax, dword [0x48385c]
call fcn.00402ba0
call fcn.00402864
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.00409048
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 0x40c0a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c096
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4837d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484668]
call fcn.0040559c
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 0x40c968
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 0x40ca3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041b4
lea eax, [ebp - 8]
call fcn.0040462c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca28
mov eax, ebx
call fcn.004026fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca21
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.004045dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca0b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca50
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca0b
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 0x40ca28
mov eax, dword [ebp - 0x10]
call fcn.0040271c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca45
lea eax, [ebp - 8]
call fcn.0040411c
ret

Function at 0x40cffc
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 0x40d060
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.0040438c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408888
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d067
lea eax, [ebp - 0xc]
call fcn.0040411c
ret

Function at 0x41ec74
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41ecc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041eaa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ecd9
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ece0
Capabilities:
Resume thread

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48488c
cmp dword [edi], 0
jne 0x41fec0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x484888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x482418
mov ecx, 2
call fcn.004028f8
mov edx, 0x41fe1c
lea eax, [esi + 5]
call fcn.0041fe3c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fe3c
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 0x41fe95
mov dword [0x484888], 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 0x421434
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 0x42143a
ret

Function at 0x4238d0
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 0x423921
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423908
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4238f8
jmp 0x423921
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 0x423909
pop ebx
mov esp, ebp
pop ebp
ret