joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016af6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10104bd4], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
jne 0x10016b35
xor esi, esi
push 8
mov edx, esi
pop ecx
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub ecx, 1
jne 0x10016b10
mov dword [esi*4 + 0x10104bd0], edx
inc esi
cmp esi, 0x100
jb 0x10016b0b
mov esi, dword [ebp + 8]
not esi
mov edx, esi
test ebx, ebx
jle 0x10016b7a
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10104bd0]
inc edi
sub ebx, 1
jne 0x10016b40
jmp 0x10016b81
cmp al, 0x23
jne 0x10016b68
cmp byte [edi], al
jne 0x10016b68
cmp byte [edi + 1], al
cmove edx, esi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10104bd0]
mov al, byte [edi]
inc edi
test al, al
jne 0x10016b5a
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x1001737d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001738c
and dword [edi], 0
mov edx, 0x1004d05c
call fcn.100172eb
mov esi, eax
test esi, esi
je 0x1001742a
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1001741f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x1001741f
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1001741f
mov ecx, ebx
call fcn.10018aa8
mov dword [ebp + 8], eax
test eax, eax
je 0x1001741f
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x1001740d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp + 8]
dec dword [0x10104b7c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x10017426
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
test edi, edi
je 0x1001741a
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x10017429
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1001bb49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100c8c9c]
push esi
mov esi, ecx
and dword [eax + 0x2c8c], 0
test esi, esi
je 0x1001bb99
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push edi
call fcn.1001bb9c
mov edx, 0x1004d060
mov ecx, esi
mov edi, eax
call fcn.100172eb
mov esi, eax
test esi, esi
je 0x1001bb98
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x100229f5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [0x100c8c9c]
mov eax, dword [edi + 0x1a20]
mov byte [eax + 0x78], 1
mov eax, dword [edi + 0x1a20]
cmp byte [eax + 0x7b], 0
jne 0x10022a3b
push edx
lea esi, [edi + 0x2ec4]
mov edx, 0xc01
push ecx
mov ecx, esi
call fcn.10016ac8
pop ecx
pop ecx
lea edx, [edi + 0x2ec4]
mov ecx, esi
lea edx, [edx + eax]
pop edi
pop esi
jmp fcn.10022aa0
pop edi
pop esi
ret
Function at 0x1003390d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x10052040]
xor eax, esp
mov dword [esp + 0x2c], eax
movaps xmm0, xmmword [str._dtl_bZ]
xor edx, edx
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0x424a5556
movaps xmm0, xmmword [0x1004e160]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0x594b6d08
mov dword [esp + 0x28], 0x1002d47
mov al, dl
add al, 4
xor byte [esp + edx], al
inc edx
cmp edx, 0x2a
jb 0x10033952
push ecx
lea eax, [esp + 4]
mov byte [esp + 0x2f], 0
push eax
mov edx, 0x10104fdc
call fcn.10029af1
pop ecx
pop ecx
test al, al
je 0x100339bf
mov eax, dword [0x10104fdc]
sub eax, 0
je 0x100339b4
sub eax, 1
je 0x100339ad
sub eax, 1
je 0x100339a6
sub eax, 1
je 0x1003399f
sub eax, 1
jne 0x100339bb
call fcn.1003c956
jmp 0x100339bb
call fcn.1003cfc0
jmp 0x100339bb
call fcn.1003bdce
jmp 0x100339bb
call fcn.1003c44a
jmp 0x100339bb
xor ecx, ecx
call fcn.1003b458
mov al, 1
jmp 0x100339c1
xor al, al
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10042101
mov esp, ebp
pop ebp
ret
Function at 0x10036383
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x100363a0
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x33
jb 0x1003638e
mov byte [esi + 0x34], 0
pop esi
ret

Function at 0x100363a2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x100363bf
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x23
jb 0x100363ad
mov byte [esi + 0x24], 0
pop esi
ret

Function at 0x100363c1
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a5], 0
je 0x100363e7
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x1a4
jb 0x100363cf
mov byte [esi + 0x1a5], 0
pop esi
ret

Function at 0x100363e9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x10036406
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x2b
jb 0x100363f4
mov byte [esi + 0x2c], 0
pop esi
ret

Function at 0x10036408
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x10036425
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x21
jb 0x10036413
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x10036427
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x5f], 0
je 0x10036444
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x5e
jb 0x10036432
mov byte [esi + 0x5f], 0
pop esi
ret

Function at 0x10036446
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x10036463
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x3b
jb 0x10036451
mov byte [esi + 0x3c], 0
pop esi
ret

Function at 0x10036465
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x68], 0
je 0x10036482
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x67
jb 0x10036470
mov byte [esi + 0x68], 0
pop esi
ret

Function at 0x10036484
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x41], 0
je 0x100364a1
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x40
jb 0x1003648f
mov byte [esi + 0x41], 0
pop esi
ret

Function at 0x100364a3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x8b], 0
je 0x100364c9
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x8a
jb 0x100364b1
mov byte [esi + 0x8b], 0
pop esi
ret

Function at 0x100364cb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x100364e8
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 4]
xor byte [ecx], al
inc edx
cmp edx, 0x2a
jb 0x100364d6
mov byte [esi + 0x2b], 0
pop esi
ret
Function at 0x100431f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100433a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100432bd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10052090]
jb 0x1004323a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10052094]
ja 0x1004323a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004320a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10043260
jmp 0x100432bd
cmp dword [ebp - 0x14], 0x10000
jne 0x100432a3
cmp dword [ebp - 0x18], 0x10000
jb 0x100432a3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10043296
mov eax, dword [ebp - 8]
jmp 0x100432bf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100432b8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100433a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004320a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100432d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100433d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10043395
mov edx, dword [ebp - 4]
cmp edx, dword [0x10052090]
jb 0x10043315
mov eax, dword [ebp - 4]
cmp eax, dword [0x10052094]
ja 0x10043315
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100432e5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004333b
jmp 0x10043395
cmp dword [ebp - 0x14], 0x10000
jne 0x1004337e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004337e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10043371
mov eax, dword [ebp - 8]
jmp 0x10043397
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10043390
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100433d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100432e5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4522eb]
shl eax, 2
mov dword [0x4522ef], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00447600
pop edx
call fcn.00447564
call fcn.00447640
push 0
call fcn.00448864
pop ecx
push 0x452294
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4522f3], eax
push 0
jmp fcn.0044c6a8
Function at 0x403334
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0xc
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebx + 0x58]
jne 0x403423
xor edx, edx
mov dword [ebx + 0x5c], edx
cmp byte [ebp + 0x10], 0
je 0x4033c7
mov ecx, esi
add esi, 0xffffffff
test ecx, ecx
jne 0x40336a
xor eax, eax
jmp 0x403434
lea edi, [ebx + 8]
lea eax, [ebp - 4]
push edi
push eax
lea edx, [ebx + 0x60]
push 0x8c
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4033aa
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
je 0x4033aa
push 0x452b08
push 0xa
push ebx
call fcn.00402e94
add esp, 0xc
xor eax, eax
jmp 0x403434
push 1
lea edx, [ebp - 4]
push edx
push edi
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x58], eax
test eax, eax
je 0x40335a
jmp 0x403423
lea esi, [ebx + 8]
lea eax, [ebp - 4]
push esi
push eax
lea edx, [ebx + 0x60]
push 0x8c
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x403404
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
je 0x403404
push 0x452b24
push 0xa
push ebx
call fcn.00402e94
add esp, 0xc
xor eax, eax
jmp 0x403434
push 1
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x58], eax
test eax, eax
jne 0x403423
xor eax, eax
jmp 0x403434
mov edx, dword [ebx + 0x5c]
inc dword [ebx + 0x5c]
mov cl, byte [ebx + edx + 0x60]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x403a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
lea eax, [ebx + 8]
push eax
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x403ac5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
je 0x403ac5
push 0x452eb5
push 8
push ebx
call fcn.00402e94
add esp, 0xc
xor eax, eax
jmp 0x403af8
push 1
lea edx, [ebp - 4]
push edx
lea ecx, [ebx + 8]
push ecx
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
je 0x403ae2
mov edx, dword [ebp - 4]
cmp edx, esi
je 0x403af6
push str.Errore_in_scrittura__WriteFile_
push 8
push ebx
call fcn.00402e94
add esp, 0xc
xor eax, eax
jmp 0x403af8
mov al, 1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40b8e4
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.004457e4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x40b93c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x456fd4]
mov dl, 1
mov eax, dword [0x40b49c]
call fcn.00440878
call fcn.00445068
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b5a4
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

Function at 0x40c924
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.004453a0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40c973
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004455d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41293c
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 0x412942
ret

Function at 0x414d58
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 0x414da9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x414d90
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x414d80
jmp 0x414da9
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 0x414d91
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41be20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x457308
cmp dword [edi], 0
jne 0x41be9c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x457304]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x453764
mov ecx, 2
call fcn.004444dc
mov edx, 0x41bdf8
lea eax, [esi + 5]
call fcn.0041be18
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041be18
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 0x41be71
mov dword [0x457304], 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 0x41bfb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41c008]
test si, 4
je 0x41bfcc
or bl, 1
test si, 8
je 0x41bfd6
or bl, 4
test si, 1
je 0x41bfe0
or bl, 8
test si, 2
je 0x41bfea
or bl, 0x10
test si, 0x10
je 0x41bff4
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41c003
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41c00c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41c044]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41c025
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41c034
or bl, 4
test esi, 0x20000000
je 0x41c03f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x422594
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4225a6
add esp, 0xfffffff0
call fcn.00444c30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043bbd4
mov eax, ebx
call fcn.004228e0
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x43590c]
call fcn.00444918
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x43590c]
call fcn.00444918
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x43590c]
call fcn.00444918
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x43590c]
call fcn.00444918
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x43590c]
call fcn.00444918
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x41f084
push eax
push 0
push 0
mov eax, dword [0x457064]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4120c0]
call fcn.0041339c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4120c0]
call fcn.0041339c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4120c0]
call fcn.0041339c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00422cc0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x422bdc
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x422bdc
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x422bdc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4226b5
call fcn.00444c88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4229c0
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 0x422b6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x422b4c
mov dl, 1
mov eax, dword [0x435c48]
call fcn.00444918
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004453a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x422b3b
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.00434c14
test al, al
je 0x422b2e
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, 0x422b7c
lea eax, [ebp - 0x254]
call fcn.0043fe5c
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x422b2e
xor eax, eax
push ebp
push 0x422b27
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x422bb4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x422b10
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004455d0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x422b10
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004455d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422b2e
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x422a31
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00438c68
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422b72
lea eax, [ebp - 0x260]
call fcn.004453a0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4572f8]
cmp byte [eax + 0x95], 0
jne 0x423429
cmp dword [0x457314], 0
jne 0x4233ea
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x423374
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x457314], eax
cmp dword [0x457310], 0
jne 0x423405
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x457310], eax
cmp dword [0x457318], 0
jne 0x423429
push esp
push 0
push 0
push 0x423318
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x457318], eax
pop edx
ret