joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c0fcf
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.0052bbf0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x5c1033
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x5c1060
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x5c1060
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0057bba4
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x5c113a
call fcn.0057bb93
cmp eax, dword [ebp + 8]
je 0x5c108d
jmp 0x5c113a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x5c10c5
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5c111a
cmp dword [ebp - 0x1c], 0x202
je 0x5c10e9
cmp dword [ebp - 0x1c], 0x205
je 0x5c10e9
cmp dword [ebp - 0x1c], 0x201
je 0x5c10e9
cmp dword [ebp - 0x1c], 0x204
jne 0x5c10eb
jmp 0x5c113a
cmp dword [ebp - 0x1c], 0x100
jne 0x5c10fc
cmp dword [ebp - 0x18], 0x1b
jne 0x5c10fc
jmp 0x5c113a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.00581a96
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x711394]
jbe 0x5c1135
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x5c1071
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x40338c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405c40
test esi, esi
jne 0x4033c4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405d7c
jmp 0x4033e2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032d0
mov edi, eax
test esi, esi
je 0x4033e2
cmp dword [ebx], 0
je 0x4033e2
dec esi
jmp 0x4033cb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403414
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ac008], 0x8088405
inc edx
mov dword [ebx + 0x4ac008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ae8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b60
xor eax, eax
push ebp
push 0x403b59
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 0x403bb8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ac024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b3050], 0
je 0x404ced
cmp word [0x4b332c], 0xd7b2
jne 0x404cb5
cmp dword [0x4b3334], 0
jbe 0x404cb5
mov eax, 0x4b3328
call dword [0x4b3344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x404d09
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404e98
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ac034], 0
je 0x404ebe
mov edx, esi
mov eax, ebx
call dword [0x4ac034]
jmp 0x404ecd
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b3051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e60
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407f10
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 0x409a24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b5b5c
push 0xa
push 0x409ab8
mov eax, dword [0x4b5b4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409a48
call fcn.00412680
push ebx
mov eax, dword [0x4b5b4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409a5f
call fcn.00412680
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409a71
call fcn.00412680
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b5b60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b5b64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b5b68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b5b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b5b70], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b5b74], edx
pop esi
pop ebx
ret

Function at 0x40b238
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b2e1
test eax, edx
je 0x40b2e4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b261
push edx
mov edx, eax
mov eax, esp
call fcn.00405e2c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b277
push eax
lea eax, [esp + 8]
call fcn.00405e2c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b286
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b2ad
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 0x40b2c7
add ecx, 4
js 0x40b29e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b2c4
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f38
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b2ab
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b2ad
xor eax, eax
ret
test eax, eax
je 0x40b2f4
test edx, edx
jne 0x40b248
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405ccc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c096
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c0b7
cmp ebx, 3
je 0x40c0b7
cmp ebx, 0x7b
je 0x40c0b7
mov eax, esi
call fcn.0040c038
test al, al
jne 0x40c0bb
xor eax, eax
jmp 0x40c0bd
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ccc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c0d9
test al, 0x10
jne 0x40c0dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40c1f8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405ccc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40c21a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40f8ec
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 0x40f925
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405d7c
jmp 0x40f92e
mov eax, ebx
mov edx, esi
call fcn.00405c40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f938
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 0x40f95a
movzx eax, word [esp]
jmp 0x40f95c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x410355
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00410044
mov esi, eax
mov eax, dword [0x4b2150]
cmp byte [eax], 0
je 0x4102fd
mov eax, dword [0x4b1eac]
call fcn.00403510
call fcn.00403180
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41020c]
call fcn.00407164
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x410370
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x410339
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b1e4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b5b4c]
call fcn.00407258
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41035c
lea eax, [ebp - 4]
mov edx, dword [0x41020c]
call fcn.00407170
ret
Function at 0x410f60
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 0x411036
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405c94
lea eax, [ebp - 4]
call fcn.00406680
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405ccc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x411020
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411019
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.00405ccc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x411003
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411048
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x411003
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 0x411020
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41103d
lea eax, [ebp - 4]
call fcn.00405c30
ret

Function at 0x412528
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.00405298
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 0x4124d2
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x4124d4
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 0x41250d
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 0x4124f7
mov eax, esp
cmp esi, eax
je 0x41251a
mov eax, esi
call fcn.00403034
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 0x412554
cmp bl, 0
je 0x412550
cmp bl, 0x41
jl 0x41254b
cmp bl, 0x5a
jg 0x41254b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41252f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412494

Function at 0x422cac
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.004229b0
dec esi
jne 0x422cce
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x423e78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b7e90
cmp dword [edi], 0
jne 0x423ef4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b7e8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4acc48
mov ecx, 2
call fcn.004031d0
mov edx, 0x423e50
lea eax, [esi + 5]
call fcn.00423e70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423e70
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 0x423ec9
mov dword [0x4b7e8c], 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 0x426f94
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.00405ccc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x426fec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b22b0]
mov dl, 1
mov eax, dword [0x426834]
call fcn.00410494
call fcn.0040470c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426a34
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 0x428498
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 0x42849e
ret
Function at 0x434bb8
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 0x434be7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x434c66
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00433488
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 0x434c34
mov cx, word [esp]
sub cx, si
jmp 0x434c36
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x434c1d
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 0x434c5c
mov cx, word [esp]
sub cx, si
jmp 0x434c5e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x434c45
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x434cc3
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0043488c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x434cae
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 0x434cc3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x434bc2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x442b80
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.00405c40
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x442bc7
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.00405e10
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x447fe0
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 0x448119
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 [0x4268a8]
call fcn.00426a5c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4480ef
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00426b38
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405e10
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x448134
call fcn.004060e4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00426cc8
test al, al
je 0x4480d9
lea ecx, [ebp - 4]
mov edx, 0x4481a8
mov eax, dword [ebp - 0xc]
call fcn.00426f14
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00412cfc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4480d2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4481c0
mov eax, dword [ebp - 8]
push eax
call fcn.00408678
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4b0df0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4480d9
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 0x4480f6
mov eax, dword [ebp - 0xc]
call fcn.00403d18
ret

Function at 0x448224
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 0x44826b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44824e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44825f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x44826b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x44dd48
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 [0x4b8110], 0
je 0x44de89
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4b20dc]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x44de89
mov eax, dword [0x4b8114]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4b8110]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44de58
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4b8110]
call fcn.0041be48
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44de50
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x44de50
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x44de50
mov eax, dword [ebp - 0x14]
call fcn.00458f80
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44de50
push ebp
call fcn.0044dd04
pop ecx
test al, al
jne 0x44de50
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403f28
test al, al
je 0x44de50
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.00403f28
cmp byte [ebp - 1], 0
je 0x44de50
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004082f8
test al, al
je 0x44de50
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4b8114]
call fcn.0044d47c
inc edi
dec ebx
jne 0x44ddad
mov eax, dword [0x4b8114]
cmp dword [eax + 8], 0
jle 0x44de70
mov eax, dword [0x4b8114]
call fcn.0044d534
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44de89
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044db68
pop ecx
test al, al
jne 0x44de89
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