joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451230
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 0x4513db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4513bc
mov dl, 1
mov eax, dword [0x411f34]
call fcn.0040361c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040439c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4513ab
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.0043f23c
test al, al
je 0x45139e
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, 0x4513ec
lea eax, [ebp - 0x254]
call fcn.00408fec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45139e
xor eax, eax
push ebp
push 0x451397
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 0x451424
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451380
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040460c
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 0x451380
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040460c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45139e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4512a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415a10
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 0x4513e2
lea eax, [ebp - 0x260]
call fcn.0040439c
ret

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

Disassembly:
push ecx
mov eax, dword [0x46bbb0]
cmp byte [eax + 0xa5], 0
jne 0x451d81
cmp dword [0x46bbc8], 0
jne 0x451d42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451ccc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46bbc8], eax
cmp dword [0x46bbc4], 0
jne 0x451d5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46bbc4], eax
cmp dword [0x46bbcc], 0
jne 0x451d81
push esp
push 0
push 0
push 0x451c70
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46bbcc], eax
pop edx
ret
Function at 0x451e78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451e8f
add esp, 0xfffffff0
call fcn.00403970
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419820
mov eax, dword [0x46a8dc]
cmp word [eax + 2], 0
jne 0x451eb7
mov eax, dword [0x46a8dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453550
mov eax, dword [0x46a990]
cmp word [eax + 2], 0
jne 0x451ed1
mov eax, dword [0x46a990]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453748
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b18]
call fcn.0040361c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b18]
call fcn.0040361c
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 [0x41bd64]
call fcn.00423400
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452058
mov eax, dword [0x46a804]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004237d0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453ce8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46a804]
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.0040c6b4
test eax, eax
je 0x451fc6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004089e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6dc
test eax, eax
je 0x451fda
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.0040460c
mov eax, dword [0x46a6f0]
cmp byte [eax], 0
jne 0x45200e
mov eax, ebx
call fcn.00452180
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.00453ec4
mov eax, ebx
call fcn.00454888
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45204e
call fcn.004039c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452400
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46bbb0]
cmp dword [eax + 0x30], 0
je 0x4524aa
cmp dword [ebx + 0x94], 0
jne 0x4524a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452390
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4524a4
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 0x45246a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4524a4
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.00413e80
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452479
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45300c
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 0x453041
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.0040448c
jmp 0x45304e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4540a0
Capabilities:
Hide graphical window

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

Function at 0x4577a8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4577d6
mov eax, ebx
call fcn.0045825c
cmp dword [ebx + 0x40], 0
je 0x4577cf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x457847
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x457839
cmp dword [ebx + 8], 0
je 0x4577f8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45780a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x457839
cmp dword [ebx + 8], 0
je 0x4577eb
cmp eax, 3
je 0x45781d
dec eax
jne 0x4577eb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4577eb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4577eb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x457865
cmp dword [ebx + 0x14], 0xcc
je 0x457865
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00457870
pop ebx
ret
Function at 0x404010
Capabilities:
Hash data using murmur3

Disassembly:
neg edx
call fcn.00424afb
rol esi, 0x15
or dword [0x58ccc7], 0xc4f3a1f
rol eax, 0xe
add ecx, esi
call fcn.0040296d
dec edx
xor dword [0x58cbf1], 0x103ef9b0
sub dword [0x58ccac], ecx
push 0x65006b
neg esi
add dword [0x58cd68], 0x10b74c40
call fcn.004037d3
rol eax, 0x1b
add esi, 0x21ba04b5
xor esi, dword [0x57af15]
mov dword [0x58cd14], 0x6d57d6d
or dword [0x58cd32], ecx
xor dword [0x58cc12], 0x2314a34
add ecx, esp
or dword [0x58cc60], esi
rol eax, 0x1f
mov dword [0x58cc83], ecx
xor dword [0x58ccdc], 0x1d2baf20
call fcn.0040180c
or dword [0x58ccd6], 0xb0b1550
push esp
sub esi, eax
inc eax
call fcn.00486ece
not esi
xor eax, 0x1e7ddb06
mov dword [0x58ccb4], 0x282362a0
xor edx, esi
sub dword [0x58cbb0], edx
mov dword [0x58cc56], 0xc6996e4
xchg esi, edx
call fcn.00402b66
sub ebx, dword [0x5788e0]
sub dword [0x58cc6a], ebx
call fcn.0041d6e0
xor eax, esp
neg eax
mov dword [0x58cd5c], esi
inc eax
sub ecx, dword [0x5741b0]
sub edx, esi
rol eax, 0x18
mov dword [0x58cc14], 0x3761b68
xor dword [0x58cc89], ebx
call fcn.004057d6
call fcn.00405a80
or dword [0x58cc31], edi
call fcn.00405438
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, eax
mov dword [0x58ccf6], edx
xchg ecx, eax
call fcn.004088a6
and dword [0x58cc31], ecx
rol ecx, 0x1b
mov dword [0x58cc8c], 0x9918ffc
xor ecx, dword [0x58cde6]
dec eax
xor ecx, 0x8e62416
sub edi, dword [0x58cf7e]
mov dword [0x58cc6c], 0x485c6dc
call fcn.00406f0e
sub esi, dword [0x58cf56]
xor esi, edi
add esi, ebx
call fcn.004088a6
call fcn.00405438
sub esi, ebx
xor esi, edi
xor ecx, 0x8e62416
inc eax
mov dword [0x58ccf6], 0x38e2630
ror ecx, 0x1b
mov dword [0x58cba8], ecx
call fcn.0040715a
xchg ecx, eax
invalid
invalid
add cl, ch
pop eax

Function at 0x404405
Capabilities:
Hash data using murmur3

Disassembly:
ret
Function at 0x405960
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [esi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x405a72
push ebx
mov bx, word [ebp - 0x24]
mov eax, 0xff
cmp bx, ax
ja 0x405a71
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [esi + 0x1c0]
call edi
cmp eax, 0xffffffff
je 0x405a70
push 0
push eax
push 0x150
push dword [esi + 0x1c0]
call edi
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x128], eax
mov ecx, dword [eax + 0x56e454]
mov dword [ebp - 0x12c], ecx
cmp ecx, 0x14
jge 0x405a06
movzx eax, bl
push eax
call fcn.004551c8
mov bl, al
add esp, 4
mov eax, dword [ebp - 0x128]
mov ecx, dword [esi + 0xf58]
mov edx, dword [ebp - 0x12c]
mov byte [esi + ecx*8 + 0x758], bl
mov ecx, dword [esi + 0xf58]
mov dword [esi + ecx*8 + 0x75c], edx
inc dword [esi + 0xf58]
push dword [eax + 0x56e458]
movzx eax, bl
ret
push eax
lea eax, [ebp - 0x124]
push str.___c_t_s
push eax
call fcn.00406f60
add esp, 0x10
lea eax, [ebp - 0x124]
push 0
push eax
push 0
push 0x180
push dword [esi + 0x1b8]
call edi
push eax
push 0x186
push dword [esi + 0x1b8]
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp

Function at 0x406430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [edi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x406485
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x1cc]
call esi
push 0
push dword [edi + 0x3fc]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
push ebx
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004057e0
xor ecx, ecx
mov ebx, eax
cmp ebx, 0xffffffff
sete cl
push ecx
push dword [edi + 0x1cc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0xffffffff
je 0x4064cd
push 0
push ebx
push 0x186
push dword [edi + 0x1b8]
call eax
mov ecx, edi
call fcn.00406e00
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x188
push dword [edi + 0x1b8]
call eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push dword [edi + 0x3fc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
Function at 0x4080b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x828]
push edi
mov edi, ecx
push 0x400
push eax
push dword [edi + 0x1b8]
call esi
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x3b4]
call esi
cmp word [ebp - 0x28], 0
mov eax, dword [edi + 0x1b4]
je 0x40816c
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00407360
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40811b
mov ecx, esi
jmp 0x40812b
or ecx, 0xffffffff
cmp dword [ebp - 0x82c], ecx
cmovne ecx, dword [ebp - 0x82c]
push 0
push ecx
push 0x186
push dword [edi + 0x1b4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, 0xffffffff
je 0x40817c
push 1
mov ecx, edi
call fcn.00408470
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
cmp word [ebp - 0x828], ax
setne al
push eax
push dword [edi + 0x1c8]
call esi
push 1
jmp 0x4081b0
push 0
push 0xffffffffffffffff
push 0x186
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, edi
call fcn.00408470
cmp word [ebp - 0x28], 0
je 0x40819d
cmp word [ebp - 0x828], 0
je 0x40819d
mov eax, 1
jmp 0x40819f
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
push dword [edi + 0x1c8]
call esi
push 0
push dword [edi + 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424790
mov esp, ebp
pop ebp
ret

Function at 0x408370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x824]
push 0x400
push eax
push dword [edi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x3b4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x824], 0
je 0x4083c8
cmp word [ebp - 0x24], 0
je 0x4083c8
mov eax, 1
jmp 0x4083ca
xor eax, eax
push eax
push dword [edi + 0x1c8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00424790
ret
add dword [eax], eax
mov esp, ebp
pop ebp
ret
Function at 0x412bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b10bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x576f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 0x50]
mov dword [edi + 4], 0
mov dword [edi], 0
lea esi, [eax + 0x58]
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [0x586858], 0
xorps xmm0, xmm0
movups xmmword [0x5867f8], xmm0
mov dword [0x5868c0], 0
movups xmmword [0x586808], xmm0
mov dword [0x5867f8], 1
movups xmmword [0x586818], xmm0
mov dword [0x586808], 1
movups xmmword [0x586828], xmm0
mov dword [0x586818], 1
movups xmmword [0x586848], xmm0
mov dword [0x586830], 1
movups xmmword [0x586860], xmm0
mov dword [0x586848], 1
movups xmmword [0x586870], xmm0
mov dword [0x586858], 1
movups xmmword [0x586880], xmm0
mov dword [0x586860], 1
movups xmmword [0x586890], xmm0
mov dword [0x586870], 1
movups xmmword [0x5868b0], xmm0
mov dword [0x586880], 1
movups xmmword [0x586838], xmm0
mov dword [0x586898], 1
movups xmmword [0x5868a0], xmm0
mov dword [0x5868b0], 1
mov dword [0x5868c0], 1
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x4c], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
add eax, 0x60
push eax
mov byte [ebp - 4], 1
call fcn.00413640
add esp, 4
mov ecx, edi
push 8
push 0x57364c
call fcn.00415320
push 8
push 0x57364c
mov ecx, esi
call fcn.00415320
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a320
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x5871c0
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [0x5871d1]
shr al, 7
mov byte [0x5872d6], al
movzx eax, byte [0x5871d2]
shr al, 7
mov byte [0x5872d7], al
movzx eax, byte [0x5871d0]
shr al, 7
mov byte [0x587358], al
movzx eax, byte [0x587260]
shr al, 7
mov byte [0x587359], al
movzx eax, byte [0x587261]
shr al, 7
test byte [0x58721b], 0x80
mov byte [0x58735a], al
jne 0x41a397
test byte [0x58721c], 0x80
mov byte [0x58735b], 0
je 0x41a39e
mov byte [0x58735b], 1
ret

Function at 0x41a600
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x586998
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x87c
call fcn.004247c8
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x41a639
mov dword [eax + 0x868], 0
mov dword [eax + 0x86c], 0
jmp 0x41a63b
xor eax, eax
push esi
push 0x87c
push 0
push eax
mov dword [0x5871bc], eax
call fcn.00447530
mov ecx, dword [0x5871bc]
add esp, 0xc
lea ecx, [ecx + 0x3c]
call fcn.004117d0
mov ecx, dword [0x5871bc]
lea eax, [ecx + 0x444]
add ecx, 0x3c
push eax
call fcn.004117a0
mov eax, dword [0x5871bc]
mov dword [eax + 0x440], 1
mov ecx, dword [0x5871bc]
lea ecx, [ecx + 0x868]
call fcn.00411f20
mov eax, dword [0x5871bc]
add eax, 8
push eax
call fcn.00419fe0
push 0
call fcn.0041bc20
push 0xc
call fcn.0041bca0
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esp, 0xc
push 0
push 8
call esi
push 0
push 0x11
mov dword [0x586968], eax
call esi
push 0
push 0x10
mov dword [0x58696c], eax
call esi
push 0
push 0xa0
mov dword [0x586970], eax
call esi
push 0
push 0xa1
mov dword [0x586974], eax
call esi
push 0
push 0x56
mov dword [0x586978], eax
call esi
push 0
push 0x2d
mov dword [0x586980], eax
call esi
mov dword [0x58697c], eax
call fcn.004ad280
mov eax, dword [0x5871bc]
mov ecx, 0x5893e8
mov dword [0x587364], eax
mov dword [0x587360], 0x41d510
call fcn.004206d0
cmp byte [0x586988], 0
pop esi
je 0x41a74c
push 0x40
push 2
push str.unikey_log.txt
mov ecx, 0x575548
call fcn.0041ea00
mov esp, ebp
pop ebp
ret
Function at 0x417ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00412166
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x417d0f
test byte [esp + 8], 2
je 0x417d0f
call fcn.00412154
mov dword [eax], 0xd
call fcn.0041215d
mov dword [eax], 5
jmp 0x417ce8
xor eax, eax
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret