joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4807a7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0066ea74
mov edi, eax
pop ecx
test edi, edi
je 0x480854
push edi
call fcn.0066be50
pop ecx
add eax, edi
je 0x48084a
push ebx
xor ebx, ebx
push esi
push eax
push edi
mov byte [eax], bl
call fcn.0066c16a
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x110]
push eax
push 8
push ebx
push edi
push bind
call fcn.0045722e
test eax, eax
jne 0x480848
push 0x105
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x110]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x480848
push ebx
push edi
push bind
call fcn.00457103
push 0x5c
push edi
call fcn.0066bcb7
pop ecx
pop ecx
test eax, eax
jne 0x4807de
pop esi
pop ebx
push edi
call fcn.00669092
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00609c1d
leave
ret 4
Function at 0x48402b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.006300b0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0066bd65
push eax
call fcn.0040d920
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x6d68ec]
je 0x484189
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x48419d
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x48419d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4840e7
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4840db
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00483c79
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4840e2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4840e9
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0043bfa4
test eax, eax
je 0x484110
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043b73c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x484114
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043bfa4
test eax, eax
je 0x48413b
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043b73c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x48413f
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043bfa4
test eax, eax
je 0x484167
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043b73c
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x484169
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x48417b
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x484189
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609c1d
leave
ret 4
xor eax, eax
jmp 0x48418c
Function at 0x48436f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4843b0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4843bf
push str.SetFileAttributesTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4843bf
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x6bfdfc]
call edi
jmp 0x4843c1
cmp dword [esi + 4], 0
je 0x4843bf
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4a57c8
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0
pop ebx
and edi, 1
je 0x4a5857
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0045747b
test eax, eax
jne 0x4a5830
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0045747b
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4a5830
inc ebx
test esi, esi
je 0x4a583b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x4a584a
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4a58e7
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, ecx
and al, 2
movzx esi, al
neg esi
sbb esi, esi
and esi, str.Apartment
test cl, 4
je 0x4a5872
mov esi, str.Free
and ecx, 6
cmp cl, 6
jne 0x4a5881
mov esi, str.Both
jmp 0x4a5885
test esi, esi
je 0x4a5904
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push str.InprocServer32
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4a58d4
push esi
call fcn.0066be50
pop ecx
inc eax
push eax
push esi
push 1
push 0
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a58df
call fcn.00436ce4
cmp byte [eax + 0x14], 0
je 0x4a5904
test ebx, ebx
jne 0x4a5904
test edi, edi
je 0x4a5900
mov esi, str.Insertable
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, ebx
jmp 0x4a5907
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4ba599
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x6a3598
call fcn.0060aea9
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x4ba72a
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x4ba6fc
sub eax, 1
je 0x4ba618
sub eax, 1
je 0x4ba5f0
sub eax, 1
je 0x4ba618
push 0x6c1027
mov ecx, edi
call fcn.00406f20
mov eax, edi
call fcn.0060ae58
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4ba5da
lea eax, [ebp - 0x28c]
push eax
jmp 0x4ba5df
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4ba5da
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.004841a1
test eax, eax
je 0x4ba5da
lea ecx, [ebp - 0x3a0]
call fcn.00401f50
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x4ba6b2
test byte [ebp - 0x21c], 0x18
jne 0x4ba6d4
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x6bfdfc]
mov ecx, ebx
call esi
jmp 0x4ba6d4
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.00407700
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00428a03
jmp 0x4ba5e6
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4ba5da
lea eax, [ebp - 0x390]
jmp 0x4ba615
call fcn.004273da
int3

Function at 0x4ba8e1
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0055386b
call fcn.00436d38
cmp dword [eax + 0x14], 0
jne 0x4ba8fc
mov ecx, esi
pop esi
jmp fcn.004b9ba1
pop esi
ret

Function at 0x4bb6c4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x4bb72e
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x4bb713
lea eax, [ebp - 0x158]
push eax
jmp 0x4bb718
push 0x6dcdb8
call fcn.00406f20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00609c1d
leave
ret 8
call fcn.004273da
int3

Function at 0x4bbc13
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004309bc
call fcn.00436d38
cmp dword [eax + 0x14], 0
jne 0x4bbc2e
mov ecx, esi
pop esi
jmp fcn.004bb3f8
pop esi
ret
Function at 0x4c360c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4c3625
call fcn.00436ce4
mov esi, dword [eax + 0xc]
push 0x6dd7f0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4c3667
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c3667
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4c3667
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004c3670
jmp 0x4c3669
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4e0bc9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4e0d50
je 0x4e0d77
sub eax, 0xa1
je 0x4e0d77
sub eax, 1
je 0x4e0d77
dec eax
sub eax, 1
je 0x4e0d77
sub eax, 1
je 0x4e0d77
dec eax
sub eax, 1
je 0x4e0d77
sub eax, 1
je 0x4e0d77
sub eax, 0x58
jne 0x4e0db5
cmp dword [edi + 0xc0], 0xffffffff
je 0x4e0d77
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4e0d77
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4e0ca5
sub eax, 1
jne 0x4e0d77
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4e0c94
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
test eax, eax
jne 0x4e0cf1
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4e0c6a
jmp 0x4e0dcf
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4e0dcf
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
test eax, eax
jne 0x4e0cf1
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4e0cbc
jmp 0x4e0dcf
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00434e55
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4e0dcf
sub eax, 0x200
je 0x4e0d77
sub eax, 1
je 0x4e0d77
sub eax, 1
je 0x4e0d77
dec eax
sub eax, 1
je 0x4e0d77
sub eax, 1
je 0x4e0d77
dec eax
sub eax, 1
je 0x4e0d77
sub eax, 1
jne 0x4e0db5
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4e0d96
cmp dword [eax + 0x20], ebx
je 0x4e0d96
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4e0db5
cmp dword [eax + 0x20], ebx
je 0x4e0db5
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x4e0dd4
lea eax, [edi + 0x2250]
test eax, eax
je 0x4e0dcb
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4e0dd4
xor eax, eax
inc eax
jmp 0x4e0ddc
push esi
mov ecx, edi
call fcn.004d7acb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4e2dd4
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4e2f1a
mov ecx, 0x75e85c
call fcn.00456071
mov esi, eax
test esi, esi
je 0x4e2f0f
xor eax, eax
cmp word [esi + 8], ax
jne 0x4e2ed9
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4e2e95
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4e2e5b
push str.MS_UI_Gothic
call fcn.004e2f6b
pop ecx
test eax, eax
je 0x4e2e5b
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4e2e76
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e2e95
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4e2e9b
push ebx
push edi
push eax
call fcn.0046aa76
add esp, 0xc
jmp 0x4e2e9b
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00429fb3
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4e2f14
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0043c009
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x4e2edc
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x4e2eea
push edi
call fcn.0066be50
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00403730
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.004273da
call fcn.00427404
int3

Function at 0x4edaf6
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4edb2c
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0042c4f0
test eax, eax
je 0x4edb14
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4eecee
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4eed1b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4eed30
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4eed30
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0042dec8
jmp 0x4eee01
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042dec8
cmp eax, edi
jne 0x4eee0b
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4eed9d
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4eede1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4eee0b
cmp eax, 0x205
je 0x4eee0b
cmp eax, 0x201
je 0x4eee0b
cmp eax, 0x204
je 0x4eee0b
cmp eax, 0x100
jne 0x4eedc9
cmp dword [ebp - 0x18], 0x1b
je 0x4eee0b
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4eee01
ja 0x4eedfa
cmp eax, dword [0x775524]
jbe 0x4eee01
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4eed52
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4fb1de
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4fb20a
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4fb235
cmp dword [0x774644], 0
jne 0x4fb235
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4fb231
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4fb231
push edi
call fcn.00659c0a
pop ecx
jmp 0x4fb2aa
mov eax, edi
jmp 0x4fb2aa
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4fb2b9
push esi
call fcn.00443a71
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push esi
push 1
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00609c1d
leave
ret 4
call fcn.004273da
int3
Function at 0x4ffb2e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x75e714], 0
push esi
push edi
je 0x4ffbb6
cmp dword [0x75e93c], 0xfffffffe
jne 0x4ffba2
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4ffbb6
mov edi, 0x775610
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x775628], 0
jne 0x4ffbba
push 0
push 0
push 0x4ffbc0
call fcn.0066e877
add esp, 0xc
mov dword [0x775628], eax
test eax, eax
je 0x4ffb92
cmp eax, 0xffffffff
je 0x4ffb92
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x75e93c], esi
jmp 0x4ffb99
and dword [0x775628], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4ffbb6
mov eax, dword [ebp + 8]
mov dword [0x75e93c], eax
cmp eax, 0xffffffff
jne 0x4ffbb6
and dword [0x775628], 0
pop edi
pop esi
pop ebp
ret
call fcn.004273da
int3
Function at 0x5433f5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x543553
push esi
push edi
push 0x6e3434
call fcn.0043fc07
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x54348e
mov edi, dword [ebx + 0x168]
jmp 0x54347a
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x54347a
push esi
call fcn.0042dec8
push eax
push 0x75ea08
call fcn.0043fb68
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x54347a
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x54347a
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x543429
lea ecx, [ebx + 0x164]
call fcn.00543fbd
jmp 0x543551
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x543551
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00464e7b
mov edi, dword [eax]
test edi, edi
jne 0x5434ba
xor esi, esi
jmp 0x5434bd
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x543541
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x543541
cmp dword [ebp - 0x10], 0
jne 0x543516
push edi
push 0x75ea08
call fcn.0043fb68
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
push eax
push 0x6de698
call fcn.0043fb68
pop ecx
pop ecx
test eax, eax
je 0x543541
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.00542175
test eax, eax
jne 0x543541
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0053ff57
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x5434a5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x577464
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x577503
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x5774ff
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5774ff
cmp dword [ebx], eax
jne 0x5774ff
mov eax, dword [ebx + 4]
sub eax, 1
je 0x5774d9
sub eax, 1
je 0x5774a9
sub eax, 1
jne 0x5774ff
mov edi, 0x428e
jmp 0x5774de
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x5774de
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x5774de
add edi, 3
jmp 0x5774de
mov edi, 0x3ea0
push edi
mov ecx, 0x775e58
call fcn.00404f80
test eax, eax
je 0x577503
mov eax, dword [0x775e58]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x5774f8
call fcn.004273da
int3