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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4aedcc]
cmp byte [eax + 0xc], 0
je 0x451b6d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451b66
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4afb94], 0
jne 0x451a54
push 0x451b74
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x451b7c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afb94], eax
cmp dword [0x4adeb8], 0
jne 0x451b4f
push 0x451b8c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4adeb8], eax
cmp dword [0x4adeb8], 0
je 0x451b4f
push 0x451b98
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afb98], eax
push 0x451ba8
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afb9c], eax
push 0x451bbc
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afba0], eax
push 0x451bd4
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afba4], eax
push 0x451bec
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afba8], eax
push 0x451c00
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afbac], eax
push 0x451c18
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afbb0], eax
push 0x451c30
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afbb4], eax
push 0x451c4c
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afbb8], eax
push 0x451c58
mov eax, dword [0x4adeb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4afbbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451b6d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Function at 0x45d534
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45d584]
test si, 4
je 0x45d548
or bl, 1
test si, 8
je 0x45d552
or bl, 4
test si, 1
je 0x45d55c
or bl, 8
test si, 2
je 0x45d566
or bl, 0x10
test si, 0x10
je 0x45d570
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d57f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45d588
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45d5c0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d5a1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d5b0
or bl, 4
test esi, 0x20000000
je 0x45d5bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x463c68
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x463c7a
add esp, 0xfffffff0
call fcn.00403d14
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004269c4
mov eax, dword [0x4ae8c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x46400c
mov eax, dword [0x4ae8dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x464018
mov eax, ebx
call fcn.00464024
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
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, 0x460440
push eax
push 0
push 0
mov eax, dword [0x4aeadc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428448]
call fcn.00429bbc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428448]
call fcn.00429bbc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428448]
call fcn.00429bbc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00464444
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x464320
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x464320
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x464320
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x463db7
call fcn.00403d6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x464104
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 0x4642af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x464290
mov dl, 1
mov eax, dword [0x41c510]
call fcn.00403980
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404820
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46427f
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.00451e64
test al, al
je 0x464272
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, 0x4642c0
lea eax, [ebp - 0x254]
call fcn.0040ad94
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x464272
xor eax, eax
push ebp
push 0x46426b
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 0x4642f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x464254
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a90
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 0x464254
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464272
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x464175
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420a60
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 0x4642b6
lea eax, [ebp - 0x260]
call fcn.00404820
ret

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

Disassembly:
push ecx
mov eax, dword [0x4afbe0]
cmp byte [eax + 0xa5], 0
jne 0x464c55
cmp dword [0x4afbf8], 0
jne 0x464c16
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x464ba0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4afbf8], eax
cmp dword [0x4afbf4], 0
jne 0x464c31
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4afbf4], eax
cmp dword [0x4afbfc], 0
jne 0x464c55
push esp
push 0
push 0
push 0x464b44
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4afbfc], eax
pop edx
ret
Function at 0x464d4c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x464d63
add esp, 0xfffffff0
call fcn.00403d14
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004269c4
mov eax, dword [0x4aeac8]
cmp word [eax + 2], 0
jne 0x464d8b
mov eax, dword [0x4aeac8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004664cc
mov eax, dword [0x4aebe0]
cmp word [eax + 2], 0
jne 0x464da5
mov eax, dword [0x4aebe0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004666c4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41beac]
call fcn.00403980
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 [0x428f28]
call fcn.0043064c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x464f2c
mov eax, dword [0x4ae96c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430a1c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466c64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ae96c]
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.0040eb14
test eax, eax
je 0x464e9a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a774
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040eb3c
test eax, eax
je 0x464eae
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.00404a90
mov eax, dword [0x4ae794]
cmp byte [eax], 0
jne 0x464ee2
mov eax, ebx
call fcn.00465054
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.00466e40
mov eax, ebx
call fcn.00467804
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464f22
call fcn.00403d6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4652d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4afbe0]
cmp dword [eax + 0x30], 0
je 0x46537e
cmp dword [ebx + 0x94], 0
jne 0x465378
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x465264
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465378
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 0x46533e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465378
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.0041e6e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46534d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465ee0
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 0x465f15
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.00404910
jmp 0x465f22
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404874
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46701c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46705d
mov eax, esi
call fcn.0044d2e4
test al, al
je 0x46705d
mov eax, dword [ebx + 0x84]
call fcn.0044cfe0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46705d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044cfe0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x484390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4845f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4843f3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00483e58
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e700
cmp al, 1
jne 0x4843f3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00484170
test al, al
je 0x48457f
cmp dword [ebp - 8], 0
jge 0x484411
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00483e58
mov eax, dword [ebp - 0x210]
call fcn.00404ae0
cmp ebx, eax
jge 0x48445b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00483e58
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4aedb0]
and eax, 0xff
bt dword [edx], eax
jae 0x48445b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x48446f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048436c
cmp ebx, dword [ebp - 8]
je 0x484571
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x48449b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ae3ec]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x48455e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ae3ec]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044cfe0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ae3ec]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044cfe0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484565
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4845d2
cmp dword [ebp - 8], 0
jge 0x48458a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00483e58
mov eax, dword [ebp - 0x218]
call fcn.00404ae0
cmp eax, dword [ebp - 8]
jg 0x4845c4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00483e58
mov eax, dword [ebp - 0x21c]
call fcn.00404ae0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048436c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4845f7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404844
ret
Function at 0x49b368
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x49b38d
cmp dword [esp + 4], 5
jb 0x49b38d
mov al, 1
jmp 0x49b38f
xor eax, eax
add esp, 0x94
ret
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1002999d
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1002999d
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x1002999d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100299ac
pop dword [ebp - 0x14]
mov eax, 0x100299ac
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3d3be
push 0
mov eax, 0x437681ae
add eax, 0xcc8cdf2e
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xc66e67da
add ecx, 0x3991d35a
xor edi, edi
add edi, eax
mov ebx, 0x1003be00
add ebx, dword [ebp - 0x14]
mov esi, 0x8d503e67
xor dword [ebp - 0xc], edi
mov edx, dword [ebx]
sub dword [ebp - 0x10], esi
add edx, esi
sub dword [ebp - 4], 0xa34c735a
mov dword [edi], edx
sub dword [ebp - 4], 0x9619d100
add edi, 4
add ebx, 4
loop 0x100299fc
add eax, 0xba53f858
sub eax, 0xba5318b5
xor ebx, ebx
add ebx, eax
add eax, 0xa6894334
sub eax, 0xa689432f
mov ecx, 0x2db352d1
add ecx, 0xe24cad2f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x463008], 0x8088405
inc edx
mov dword [ebx + 0x463008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

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

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x548048], 0
je 0x404581
cmp word [0x54821c], 0xd7b2
jne 0x404549
cmp dword [0x548224], 0
jbe 0x404549
mov eax, 0x548218
call dword [0x548234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463030], 0
jne 0x40459d
push 0
push 0x463754
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4081e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408270
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408270
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408223
test edx, 3
jne 0x408212
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40821d
jmp 0x408223
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408223
cmp dword [ecx - 8], 1
je 0x40822d
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40823f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x40827c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40830c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40830c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4082bf
test edx, 3
jne 0x4082ae
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4082b9
jmp 0x4082bf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4082bf
cmp dword [ecx - 8], 1
je 0x4082c9
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4082db
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b64
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ba1
test al, 0x10
je 0x408ba5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b5e0
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 0x40b619
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40b622
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b62c
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 0x40b64e
movzx eax, byte [esp]
jmp 0x40b650
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret