joyce8/EMBER2024-capa huggingface dataset:
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 [0x6ccf8c]
cmp byte [eax], 0
je 0x428f65
mov eax, dword [0x6ccb34]
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 [0x6cca84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6d1634]
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 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 0x42c788
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42c7a7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42c7b7
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42c8d9
test ebx, ebx
jl 0x42c8d9
test esi, esi
jle 0x42c8d9
mov eax, dword [ebp - 8]
call fcn.0040b278
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b278
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42c876
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42c8d9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42c85b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42c82a
inc dword [ebp - 0x14]
jmp 0x42c83a
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42c83a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42c845
or eax, 0xffffffff
jmp 0x42c85b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42c858
inc eax
jmp 0x42c85b
or eax, 0xffffffff
test eax, eax
jl 0x42c863
cmp esi, eax
jg 0x42c818
cmp esi, eax
jg 0x42c86e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42c8dc
inc edx
dec dword [ebp - 0x1c]
jne 0x42c814
jmp 0x42c8d9
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42c8d9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42c8c0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42c89f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42c8aa
or eax, 0xffffffff
jmp 0x42c8c0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42c8bd
inc eax
jmp 0x42c8c0
or eax, 0xffffffff
test eax, eax
jl 0x42c8c8
cmp esi, eax
jg 0x42c888
cmp esi, eax
jg 0x42c8d3
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42c8dc
inc edx
dec dword [ebp - 0x1c]
jne 0x42c884
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x475c1c
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 0x475c6a
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.0047555c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475c83
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
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, 0x6d3ff8
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 [0x6d3ff4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6c6a94
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 [0x6d3ff4], 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 0x4c6744
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 0x4c674c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e657c
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.004e6050
test al, al
jne 0x4e65dd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6cd1d0]
mov dl, 1
mov eax, dword [0x4e4d84]
call fcn.00429100
call fcn.004098c4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e5fb8
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 0x4ed998
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 0x4ed99e
ret
Function at 0x50204c
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, 0x6c935c
test edx, edx
jne 0x50206b
xor eax, eax
jmp 0x502189
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x502088
push esi
push edx
push eax
call fcn.005021ac
add esp, 0xc
jmp 0x502189
push esi
push edx
push eax
call fcn.0050246c
add esp, 0xc
jmp 0x502189
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50f9c0
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 [0x6d4678], 0
je 0x50fb01
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6ccec0]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x50fb01
mov eax, dword [0x6d467c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6d4678]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50fad0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6d4678]
call fcn.00464cd0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50fac8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x50fac8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x50fac8
mov eax, dword [ebp - 0x14]
call fcn.0051b6e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50fac8
push ebp
call fcn.0050f97c
pop ecx
test al, al
jne 0x50fac8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00408760
test al, al
je 0x50fac8
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 0x50fac8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00412648
test al, al
je 0x50fac8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6d467c]
call fcn.0050f0ec
inc edi
dec ebx
jne 0x50fa25
mov eax, dword [0x6d467c]
cmp dword [eax + 8], 0
jle 0x50fae8
mov eax, dword [0x6d467c]
call fcn.0050f1a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50fb01
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050f7e4
pop ecx
test al, al
jne 0x50fb01
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 0x518098
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.0041282c
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.00512024
test ebx, ebx
jne 0x5180eb
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00517f10
mov ebx, eax
test ebx, ebx
je 0x5181e1
cmp esi, ebx
je 0x518114
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 0x518129
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 0x518161
add eax, 0xffffff5f
sub eax, 2
jb 0x518179
dec eax
sub eax, 2
jb 0x51818d
dec eax
sub eax, 2
jb 0x518183
jmp 0x518197
add eax, 0xfffffdff
sub eax, 2
jb 0x518179
dec eax
sub eax, 2
jb 0x51818d
dec eax
sub eax, 2
jb 0x518183
jmp 0x518197
mov byte [esp + 0x120], 0
jmp 0x51819f
mov byte [esp + 0x120], 2
jmp 0x51819f
mov byte [esp + 0x120], 1
jmp 0x51819f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005ac1b8
mov esi, eax
call fcn.0050e768
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.00513a3c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5181e3
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x5790ec
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.005791b4
test eax, eax
je 0x57913e
mov edi, dword [ebx + 8]
test edi, edi
je 0x57911a
test edi, edi
je 0x57911a
mov edx, esi
mov eax, edi
call fcn.00512694
jmp 0x57914c
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005791b4
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a350
jmp 0x57914c
mov ecx, esi
mov edx, 0x57916c
mov eax, ebx
call fcn.00579074
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040a5a8
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x59b224
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 0x59b276
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x59b26f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040b318
jmp 0x59b276
mov eax, esi
call fcn.0040a1c8
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5a0b04
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 0x5a0c63
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6cbb88], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4e4fa8]
call fcn.004e5fe0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5a0c39
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004e608c
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, 0x5a0c7c
call fcn.0040b4c8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004e60f0
test al, al
je 0x5a0c23
lea ecx, [ebp - 4]
mov edx, 0x5a0cf0
mov eax, dword [ebp - 0xc]
call fcn.004e6500
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042b848
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a0c23
xor edx, edx
push ebp
push 0x5a0c1c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5a0d08
mov eax, dword [ebp - 8]
push eax
call fcn.00414020
test eax, eax
je 0x5a0c05
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5a0c05
call fcn.005a0a90
test eax, eax
je 0x5a0bf5
mov eax, dword [ebx + 0x50]
jmp 0x5a0bf8
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6cbb88]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a0c23
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 0x5a0c40
mov eax, dword [ebp - 0xc]
call fcn.00408444
ret
Function at 0x5a0d6c
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 0x5a0db3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a0d96
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a0da7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5a0db3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x5abcc8
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 0x5abce9
test edi, 0x40000
je 0x5abd03
test bl, bl
jne 0x5abd84
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5abd84
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 0x5abd36
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5abd4b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5abd5a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5abd6b
cmp byte [esp + 2], 0
je 0x5abd84
cmp byte [esp + 2], 0
je 0x5abd7c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5abd84
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5ac028
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 0x5ac04e
mov eax, esp
push eax
push 0x5abff0
call sub.user32.dll_EnumWindows
jmp 0x5ac061
mov eax, esp
push eax
push 0x5abfd0
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5ac124
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x5ac174]
test bl, 4
je 0x5ac138
or si, 1
test bl, 8
je 0x5ac141
or si, 4
test bl, 1
je 0x5ac14a
or si, 8
test bl, 2
je 0x5ac153
or si, 0x10
test bl, 0x10
je 0x5ac15c
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5ac16c
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5ac178
Capabilities:
Log keystrokes via polling

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