joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42435c
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 0x424481
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00424164
mov esi, eax
mov eax, dword [0x5ad4e0]
cmp byte [eax], 0
je 0x424429
mov eax, dword [0x5ad1f0]
call fcn.0040597c
call fcn.004055bc
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 [0x42432c]
call fcn.00409e24
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 0x42449c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x424465
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5ad170]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5b1628]
call fcn.0040a244
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 0x424488
lea eax, [ebp - 4]
mov edx, dword [0x42432c]
call fcn.00409f48
ret

Function at 0x425184
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 0x42525a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407fcc
lea eax, [ebp - 4]
call fcn.004080e8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408648
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x425244
mov eax, ebx
call fcn.00405448
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42523d
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.00408648
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x425227
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42526c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x425227
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 0x425244
mov eax, dword [ebp - 0x10]
call fcn.00405464
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425261
lea eax, [ebp - 4]
call fcn.00407ba4
ret
Function at 0x425270
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x425370
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407fcc
lea eax, [ebp - 4]
call fcn.004080e8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408648
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42535a
mov eax, ebx
call fcn.00405448
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x425353
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408648
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42533d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x425384
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42533d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42535a
mov eax, dword [ebp - 0x10]
call fcn.00405464
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425377
lea eax, [ebp - 4]
call fcn.00407ba4
ret

Function at 0x42629c
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.00408074
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cbbc
mov edi, eax
cmp edi, 0x104
jbe 0x426247
mov eax, edi
add eax, eax
call fcn.00405448
mov esi, eax
jmp 0x426249
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cbbc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x426282
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 0x42626c
mov eax, esp
cmp esi, eax
je 0x42628f
mov eax, esi
call fcn.00405464
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 0x4262c8
cmp bl, 0
je 0x4262c4
cmp bl, 0x41
jl 0x4262bf
cmp bl, 0x5a
jg 0x4262bf
or bl, 0x20
xor al, bl
inc esi
jmp 0x4262a3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426208
Function at 0x467988
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x467990
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49e580
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49e61e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x49e5e2
cmp byte [ebx + 0x11], 0
jne 0x49e5e2
cmp byte [ebx + 0x24], 0
jne 0x49e5e2
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x49e603
lea edx, [ebp - 4]
mov eax, dword [0x5ad468]
call fcn.0040cb28
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x477d78]
call fcn.004244ac
call fcn.004072a0
jmp 0x49e603
lea edx, [ebp - 8]
mov eax, dword [0x5ad468]
call fcn.0040cb28
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x477d78]
call fcn.004244ac
call fcn.004072a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e625
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c04
ret

Function at 0x49ea58
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49eaa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0049e4cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49eabf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49eac8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0049e4cc
dec esi
jne 0x49eaea
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4a11d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5b3e24
cmp dword [edi], 0
jne 0x4a1250
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5b3e20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a85bc
mov ecx, 2
call fcn.0040560c
mov edx, 0x4a11ac
lea eax, [esi + 5]
call fcn.004a11cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a11cc
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 0x4a1225
mov dword [0x5b3e20], 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 0x4b4bdc
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x4b4c41
mov eax, dword [esp]
call fcn.004b4e14
test al, al
je 0x4b4c41
mov eax, dword [esp]
call fcn.004b4c9c
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x4b4c24
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x4b4c41
cmp ax, 0x5a
ja 0x4b4c41
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4b8cd8
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.004b8530
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.00408648
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004b85f8
test al, al
jne 0x4b8d40
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5ad38c]
mov dl, 1
mov eax, dword [0x4b72fc]
call fcn.004245a4
call fcn.004072a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b8d4c
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.00408648
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004b85f8
test al, al
jne 0x4b8dad
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5ad69c]
mov dl, 1
mov eax, dword [0x4b72fc]
call fcn.004245a4
call fcn.004072a0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b8560
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 0x4c0164
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 0x4c016a
ret
Function at 0x4d87bc
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x5aa730
test edx, edx
jne 0x4d87db
xor eax, eax
jmp 0x4d88f9
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4d87f8
push esi
push edx
push eax
call fcn.004d8900
add esp, 0xc
jmp 0x4d88f9
push esi
push edx
push eax
call fcn.004d8bc0
add esp, 0xc
jmp 0x4d88f9
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e58d8
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 - 8]
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 [0x5b4050], 0
je 0x4e5a19
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5ad43c]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4e5a19
mov eax, dword [0x5b4054]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5b4050]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4e59e8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5b4050]
call fcn.0048e480
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4e59e0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x4e59e0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x74]
test al, al
je 0x4e59e0
mov eax, dword [ebp - 0x14]
call fcn.004f15ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4e59e0
push ebp
call fcn.004e5894
pop ecx
test al, al
jne 0x4e59e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.004061c0
test al, al
je 0x4e59e0
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004061c0
cmp byte [ebp - 9], 0
je 0x4e59e0
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040ecf4
test al, al
je 0x4e59e0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b4054]
call fcn.004e4fdc
inc edi
dec ebx
jne 0x4e593d
mov eax, dword [0x5b4054]
cmp dword [eax + 8], 0
jle 0x4e5a00
mov eax, dword [0x5b4054]
call fcn.004e5090
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e5a19
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004e56fc
pop ecx
test al, al
jne 0x4e5a19
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 0x4ee018
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.0040eef4
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.004e7f28
test ebx, ebx
jne 0x4ee06b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004ede90
mov ebx, eax
test ebx, ebx
je 0x4ee161
cmp esi, ebx
je 0x4ee094
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x4ee0a9
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 0x4ee0e1
add eax, 0xffffff5f
sub eax, 2
jb 0x4ee0f9
dec eax
sub eax, 2
jb 0x4ee10d
dec eax
sub eax, 2
jb 0x4ee103
jmp 0x4ee117
add eax, 0xfffffdff
sub eax, 2
jb 0x4ee0f9
dec eax
sub eax, 2
jb 0x4ee10d
dec eax
sub eax, 2
jb 0x4ee103
jmp 0x4ee117
mov byte [esp + 0x120], 0
jmp 0x4ee11f
mov byte [esp + 0x120], 2
jmp 0x4ee11f
mov byte [esp + 0x120], 1
jmp 0x4ee11f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00571838
mov esi, eax
call fcn.004e4988
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004e9950
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4ee163
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x51baf8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x51bb34]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51bb10
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51bb20
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51bb30
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x53a8a8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.00407d2c
test ebx, ebx
je 0x53a8fc
mov eax, dword [esi]
call fcn.00408648
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call sub.user32.dll_SendMessageW
sub ebx, eax
test ebx, ebx
jle 0x53a8fc
mov eax, dword [esi]
test eax, eax
je 0x53a8f1
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.004087c4
pop edi
pop esi
pop ebx
ret

Function at 0x541608
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.005416d0
test eax, eax
je 0x54165a
mov edi, dword [ebx + 8]
test edi, edi
je 0x541636
test edi, edi
je 0x541636
mov edx, esi
mov eax, edi
call fcn.004e8568
jmp 0x541668
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005416d0
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407d2c
jmp 0x541668
mov ecx, esi
mov edx, 0x541688
mov eax, ebx
call fcn.00541590
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00407f84
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x560c30
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00407ba4
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x560c82
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x560c7b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004086ec
jmp 0x560c82
mov eax, esi
call fcn.00407ba4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x56636c
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 0x5664cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5ace14], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4b7520]
call fcn.004b8588
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5664a1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004b8634
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004086ec
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5664e4
call fcn.0040889c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004b87cc
test al, al
je 0x56648b
lea ecx, [ebp - 4]
mov edx, 0x566558
mov eax, dword [ebp - 0xc]
call fcn.004b8c5c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00426b20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x56648b
xor edx, edx
push ebp
push 0x566484
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x566570
mov eax, dword [ebp - 8]
push eax
call fcn.004101d0
test eax, eax
je 0x56646d
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x56646d
call fcn.005662f8
test eax, eax
je 0x56645d
mov eax, dword [ebx + 0x50]
jmp 0x566460
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5ace14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56648b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5664a8
mov eax, dword [ebp - 0xc]
call fcn.00405ec8
ret

Function at 0x5665d4
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 0x56661b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5665fe
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x56660f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x56661b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x571348
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x571369
test edi, 0x40000
je 0x571383
test bl, bl
jne 0x571404
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x571404
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x5713b6
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5713cb
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5713da
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5713eb
cmp byte [esp + 2], 0
je 0x571404
cmp byte [esp + 2], 0
je 0x5713fc
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x571404
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5716a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x5716ce
mov eax, esp
push eax
push 0x571670
call sub.user32.dll_EnumWindows
jmp 0x5716e1
mov eax, esp
push eax
push 0x571650
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5717a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x5717f4]
test bl, 4
je 0x5717b8
or si, 1
test bl, 8
je 0x5717c1
or si, 4
test bl, 1
je 0x5717ca
or si, 8
test bl, 2
je 0x5717d3
or si, 0x10
test bl, 0x10
je 0x5717dc
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5717ec
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5717f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x571834]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x571813
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x571823
or bx, 4
test esi, 0x20000000
je 0x57182f
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret