joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007de49
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1007dee6
push ebx
push esi
call fcn.1007de12
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1007c703
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007de93
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007dee5
push edi
push eax
call fcn.10078db6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007deb3
call fcn.10078d7c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007dee4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007c703
add esp, 0x20
test eax, eax
jne 0x1007ded2
push edi
call fcn.10078d7c
jmp 0x1007deda
push ebx
call fcn.10078d7c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1007dee9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007defa
pop esi
ret
push ebx
push edi
push esi
call fcn.1007de12
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10078db6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007df22
push ebx
push esi
push edi
call fcn.10060530
add esp, 0xc
push 0
call fcn.10078d7c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007e2f2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007df37

Function at 0x100807ba
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100773cc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10080829
cmp esi, dword [ebp - 4]
je 0x10080824
cmp dword [ebp + 0xc], 0
je 0x10080824
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10080801
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1008030c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1008082b
xor eax, eax
inc eax
jmp 0x1008082b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10080890
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ab040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100773cc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100773cc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10080907
cmp word [ecx], dx
je 0x10080907
mov eax, dword [0x100946c4]
push edi
dec eax
push eax
push 0x100945b0
call fcn.1008082f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1008097a
cmp word [eax], dx
je 0x1008097a
mov eax, dword [edi]
test eax, eax
je 0x1008092b
cmp word [eax], dx
je 0x1008092b
lea eax, [ebp - 0x10]
push eax
call fcn.10080212
jmp 0x10080934
lea eax, [ebp - 0x10]
push eax
call fcn.100802ad
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100809a4
mov eax, dword [0x100945ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100942a0
call fcn.1008082f
add esp, 0xc
test al, al
je 0x100809a4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1008096f
cmp word [eax], di
je 0x1008096f
lea eax, [ebp - 0x10]
push eax
call fcn.10080212
pop ecx
jmp 0x100809a6
lea eax, [ebp - 0x10]
push eax
call fcn.100802ad
jmp 0x1008096c
mov eax, dword [edi]
test eax, eax
je 0x10080991
cmp word [eax], dx
je 0x10080991
lea eax, [ebp - 0x10]
push eax
call fcn.100801c7
pop ecx
jmp 0x100809a4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10080a6f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100806b4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10080a6f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10080a6f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10080a6f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100809fc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007aeea
test ebx, ebx
je 0x10080a6a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007aeea
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10080a6f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10080a6f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100845ac
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10080a71
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005a59c
leave
ret
Function at 0x10086a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10086aad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10086aad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb74ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5af000]
mov dword [edi + 0x5b5e6c], 0x122f9a68
push edi
or ebp, 0xffffffff
jmp 0xb74efa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb74f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74ef0
mov eax, 1
add ebx, ebx
jne 0xb74f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb74f24
jne 0xb74f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74f43
dec eax
add ebx, ebx
jne 0xb74f30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb74f08
add ebx, ebx
jne 0xb74f3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb74f95
xor ecx, ecx
sub eax, 3
jb 0xb74f5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb74fca
sar eax, 1
mov ebp, eax
jmp 0xb74f66
add ebx, ebx
jne 0xb74f66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74f34
inc ecx
add ebx, ebx
jne 0xb74f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74f34
add ebx, ebx
jne 0xb74f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb74f76
jne 0xb74f92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb74f76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb74fb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb74fa6
jmp 0xb74ef6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb74fb4
add edi, ecx
jmp 0xb74ef6
pop esi
mov edi, esi
mov ecx, 0x134f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb74fd2
cmp byte [edi], 0x4b
jne 0xb74fd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb74fd7
lea edi, [esi + 0x755000]
mov eax, dword [edi]
or eax, eax
je 0xb7504f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78e864]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x78ea30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb75004
mov ecx, edi
jns 0xb75033
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x78ea38]
or eax, eax
je 0xb75049
mov dword [ebx], eax
add ebx, 4
jmp 0xb75021
call dword [esi + 0x78ea34]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb75080
cmp al, 0xef
ja 0xb75073
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb75055
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb75062
mov ebp, dword [esi + 0x78ea3c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb750b4
sub esp, 0xffffff80
jmp 0x5faf53
Function at 0x402b04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b7c
xor eax, eax
push ebp
push 0x402b75
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 0x402bb8
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 0x402b7c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404448
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4045e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4044f8
xor eax, eax
push ebp
push 0x4044f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404604
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4045d9
cmp byte [ebp - 0xd], 0
jne 0x40453a
cmp byte [ebp - 0x12], 0
je 0x4045d9
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404553
dec ebx
cmp byte [ebx], 0x2e
je 0x404562
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404552
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4045d9
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40458f
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4045d9
cmp byte [ebp - 0xd], 0
je 0x4045d9
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4045d9
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407508
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 0x407541
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403844
jmp 0x40754a
mov eax, ebx
mov edx, esi
call fcn.004037f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407554
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 0x407575
mov al, byte [esp]
jmp 0x407577
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411b00
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 0x411b06
ret

Function at 0x413fc4
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 0x414015
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413ffc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x413fec
jmp 0x414015
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
jne 0x413ffd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e790
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x41e7ac
cmp dword [esi + 4], 0
je 0x41e7d3
mov eax, ebx
call fcn.0041d864
test eax, eax
jne 0x41e7c5
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41e8e3
mov edx, esi
mov eax, ebx
call fcn.0041e3b4
jmp 0x41e8e3
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41e8dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ff8c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041c560
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041e790
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ff8c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e8e3
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422ee4
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.00403760
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x422f45
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x422f45
cmp byte [ebp - 0x102], 0
je 0x422f45
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040398c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4243cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x42446a
mov ax, word [ebx + 4]
and eax, 0xff
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42440d
add word [ebp - 6], 0x2000
jae 0x42440d
call fcn.00402bd4
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424426
add word [ebp - 6], 0x4000
jae 0x424426
call fcn.00402bd4
test byte [ebx + 0xb], 0x20
je 0x424439
add word [ebp - 6], 0x8000
jae 0x424439
call fcn.00402bd4
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00424258
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42445e
push ebp
mov eax, dword [ebp - 4]
call fcn.0042433c
pop ecx
mov ebx, eax
cmp bl, 2
je 0x424439
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426414
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452720
cmp dword [edi], 0
jne 0x426490
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45271c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45171c
mov ecx, 2
call fcn.004027b0
mov edx, 0x4263ec
lea eax, [esi + 5]
call fcn.0042640c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042640c
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 0x426465
mov dword [0x45271c], 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 0x4265b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x426604]
test si, 4
je 0x4265c8
or bl, 1
test si, 8
je 0x4265d2
or bl, 4
test si, 1
je 0x4265dc
or bl, 8
test si, 2
je 0x4265e6
or bl, 0x10
test si, 0x10
je 0x4265f0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4265ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x426608
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x426640]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x426621
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x426630
or bl, 4
test esi, 0x20000000
je 0x42663b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x42aa98
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 0x42ac3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a820]
call fcn.00402c64
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403760
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x42ac13
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.00422678
test al, al
je 0x42ac06
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x42ac4c
lea eax, [ebp - 0x254]
call fcn.00407340
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42ac06
xor eax, eax
push ebp
push 0x42abff
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 0x42ac84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42abe8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040398c
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 0x42abe8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040398c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42ab09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040d520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac44
lea eax, [ebp - 0x260]
call fcn.00403760
ret

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

Disassembly:
push ecx
mov eax, dword [0x4526f4]
cmp byte [eax + 0x85], 0
jne 0x42af71
cmp dword [0x45272c], 0
jne 0x42af32
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x42aebc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45272c], eax
cmp dword [0x452728], 0
jne 0x42af4d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x452728], eax
cmp dword [0x452730], 0
jne 0x42af71
push esp
push 0
push 0
push 0x42ae60
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x452730], eax
pop edx
ret