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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d0a10]
cmp byte [eax + 0xc], 0
je 0x457ab5
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457aae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d1ba0], 0
jne 0x45799c
push 0x457abc
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x457ac4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1ba0], eax
cmp dword [0x4ceef0], 0
jne 0x457a97
push 0x457ad4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4ceef0], eax
cmp dword [0x4ceef0], 0
je 0x457a97
push 0x457ae0
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1ba4], eax
push 0x457af0
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1ba8], eax
push 0x457b04
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bac], eax
push 0x457b1c
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bb0], eax
push 0x457b34
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bb4], eax
push 0x457b48
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bb8], eax
push 0x457b60
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bbc], eax
push 0x457b78
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bc0], eax
push 0x457b94
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bc4], eax
push 0x457ba0
mov eax, dword [0x4ceef0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d1bc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ab5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45bf5c
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.0040436c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45bfab
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.004045dc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463864
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4638b4]
test si, 4
je 0x463878
or bl, 1
test si, 8
je 0x463882
or bl, 4
test si, 1
je 0x46388c
or bl, 8
test si, 2
je 0x463896
or bl, 0x10
test si, 0x10
je 0x4638a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4638af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4638b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4638f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4638d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4638e0
or bl, 4
test esi, 0x20000000
je 0x4638eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x469f98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x469faa
add esp, 0xfffffff0
call fcn.004038bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004251b8
mov eax, dword [0x4d048c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46a33c
mov eax, dword [0x4d049c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46a348
mov eax, ebx
call fcn.0046a354
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
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, 0x466770
push eax
push 0
push 0
mov eax, dword [0x4d06e4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426c60]
call fcn.004283d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426c60]
call fcn.004283d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426c60]
call fcn.004283d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046a804
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a698
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a698
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a698
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a0e7
call fcn.00403914
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46a47c
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 0x46a627
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a608
mov dl, 1
mov eax, dword [0x41a318]
call fcn.00403528
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040436c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46a5f7
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.00457dac
test al, al
je 0x46a5ea
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, 0x46a638
lea eax, [ebp - 0x254]
call fcn.00409a44
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46a5ea
xor eax, eax
push ebp
push 0x46a5e3
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 0x46a670
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46a5cc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045dc
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 0x46a5cc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a5ea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46a4ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ec20
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 0x46a62e
lea eax, [ebp - 0x260]
call fcn.0040436c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d1bec]
cmp byte [eax + 0xa5], 0
jne 0x46b015
cmp dword [0x4d1c04], 0
jne 0x46afd6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x46af60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d1c04], eax
cmp dword [0x4d1c00], 0
jne 0x46aff1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4d1c00], eax
cmp dword [0x4d1c08], 0
jne 0x46b015
push esp
push 0
push 0
push 0x46af04
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4d1c08], eax
pop edx
ret
Function at 0x46b10c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46b123
add esp, 0xfffffff0
call fcn.004038bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004251b8
mov eax, dword [0x4d06d0]
cmp word [eax + 2], 0
jne 0x46b14b
mov eax, dword [0x4d06d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046c88c
mov eax, dword [0x4d07e8]
cmp word [eax + 2], 0
jne 0x46b165
mov eax, dword [0x4d07e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ca84
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419cb4]
call fcn.00403528
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 [0x427740]
call fcn.0042efe8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46b2ec
mov eax, dword [0x4d052c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f3b8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46d034
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d052c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
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.0040d90c
test eax, eax
je 0x46b25a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409408
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d934
test eax, eax
je 0x46b26e
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.004045dc
mov eax, dword [0x4d0340]
cmp byte [eax], 0
jne 0x46b2a2
mov eax, ebx
call fcn.0046b414
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.0046d210
mov eax, ebx
call fcn.0046dbd4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b2e2
call fcn.00403914
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b694
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d1bec]
cmp dword [eax + 0x30], 0
je 0x46b73e
cmp dword [ebx + 0x94], 0
jne 0x46b738
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b624
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b738
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 0x46b6fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b738
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.0041c638
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b70d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46c2a0
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 0x46c2d5
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.0040445c
jmp 0x46c2e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46d3ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46d42d
mov eax, esi
call fcn.0045322c
test al, al
je 0x46d42d
mov eax, dword [ebx + 0x84]
call fcn.00452f28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d42d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00452f28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x492d33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4cfff2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x492d8b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4d0013
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x492d81
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
jmp 0x492d8f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4a25a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
dec edx
mov eax, edx
shl eax, 2
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x4a2615
xor eax, eax
push ebp
push 0x4a260e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2615
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_VirtualProtect
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aba9c
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 0x4abcfc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4abaff
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004ab564
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d46c
cmp al, 1
jne 0x4abaff
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004ab87c
test al, al
je 0x4abc8b
cmp dword [ebp - 8], 0
jge 0x4abb1d
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.004ab564
mov eax, dword [ebp - 0x210]
call fcn.0040462c
cmp ebx, eax
jge 0x4abb67
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004ab564
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4d09ec]
and eax, 0xff
bt dword [edx], eax
jae 0x4abb67
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4abb7b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004aba78
cmp ebx, dword [ebp - 8]
je 0x4abc7d
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 0x4abba7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403754
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d0228]
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 0x4abc6a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403754
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d0228]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00452f28
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403754
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d0228]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00452f28
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abc71
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 0x4abcde
cmp dword [ebp - 8], 0
jge 0x4abc96
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004ab564
mov eax, dword [ebp - 0x218]
call fcn.0040462c
cmp eax, dword [ebp - 8]
jg 0x4abcd0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004ab564
mov eax, dword [ebp - 0x21c]
call fcn.0040462c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004aba78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abd03
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404390
ret
Function at 0x4c9754
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4c978c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c976a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c9779
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c9788
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x18006c69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18006cc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006cc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006cb1
cmp esi, ecx
jae 0x18006cc2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c9f
cmp esi, ecx
jae 0x18006cc2
cmp word [esi], 0
je 0x18006cc2
lfence
mov eax, esi
jmp 0x18006cc4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007db8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007dd3
mov al, 1
jmp 0x18007e16
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.181374a0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180115cf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007dcf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.181227f8
leave
ret
Function at 0x1800835f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.18009145
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x18008404
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x1800840f
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x18008419
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x181d7140]
mov ecx, dword [eax + 0x181d7144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008492
cmp ecx, 9
ja 0x18008492
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.18009145
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008475
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x18008478
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18006f72
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x18008428
call fcn.18011f9e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18006f72
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181227f8
leave
ret