joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4668bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x492188]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4668fc
cmp byte [ebx], 0xa
jne 0x4668fc
or byte [edi + eax + 0x28], 4
jmp 0x466901
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x466a00
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4669e3
inc eax
cmp dl, 0xd
je 0x46692d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x466953
cmp eax, ecx
jae 0x466961
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x466915
jmp 0x466a00
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4669de
cmp dword [ebp - 0x10], 0
je 0x4669de
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x492188]
test byte [eax + edi + 0x28], 0x48
je 0x4669b8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4669a3
mov byte [esi], dl
jmp 0x4669b4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x492188]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x466a00
cmp byte [ebp - 1], 0xa
jne 0x4669c7
cmp esi, ebx
jne 0x4669c7
mov byte [esi], 0xa
jmp 0x4669ff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045b12d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x466a00
mov byte [esi], 0xd
jmp 0x4669ff
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x492188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4669fd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x466a00
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x466a09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x492188]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x466a4f
cmp word [ebx], dx
jne 0x466a4f
or byte [eax + edi + 0x28], 4
jmp 0x466a54
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x466bb7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x466b97
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x466a95
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x466acb
cmp eax, edx
jae 0x466ad9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x466a70
jmp 0x466bb7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466b92
cmp dword [ebp - 0x18], 0
je 0x466b92
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x492188]
test byte [eax + edi + 0x28], 0x48
je 0x466b68
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x466b2c
mov word [esi], cx
jmp 0x466b63
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x492188]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x492188]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x492188]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x466bb7
pop eax
cmp word [ebp - 4], ax
jne 0x466b78
cmp esi, ebx
jne 0x466b78
mov word [esi], ax
jmp 0x466bb4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045b12d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x466bb7
push 0xd
pop eax
jmp 0x466b73
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x492188]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x466bb1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x466bb7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402fb4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x461024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40374c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40372c
xor eax, eax
push ebp
push 0x403725
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 0x403768
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 0x40372c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x461024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x461024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404540
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x504048], 0
je 0x4045a1
cmp word [0x50421c], 0xd7b2
jne 0x404569
cmp dword [0x504224], 0
jbe 0x404569
mov eax, 0x504218
call dword [0x504234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4045c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x4045bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40815c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40815c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40810f
test edx, 3
jne 0x4080fe
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408109
jmp 0x40810f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40810f
cmp dword [ecx - 8], 1
je 0x408119
mov edx, ebx
or edx, 3
call fcn.00404e0c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40812b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046c0

Function at 0x408168
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081ab
test edx, 3
jne 0x40819a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081a5
jmp 0x4081ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081ab
cmp dword [ecx - 8], 1
je 0x4081b5
mov edx, ebx
or edx, 3
call fcn.00404e0c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046c0

Function at 0x40b3dc
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 0x40b415
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047b0
jmp 0x40b41e
mov eax, ebx
mov edx, esi
call fcn.00404714
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b428
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 0x40b44a
movzx eax, byte [esp]
jmp 0x40b44c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40badc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b954
mov eax, dword [0x503eac]
cmp byte [eax], 0
je 0x40bb58
mov eax, dword [0x503cbc]
call fcn.0040307c
call fcn.00402df8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b74
push eax
lea eax, [esp + 0x50]
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 0x40bba0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb8e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x503c5c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5067f4]
call fcn.004058bc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c3ec
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 0x40c4c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404758
lea eax, [ebp - 4]
call fcn.00404bd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b84
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4ac
mov eax, ebx
call fcn.00402c9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4a5
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.00404b84
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c48f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c48f
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 0x40c4ac
mov eax, dword [ebp - 0x10]
call fcn.00402cb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4c9
lea eax, [ebp - 4]
call fcn.004046c0
ret
Function at 0x41b078
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x507300
cmp dword [edi], 0
jne 0x41b0f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5072fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x461ad8
mov ecx, 2
call fcn.00402e8c
mov edx, 0x41b050
lea eax, [esi + 5]
call fcn.0041b070
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b070
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 0x41b0c9
mov dword [0x5072fc], 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 0x41d630
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.00404b84
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d688
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x503fd8]
mov dl, 1
mov eax, dword [0x41d154]
call fcn.0040bc9c
call fcn.00404108
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d25c
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 0x41e4e4
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 0x41e4ea
ret
Function at 0x4297bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x429990
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0043f914
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x429975
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x429822
mov eax, dword [esi]
add eax, 0x264
call fcn.004046c0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x4298fc
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x503fb0]
movzx eax, al
bt dword [edx], eax
jae 0x4298b9
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.00440998
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x429940
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004048a8
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.004048a8
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.00404a44
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x429940
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004048a8
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.0040498c
jmp 0x429940
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x4298e9
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.00404c24
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00404980
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040c54c
cmp al, 2
je 0x4298d8
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x42992d
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.00404c24
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x429951
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42995e
push ebp
call fcn.004296d4
pop ecx
jmp 0x429975
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00403aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429997
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004046e4
ret
Function at 0x42d30c
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.004046c0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42d35a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404930
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4313dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43150f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d1b4]
call fcn.0041d284
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4314e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d324
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404930
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x431524
call fcn.004049d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d388
lea ecx, [ebp - 4]
mov edx, 0x431560
mov eax, dword [ebp - 0xc]
call fcn.0041d5b8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d6a4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4314c8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43156c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x462494]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4314cf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4315bc
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 0x431603
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4315e6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4315f7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x431603
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x436640
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 - 9]
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 [0x507534], 0
je 0x436789
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x503e4c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x436789
mov eax, dword [0x507538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x507534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x436758
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x507534]
call fcn.004140f8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x436750
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x436750
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x436750
mov eax, dword [ebp - 0x14]
call fcn.00440998
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x436750
push ebp
call fcn.004365fc
pop ecx
test al, al
jne 0x436750
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403aa8
test al, al
je 0x436750
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
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.00403aa8
cmp byte [ebp - 1], 0
je 0x436750
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x436750
mov edx, dword [ebp - 0x14]
mov eax, dword [0x507538]
call fcn.00435d6c
inc edi
dec ebx
jne 0x4366a5
mov eax, dword [0x507538]
cmp dword [eax + 8], 0
jle 0x436770
mov eax, dword [0x507538]
call fcn.00435e24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x436789
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00436460
pop ecx
test al, al
jne 0x436789
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
Function at 0x43db94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406584
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004389c8
test ebx, ebx
jne 0x43dbe7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043dad0
mov ebx, eax
test ebx, ebx
je 0x43dcd2
cmp esi, ebx
je 0x43dc10
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43dc25
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43dc5d
add eax, 0xffffff5f
sub eax, 2
jb 0x43dc75
dec eax
sub eax, 2
jb 0x43dc89
dec eax
sub eax, 2
jb 0x43dc7f
jmp 0x43dc93
add eax, 0xfffffdff
sub eax, 2
jb 0x43dc75
dec eax
sub eax, 2
jb 0x43dc89
dec eax
sub eax, 2
jb 0x43dc7f
jmp 0x43dc93
mov byte [esp + 0x120], 0
jmp 0x43dc9b
mov byte [esp + 0x120], 2
jmp 0x43dc9b
mov byte [esp + 0x120], 1
jmp 0x43dc9b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044b4ac
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043a150
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43dcd4
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret