joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7f0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a2ac
xor eax, eax
push ebp
push 0x40e8b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b318
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b4c8
mov eax, dword [ebx]
call fcn.0040e6a0
test al, al
jne 0x40e88d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b318
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b4c8
mov eax, dword [ebx]
call fcn.0040e6a0
test al, al
jne 0x40e88d
mov eax, ebx
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8b7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 4]
call fcn.0040a1c8
ret

Function at 0x4103b4
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 0x415048
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00415034
add esp, 0x208
pop ebx
ret

Function at 0x422268
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4222c1
test eax, edx
je 0x4222c4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42227f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4222a6
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 0x4222a7
add ecx, 4
js 0x422297
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4222a4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4222a6
xor eax, eax
ret
test eax, eax
je 0x4222d0
test edx, edx
jne 0x422270
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4237a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4237d5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x427dd8
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
test eax, eax
jle 0x427e11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a350
jmp 0x427e1a
mov eax, ebx
mov edx, esi
call fcn.0040a5a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427e24
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
test eax, eax
jle 0x427e46
movzx eax, word [esp]
jmp 0x427e48
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x428e98
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 0x428fbd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428ca0
mov esi, eax
mov eax, dword [0x6d0f90]
cmp byte [eax], 0
je 0x428f65
mov eax, dword [0x6d0b38]
call fcn.004076fc
call fcn.00407080
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x428e68]
call fcn.0040d208
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x428fd8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428fa1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6d0a88]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6d5634]
call fcn.0040d79c
push eax
call sub.user32.dll_LoadStringW
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 0x428fc4
lea eax, [ebp - 4]
mov edx, dword [0x428e68]
call fcn.0040d32c
ret
Function at 0x429d80
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 0x429e56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5f0
lea eax, [ebp - 4]
call fcn.0040a784
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429e40
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x429e39
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.0040b278
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429e23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429e68
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x429e23
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 0x429e40
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429e5d
lea eax, [ebp - 4]
call fcn.0040a1c8
ret

Function at 0x429e6c
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 0x429f6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5f0
lea eax, [ebp - 4]
call fcn.0040a784
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429f56
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x429f4f
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.0040b278
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429f39
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429f80
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x429f39
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 0x429f56
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429f73
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x42af28
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.0040a6c4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410394
mov edi, eax
cmp edi, 0x104
jbe 0x42aed3
mov eax, edi
add eax, eax
call fcn.00406f0c
mov esi, eax
jmp 0x42aed5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410394
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42af0e
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 0x42aef8
mov eax, esp
cmp esi, eax
je 0x42af1b
mov eax, esi
call fcn.00406f28
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 0x42af54
cmp bl, 0
je 0x42af50
cmp bl, 0x41
jl 0x42af4b
cmp bl, 0x5a
jg 0x42af4b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42af2f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42ae94

Function at 0x42c2d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42c2f4
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42c30e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42c309
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42c313
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42c381
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42c3ca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42c33f
inc dword [ebp - 0xc]
jmp 0x42c357
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42c357
cmp dword [ebp - 0xc], 0
jle 0x42c357
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42c379
xor eax, eax
jmp 0x42c375
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42c374
mov eax, esi
jmp 0x42c3cd
inc eax
cmp eax, ecx
jle 0x42c361
inc esi
cmp esi, dword [ebp - 8]
jl 0x42c32b
jmp 0x42c3ca
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42c3ca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42c3a2
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42c3c4
xor eax, eax
jmp 0x42c3c0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42c3bf
mov eax, esi
jmp 0x42c3cd
inc eax
cmp eax, ecx
jle 0x42c3ac
inc esi
cmp esi, dword [ebp - 8]
jl 0x42c38a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x475c8c
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.0047555c
dec esi
jne 0x475cae
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x47845c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6d7ff8
cmp dword [edi], 0
jne 0x4784d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6d7ff4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6caa94
mov ecx, 2
call fcn.0040714c
mov edx, 0x478434
lea eax, [esi + 5]
call fcn.00478454
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00478454
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 0x4784ad
mov dword [0x6d7ff4], 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 0x4c6478
Capabilities:
Encode data using xor

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 0x4c6480
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e62b0
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.0040b278
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004e5d84
test al, al
jne 0x4e6311
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6d11d4]
mov dl, 1
mov eax, dword [0x4e4ab8]
call fcn.00429100
call fcn.004098c4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e5cec
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 0x4ed6cc
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 0x4ed6d2
ret
Function at 0x501d80
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, 0x6cd35c
test edx, edx
jne 0x501d9f
xor eax, eax
jmp 0x501ebd
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x501dbc
push esi
push edx
push eax
call fcn.00501ee0
add esp, 0xc
jmp 0x501ebd
push esi
push edx
push eax
call fcn.005021a0
add esp, 0xc
jmp 0x501ebd
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50f6f4
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 [0x6d8678], 0
je 0x50f835
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6d0ec4]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x50f835
mov eax, dword [0x6d867c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6d8678]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50f804
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6d8678]
call fcn.00464cd0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50f7fc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x50f7fc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x50f7fc
mov eax, dword [ebp - 0x14]
call fcn.0051b414
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50f7fc
push ebp
call fcn.0050f6b0
pop ecx
test al, al
jne 0x50f7fc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00408760
test al, al
je 0x50f7fc
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, 0xffb9
call fcn.00408760
cmp byte [ebp - 1], 0
je 0x50f7fc
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00412648
test al, al
je 0x50f7fc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6d867c]
call fcn.0050ee20
inc edi
dec ebx
jne 0x50f759
mov eax, dword [0x6d867c]
cmp dword [eax + 8], 0
jle 0x50f81c
mov eax, dword [0x6d867c]
call fcn.0050eed4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50f835
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050f518
pop ecx
test al, al
jne 0x50f835
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 0x578e20
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.00578ee8
test eax, eax
je 0x578e72
mov edi, dword [ebx + 8]
test edi, edi
je 0x578e4e
test edi, edi
je 0x578e4e
mov edx, esi
mov eax, edi
call fcn.005123c8
jmp 0x578e80
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00578ee8
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a350
jmp 0x578e80
mov ecx, esi
mov edx, 0x578ea0
mov eax, ebx
call fcn.00578da8
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040a5a8
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x59af58
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.0040a1c8
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x59afaa
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x59afa3
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040b318
jmp 0x59afaa
mov eax, esi
call fcn.0040a1c8
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5a0838
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 0x5a0997
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6cfb88], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4e4cdc]
call fcn.004e5d14
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5a096d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004e5dc0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040b318
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5a09b0
call fcn.0040b4c8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004e5e24
test al, al
je 0x5a0957
lea ecx, [ebp - 4]
mov edx, 0x5a0a24
mov eax, dword [ebp - 0xc]
call fcn.004e6234
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042b848
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a0957
xor edx, edx
push ebp
push 0x5a0950
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5a0a3c
mov eax, dword [ebp - 8]
push eax
call fcn.00414020
test eax, eax
je 0x5a0939
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5a0939
call fcn.005a07c4
test eax, eax
je 0x5a0929
mov eax, dword [ebx + 0x50]
jmp 0x5a092c
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6cfb88]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a0957
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a0974
mov eax, dword [ebp - 0xc]
call fcn.00408444
ret
Function at 0x5b4e60
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5b4e72
add esp, 0xfffffff0
call fcn.00408a40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00475e7c
mov eax, dword [0x6d0a9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x5b532c
mov eax, dword [0x6d0aa8]
mov dword [eax + 4], ebx
mov dword [eax], 0x5b5338
mov eax, ebx
call fcn.005b5344
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x43d1e0]
call fcn.00408414
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43d1e0]
call fcn.00408414
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x43d1e0]
call fcn.00408414
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x43d1e0]
call fcn.00408414
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x43d1e0]
call fcn.00408414
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5afd8c
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4e91fc]
call fcn.004ee010
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4e91fc]
call fcn.004ee010
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4e91fc]
call fcn.004ee010
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4e91fc]
call fcn.004ee010
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4e91fc]
call fcn.004ee010
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005b5920
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b5750
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b5750
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b5750
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b5750
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b5750
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5b4ff2
call fcn.00408a98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret