joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462884
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4628bc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46289d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4628ac
or bl, 4
test esi, 0x20000000
je 0x4628b7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46290c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.004628c0
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x469218
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46922a
add esp, 0xfffffff0
call fcn.00403dd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424580
mov eax, dword [0x65fdf4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4695bc
mov eax, dword [0x65fe0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4695c8
mov eax, ebx
call fcn.004695d4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
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, 0x465a9c
push eax
push 0
push 0
mov eax, dword [0x660058]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426048]
call fcn.004277fc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426048]
call fcn.004277fc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426048]
call fcn.004277fc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00469acc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469960
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469960
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469960
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469367
call fcn.00403e28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x469744
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 0x4698ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4698d0
mov dl, 1
mov eax, dword [0x419a90]
call fcn.00403a3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040485c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4698bf
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.004556ac
test al, al
je 0x4698b2
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, 0x469900
lea eax, [ebp - 0x254]
call fcn.0040a520
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4698b2
xor eax, eax
push ebp
push 0x4698ab
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 0x469938
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x469894
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
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 0x469894
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4698b2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4697b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e550
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 0x4698f6
lea eax, [ebp - 0x260]
call fcn.0040485c
ret

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

Disassembly:
push ecx
mov eax, dword [0x661c3c]
cmp byte [eax + 0xa5], 0
jne 0x46a2dd
cmp dword [0x661c54], 0
jne 0x46a29e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x46a228
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x661c54], eax
cmp dword [0x661c50], 0
jne 0x46a2b9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x661c50], eax
cmp dword [0x661c58], 0
jne 0x46a2dd
push esp
push 0
push 0
push 0x46a1cc
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x661c58], eax
pop edx
ret
Function at 0x46a434
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46a44b
add esp, 0xfffffff0
call fcn.00403dd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424580
mov eax, dword [0x660028]
cmp word [eax + 2], 0
jne 0x46a473
mov eax, dword [0x660028]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046bb10
mov eax, dword [0x660174]
cmp word [eax + 2], 0
jne 0x46a48d
mov eax, dword [0x660174]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046bd08
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41942c]
call fcn.00403a3c
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], 0x80000018
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 [0x426b68]
call fcn.0042ecf4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46a614
mov eax, dword [0x65feb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f0c4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46c288
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x65feb0]
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.0040dbbc
test eax, eax
je 0x46a582
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409e3c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbe4
test eax, eax
je 0x46a596
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.00404ac4
mov eax, dword [0x65fc5c]
cmp byte [eax], 0
jne 0x46a5ca
mov eax, ebx
call fcn.0046a73c
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.0046c464
mov eax, ebx
call fcn.0046ce14
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a60a
call fcn.00403e28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a9b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x661c3c]
cmp dword [eax + 0x30], 0
je 0x46aa5a
cmp dword [ebx + 0x94], 0
jne 0x46aa54
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a940
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46aa54
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 0x46aa1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46aa54
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.0041bd08
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46aa29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b538
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 0x46b56d
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.0040494c
jmp 0x46b57a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048b0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c640
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c681
mov eax, esi
call fcn.00450da4
test al, al
je 0x46c681
mov eax, dword [ebx + 0x84]
call fcn.00450aa0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c681
push 0
mov eax, dword [ebx + 0x84]
call fcn.00450aa0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46d164
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
mov ebx, 0x661c64
xor eax, eax
call fcn.0046d120
xor eax, eax
mov dword [ebp - 9], eax
xor eax, eax
mov dword [ebp - 5], eax
call fcn.0046cee4
mov eax, ebx
xor ecx, ecx
mov edx, 0x4c
call fcn.00403234
mov dword [ebx], esi
mov dword [ebx + 4], edi
cmp byte [ebp - 1], 0
je 0x46d1b1
cmp dword [0x661cb8], 0
jne 0x46d1b5
xor eax, eax
jmp 0x46d1b7
mov al, 1
mov byte [ebx + 8], al
mov al, byte [ebp + 8]
mov byte [ebx + 0x3c], al
lea eax, [ebx + 0x34]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetClientRect
push 2
lea eax, [ebx + 0x1c]
push eax
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_MapWindowPoints
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetWindowRect
push 3
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetDCEx
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov dword [ebx + 0x2c], eax
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x20]
mov dword [ebx + 0x30], esi
push esi
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x10]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
mov dword [ebx + 0x14], esi
mov eax, dword [ebx + 0x18]
push eax
push esi
call sub.gdi32.dll_SelectObject
push 0x1e
mov eax, dword [ebx + 0x14]
push eax
push 0x317
mov eax, dword [ebx]
push eax
call sub.user32.dll_SendMessageA
cmp byte [ebx + 8], 0
je 0x46d2a7
push 0xffffffffffffffec
mov esi, dword [ebx]
push esi
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
mov dword [ebx + 0xc], 0x20
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x14], 0
mov al, byte [ebx + 0xc]
mov byte [ebp - 0x12], al
push 2
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 9]
push eax
mov eax, dword [ebx + 0x14]
push eax
lea eax, [ebx + 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebx]
push eax
call dword [0x661cb8]
jmp 0x46d2d0
xor eax, eax
mov dword [ebx + 0xc], eax
push 0
push 0
push 0
push 0
call sub.gdi32.dll_CreateRectRgn
mov esi, eax
push 0
push esi
mov eax, dword [ebx]
push eax
call sub.user32.dll_SetWindowRgn
test eax, eax
jne 0x46d2d0
push esi
call sub.gdi32.dll_DeleteObject
push 0x425f
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_SetWindowPos
push 0
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x46cf30
xor edx, edx
xor eax, eax
call fcn.00404810
mov dword [0x661c60], eax
cmp dword [0x661c60], 0
jne 0x46d312
call fcn.0046d098
jmp 0x46d323
inc dword [0x661cb0]
mov eax, dword [0x661c60]
push eax
call sub.KERNEL32.DLL_ResumeThread
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d79c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 1
je 0x46d7c3
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d94c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46d945
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x46d812
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
test edi, edi
je 0x46d808
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, ebx
call edi
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.user32.dll_GetWindowRect
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 4
je 0x46d92a
mov edx, dword [ebp - 4]
test al, 8
je 0x46d88e
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x46d873
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00448c14
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x14
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x46d8b0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00448c14
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x318
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00448c14
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 0x10
je 0x46d908
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x28], 0x1e
lea eax, [ebp - 0x34]
push eax
push 0x46d6d8
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 0x20
je 0x46d92a
mov byte [ebp - 0x34], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0x46d6d8
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d94c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46dd38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x46ddef
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x190
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x46de00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46ddd9
mov dword [ebp - 0xc], 0x20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x46de18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp esi, 2
je 0x46ddd9
test esi, esi
jne 0x46ddb0
cmp dword [ebp - 8], 1
je 0x46ddb4
xor ebx, ebx
jmp 0x46ddd9
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, 0x20
call fcn.00404ac4
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x10]
call fcn.00403298
mov ebx, eax
cmp dword [ebp - 0x10], 0
je 0x46ddd9
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ddf6
lea eax, [ebp - 0x34]
call fcn.0040485c
ret

Function at 0x46e9c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46ea83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x65feb8]
cmp dword [eax], 5
jl 0x46e9f5
mov eax, dword [0x660430]
cmp dword [eax], 2
je 0x46e9f9
mov bl, 1
jmp 0x46ea6d
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x46ea9c
push esi
push 0x46eac8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404bd4
mov eax, dword [ebp - 0x14]
call fcn.00404d0c
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46ea6d
mov dword [ebp - 0x10], 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x46ea5b
cmp word [ebp - 0xc], 0
jne 0x46ea62
cmp eax, 0xea
jne 0x46ea64
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ea8a
lea eax, [ebp - 0x14]
call fcn.0040485c
ret
Function at 0x46eb38
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x46ebc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x1004
push 0
call sub.user32.dll_GetKeyboardLayout
and eax, 0xffff
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x46eba8
mov byte [ebp - 5], 0
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 0x10
call fcn.00404ac4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call fcn.00405c0c
mov ebx, eax
cmp dword [ebp - 4], 0
jne 0x46eba4
push ebx
call sub.KERNEL32.DLL_IsValidCodePage
test eax, eax
jne 0x46ebaa
xor ebx, ebx
jmp 0x46ebaa
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ebc7
lea eax, [ebp - 0x18]
call fcn.0040485c
ret

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

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, eax
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyA
mov ebx, eax
shl ebx, 0x10
test ebx, ebx
je 0x46f390
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextA
test eax, eax
jle 0x46f390
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
jmp 0x46f39c
mov eax, esi
mov edx, 0x46f3b0
call fcn.004048b0
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x47d0dc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
lea edi, [ebp - 0x1d]
xor edx, edx
push ebp
push 0x47d31e
push dword fs:[edx]
mov dword fs:[edx], esp
mov bl, 1
jmp 0x47d2e3
test bl, bl
jne 0x47d106
call sub.user32.dll_WaitMessage
xor ebx, ebx
jmp 0x47d2c2
mov eax, dword [edi + 4]
cmp eax, 0x105
jg 0x47d13c
je 0x47d1ca
sub eax, 0xa0
je 0x47d20d
dec eax
sub eax, 9
jb 0x47d1ed
sub eax, 0x5a
je 0x47d156
jmp 0x47d289
sub eax, 0x200
je 0x47d20d
dec eax
sub eax, 9
jb 0x47d1ed
jmp 0x47d289
mov eax, dword [edi + 8]
cmp eax, 0x12
je 0x47d289
cmp eax, 0x10
je 0x47d289
cmp eax, 0x19
je 0x47d289
mov byte [ebp - 1], 0
test byte [edi + 0xe], 0xff
je 0x47d1a7
mov esi, 0x60
push 0
push esi
call sub.user32.dll_MapVirtualKeyA
mov dx, word [edi + 0xe]
and dx, 0xff
movzx edx, dx
cmp eax, edx
jne 0x47d1a1
mov byte [ebp - 1], 1
jmp 0x47d1a7
inc esi
cmp esi, 0x6a
jne 0x47d183
cmp byte [ebp - 1], 0
jne 0x47d289
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, byte [0x47d32c]
mov byte [eax + 0x34], dl
call fcn.004042e4
jmp 0x47d325
cmp dword [edi + 8], 0x12
jne 0x47d289
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, byte [0x47d32c]
mov byte [eax + 0x34], dl
call fcn.004042e4
jmp 0x47d325
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.00450aa0
cmp eax, dword [edi]
je 0x47d289
call fcn.004042e4
jmp 0x47d325
call sub.user32.dll_GetCapture
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 8]
jne 0x47d23b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.00450aa0
lea edx, [edi + 0x14]
call fcn.0047d060
test al, al
je 0x47d26a
call sub.user32.dll_ReleaseCapture
jmp 0x47d26a
call sub.user32.dll_GetCapture
test eax, eax
jne 0x47d26a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.00450aa0
lea edx, [edi + 0x14]
call fcn.0047d060
test al, al
jne 0x47d26a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.user32.dll_SetCapture
call sub.user32.dll_GetCapture
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 8]
jne 0x47d289
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
push 3
push 0
push 0
push 0
push edi
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x47d2c2
mov eax, dword [edi + 4]
cmp eax, 0x200
jb 0x47d2b6
cmp eax, 0x20a
ja 0x47d2b6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp eax, dword [edi]
je 0x47d2c2
push edi
call sub.user32.dll_TranslateMessage
push edi
call sub.user32.dll_DispatchMessageA
push ebp
call fcn.0047d094
pop ecx
test al, al
je 0x47d2e3
push 0
push 0
push 0
push 0
push edi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x47d10d
push ebp
call fcn.0047d094
pop ecx
test al, al
jne 0x47d0fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d325
mov edx, 0x103
mov eax, 0x102
call fcn.0046dc10
mov edx, 0x107
mov eax, 0x106
call fcn.0046dc10
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e3d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0047e03c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404d0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47e436
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x660064]
mov dl, 1
mov eax, dword [0x47df34]
call fcn.0040cf04
call fcn.00404238
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47e440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404d0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47e498
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x660448]
mov dl, 1
mov eax, dword [0x47df34]
call fcn.0040cf04
call fcn.00404238
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047e06c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8