joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d40
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409c78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f1b30
push 0xa
push 0x409d0c
mov eax, dword [0x4f1b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409c9c
call fcn.00413d8c
push ebx
mov eax, dword [0x4f1b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409cb3
call fcn.00413d8c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409cc5
call fcn.00413d8c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f1b34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f1b38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f1b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f1b40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f1b44], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f1b48], edx
pop esi
pop ebx
ret

Function at 0x40b83c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b8e5
test eax, edx
je 0x40b8e8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b865
push edx
mov edx, eax
mov eax, esp
call fcn.00405bb4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b87b
push eax
lea eax, [esp + 8]
call fcn.00405bb4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b88a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b8b1
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b8cb
add ecx, 4
js 0x40b8a2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b8c8
push eax
mov eax, ecx
mov edx, 2
call fcn.00405068
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b8af
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b8b1
xor eax, eax
ret
test eax, eax
je 0x40b8f8
test edx, edx
jne 0x40b84c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40cae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405a24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cafe
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cb1f
cmp ebx, 3
je 0x40cb1f
cmp ebx, 0x7b
je 0x40cb1f
mov eax, esi
call fcn.0040caa0
test al, al
jne 0x40cb23
xor eax, eax
jmp 0x40cb25
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cb28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405a24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cb41
test al, 0x10
jne 0x40cb45
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x411424
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41145d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405ad4
jmp 0x411466
mov eax, ebx
mov edx, esi
call fcn.00405998
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411470
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411492
movzx eax, word [esp]
jmp 0x411494
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411bf8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00411a30
mov eax, dword [0x4ee6b8]
cmp byte [eax], 0
je 0x411c8a
mov eax, dword [0x4ee25c]
call fcn.00403584
call fcn.004031f4
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040d2d8
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x411cd8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411cc3
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ee1bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f1b20]
call fcn.0040706c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x412918
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4129ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004059ec
lea eax, [ebp - 4]
call fcn.004062b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a24
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4129d8
mov eax, ebx
call fcn.0040308c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4129d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a24
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4129bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412a00
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4129bb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4129d8
mov eax, dword [ebp - 0x10]
call fcn.004030a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4129f5
lea eax, [ebp - 4]
call fcn.00405988
ret

Function at 0x413c34
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405368
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x413bde
mov eax, edi
add eax, eax
call fcn.0040308c
mov esi, eax
jmp 0x413be0
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x413c19
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x413c03
mov eax, esp
cmp esi, eax
je 0x413c26
mov eax, esi
call fcn.004030a8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x413c60
cmp bl, 0
je 0x413c5c
cmp bl, 0x41
jl 0x413c57
cmp bl, 0x5a
jg 0x413c57
or bl, 0x20
xor al, bl
inc esi
jmp 0x413c3b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413ba0

Function at 0x428e7c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00428b80
dec esi
jne 0x428e9e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42a048
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f3e64
cmp dword [edi], 0
jne 0x42a0c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f3e60]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e8014
mov ecx, 2
call fcn.00403244
mov edx, 0x42a020
lea eax, [esi + 5]
call fcn.0042a040
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042a040
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 0x42a099
mov dword [0x4f3e60], 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 0x42e2a8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42e412
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004059ec
mov eax, dword [ebp - 4]
call fcn.0042dcfc
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42e2fa
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004060bc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0042e6f4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42e3cf
xor eax, eax
push ebp
push 0x42e3c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042decc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042e420
test al, al
je 0x42e3a6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405ad4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42e3a6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405a24
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x42e3a0
mov eax, dword [ebp - 8]
call fcn.00405a24
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405b44
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042e2a8
dec ebx
cmp ebx, 0xffffffff
jne 0x42e359
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e3cf
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042decc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405a24
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042deb8
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e419
lea eax, [ebp - 0x3c]
call fcn.00405988
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405990
ret
Function at 0x42e3cf
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42e412
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004059ec
mov eax, dword [ebp - 4]
call fcn.0042dcfc
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42e2fa
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004060bc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0042e6f4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42e3cf
xor eax, eax
push ebp
push 0x42e3c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042decc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042e420
test al, al
je 0x42e3a6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405ad4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42e3a6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405a24
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x42e3a0
mov eax, dword [ebp - 8]
call fcn.00405a24
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405b44
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042e2a8
dec ebx
cmp ebx, 0xffffffff
jne 0x42e359
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e3cf
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042decc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405a24
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042deb8
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e419
lea eax, [ebp - 0x3c]
call fcn.00405988
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405990
ret

Function at 0x42e618
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
movzx eax, byte [ebp + 8]
call fcn.0042dd70
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.00405a24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x42e677
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ee4e8]
mov dl, 1
mov eax, dword [0x42dbe8]
call fcn.00411e04
call fcn.0040484c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42e680
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.00405a24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42e6d8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ee90c]
mov dl, 1
mov eax, dword [0x42dbe8]
call fcn.00411e04
call fcn.0040484c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042dda0
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 0x42fb30
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 0x42fb36
ret
Function at 0x43ca94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x43cac3
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x43cb42
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0043b364
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x43cb10
mov cx, word [esp]
sub cx, si
jmp 0x43cb12
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x43caf9
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x43cb38
mov cx, word [esp]
sub cx, si
jmp 0x43cb3a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x43cb21
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x43cb9f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0043c768
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x43cb8a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x43cb9f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x43ca9e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44e9d0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405998
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x44ea17
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405b98
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x453e30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453f69
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x42dc5c]
call fcn.0042ddc8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x453f3f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042de68
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405b98
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x453f84
call fcn.00405d6c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042e0d4
test al, al
je 0x453f29
lea ecx, [ebp - 4]
mov edx, 0x453ff8
mov eax, dword [ebp - 0xc]
call fcn.0042e58c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00414408
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x453f22
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x454010
mov eax, dword [ebp - 8]
push eax
call fcn.004084b0
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4ec358]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453f29
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453f46
mov eax, dword [ebp - 0xc]
call fcn.00403d94
ret

Function at 0x454074
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4540bb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45409e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4540af
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4540bb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x459c24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4f4130], 0
je 0x459d65
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4ee5ec]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x459d65
mov eax, dword [0x4f4134]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4f4130]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x459d34
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4f4130]
call fcn.00420df4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x459d2c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x459d2c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x459d2c
mov eax, dword [ebp - 0x14]
call fcn.00464e6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459d2c
push ebp
call fcn.00459be0
pop ecx
test al, al
jne 0x459d2c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403fa4
test al, al
je 0x459d2c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403fa4
cmp byte [ebp - 1], 0
je 0x459d2c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408128
test al, al
je 0x459d2c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f4134]
call fcn.00459358
inc edi
dec ebx
jne 0x459c89
mov eax, dword [0x4f4134]
cmp dword [eax + 8], 0
jle 0x459d4c
mov eax, dword [0x4f4134]
call fcn.00459410
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x459d65
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00459a44
pop ecx
test al, al
jne 0x459d65
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret