joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c494
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42c4d7
mov eax, dword [ebp - 0x10c]
mov dword [0x6bb908], eax
mov eax, 0x6bb90c
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b928
mov eax, 0x6bb910
call fcn.0040a86c
xor eax, eax
mov dword [0x6bb914], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6bb7cc], 0xa
jl 0x42c62d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42c638
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42c62d
xor eax, eax
push ebp
push 0x42c626
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42c694
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42c586
cmp dword [ebp - 8], 2
jle 0x42c586
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42c559
adc edx, 0
mov eax, 0x6bb910
call fcn.0040ba00
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6bb910]
call fcn.0040b88c
push eax
push 0
push 0
push 0x42c694
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42c5e0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42c6b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42c5e0
cmp dword [ebp - 8], 2
jle 0x42c5e0
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42c5b5
adc edx, 0
mov eax, 0x6bb910
call fcn.0040ba00
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6bb910]
call fcn.0040b88c
push eax
push 0
push 0
push 0x42c6b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x6bb914
push 0
push 0
push 0x42c6c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42c60d
xor eax, eax
mov dword [0x6bb914], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c62d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x6b0720], 1
mov esp, ebp
pop ebp
ret
Function at 0x42c770
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 0x42c84a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040aca4
lea eax, [ebp - 4]
call fcn.0040ae3c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b88c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42c832
mov eax, ebx
call fcn.0040704c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42c82b
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.0040b88c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42c813
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42c85c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42c813
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 0x42c832
mov eax, dword [ebp - 0x10]
call fcn.00407068
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c851
lea eax, [ebp - 4]
call fcn.0040a86c
pop eax
jmp eax

Function at 0x42d7e8
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.0040ad7c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00411490
mov edi, eax
cmp edi, 0x104
jbe 0x42d793
mov eax, edi
add eax, eax
call fcn.0040704c
mov esi, eax
jmp 0x42d795
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00411490
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42d7ce
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 0x42d7b8
mov eax, esp
cmp esi, eax
je 0x42d7db
mov eax, esi
call fcn.00407068
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 0x42d814
cmp bl, 0
je 0x42d810
cmp bl, 0x41
jl 0x42d80b
cmp bl, 0x5a
jg 0x42d80b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42d7ef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42d754
Function at 0x42ec08
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 0x42ec28
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42ec42
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42ec3d
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42ec47
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42ecb5
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42ecfe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ec73
inc dword [ebp - 0xc]
jmp 0x42ec8b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42ec8b
cmp dword [ebp - 0xc], 0
jle 0x42ec8b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42ecad
xor eax, eax
jmp 0x42eca9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42eca8
mov eax, esi
jmp 0x42ed01
inc eax
cmp eax, ecx
jle 0x42ec95
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ec5f
jmp 0x42ecfe
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42ecfe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ecd6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42ecf8
xor eax, eax
jmp 0x42ecf4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ecf3
mov eax, esi
jmp 0x42ed01
inc eax
cmp eax, ecx
jle 0x42ece0
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ecbe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f0b4
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 0x42f0d3
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f0e3
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 0x42f205
test ebx, ebx
jl 0x42f205
test esi, esi
jle 0x42f205
mov eax, dword [ebp - 8]
call fcn.0040b88c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b88c
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 0x42f1a2
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42f205
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f187
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f156
inc dword [ebp - 0x14]
jmp 0x42f166
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42f166
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42f171
or eax, 0xffffffff
jmp 0x42f187
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f184
inc eax
jmp 0x42f187
or eax, 0xffffffff
test eax, eax
jl 0x42f18f
cmp esi, eax
jg 0x42f144
cmp esi, eax
jg 0x42f19a
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f208
inc edx
dec dword [ebp - 0x1c]
jne 0x42f140
jmp 0x42f205
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42f205
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f1ec
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f1cb
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42f1d6
or eax, 0xffffffff
jmp 0x42f1ec
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f1e9
inc eax
jmp 0x42f1ec
or eax, 0xffffffff
test eax, eax
jl 0x42f1f4
cmp esi, eax
jg 0x42f1b4
cmp esi, eax
jg 0x42f1ff
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f208
inc edx
dec dword [ebp - 0x1c]
jne 0x42f1b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43f1f4
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 0x43f1fc
mov eax, edx
pop esi
pop ebx
ret
Function at 0x44f05c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44f070
add esp, 0xfffffff0
call fcn.004090d4
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4490f8]
call fcn.004694f4
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44e098]
call fcn.0046ab50
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44e098]
call fcn.0046ab50
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x44f0c5
call fcn.0040912c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ac53c
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 0x4ac58a
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.004abc54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac5a3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4aeee4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6be8b4
cmp dword [edi], 0
jne 0x4aef60
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6be8b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6b152c
mov ecx, 2
call fcn.00407570
mov edx, 0x4aeebc
lea eax, [esi + 5]
call fcn.004aeedc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004aeedc
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 0x4aef35
mov dword [0x6be8b0], 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 0x4ba738
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4ba74f
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4ba73f
mov eax, ecx
pop ebx
ret

Function at 0x4ddbbc
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.0040b88c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004dd660
test al, al
jne 0x4ddc1d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6b7e0c]
mov dl, 1
mov eax, dword [0x4dc358]
call fcn.0042b60c
call fcn.00409f64
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004dd58c
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 0x4e5b18
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 0x4e5b1e
ret
Function at 0x4fb5d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
and eax, 0xff
shr ecx, 8
inc edx
xor ecx, dword [eax*4 + 0x6b35fc]
cmp edx, 4
mov eax, ecx
jl 0x4fb5d8
pop ebp
ret

Function at 0x4fb5f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
inc edx
shr eax, 0x18
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + 0x6b39fc]
cmp edx, 4
mov eax, ecx
jl 0x4fb5fc
pop ebp
ret
Function at 0x509b3c
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 [0x6beaf8], 0
je 0x509c7d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6b7adc]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x509c7d
mov eax, dword [0x6beafc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6beaf8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x509c4c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6beaf8]
call fcn.0049a7d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x509c44
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x21d], 0
je 0x509c44
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x509c44
mov eax, dword [ebp - 0x14]
call fcn.0051630c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x509c44
push ebp
call fcn.00509af8
pop ecx
test al, al
jne 0x509c44
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00408ecc
test al, al
je 0x509c44
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, 0xffba
call fcn.00408ecc
cmp byte [ebp - 1], 0
je 0x509c44
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00413844
test al, al
je 0x509c44
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6beafc]
call fcn.00509278
inc edi
dec ebx
jne 0x509ba1
mov eax, dword [0x6beafc]
cmp dword [eax + 8], 0
jle 0x509c64
mov eax, dword [0x6beafc]
call fcn.0050932c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x509c7d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00509960
pop ecx
test al, al
jne 0x509c7d
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 0x512a60
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.00413a28
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.0050c230
test ebx, ebx
jne 0x512ab3
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00512910
mov ebx, eax
test ebx, ebx
je 0x512ba9
cmp esi, ebx
je 0x512adc
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 0x512af1
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 0x512b29
add eax, 0xffffff5f
sub eax, 2
jb 0x512b41
dec eax
sub eax, 2
jb 0x512b55
dec eax
sub eax, 2
jb 0x512b4b
jmp 0x512b5f
add eax, 0xfffffdff
sub eax, 2
jb 0x512b41
dec eax
sub eax, 2
jb 0x512b55
dec eax
sub eax, 2
jb 0x512b4b
jmp 0x512b5f
mov byte [esp + 0x120], 0
jmp 0x512b67
mov byte [esp + 0x120], 2
jmp 0x512b67
mov byte [esp + 0x120], 1
jmp 0x512b67
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0059e314
mov esi, eax
call fcn.005088fc
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.0050dd74
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x512bab
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x57d6c4
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.0057d78c
test eax, eax
je 0x57d716
mov edi, dword [ebx + 8]
test edi, edi
je 0x57d6f2
test edi, edi
je 0x57d6f2
mov edx, esi
mov eax, edi
call fcn.0050c9c8
jmp 0x57d724
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0057d78c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040aa04
jmp 0x57d724
mov ecx, esi
mov edx, 0x57d744
mov eax, ebx
call fcn.0057d64c
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040ac5c
add esp, 0x200
pop edi
pop esi
pop ebx
ret

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

Function at 0x591dcc
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 0x591f31
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6b66c8], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4dc57c]
call fcn.004dd5b4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x591f05
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004dd69c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040b928
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x591f4c
call fcn.0040bad8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004dd700
test al, al
je 0x591eed
lea ecx, [ebp - 4]
mov edx, 0x591fc0
mov eax, dword [ebp - 0xc]
call fcn.004ddb10
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042e108
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x591eed
xor edx, edx
push ebp
push 0x591ee6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x591fd8
mov eax, dword [ebp - 8]
push eax
call fcn.00415434
test eax, eax
je 0x591ecd
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x591ecd
call fcn.00591d58
test eax, eax
je 0x591ebd
mov eax, dword [ebx + 0x50]
jmp 0x591ec0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6b66c8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591eed
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591f0c
mov eax, dword [ebp - 0xc]
call fcn.00408bcc
pop eax
jmp eax
Function at 0x59203c
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 0x592083
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x592066
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x592077
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x592083
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x59de30
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 0x59de51
test edi, 0x40000
je 0x59de6b
test bl, bl
jne 0x59deec
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x59deec
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 0x59de9e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x59deb3
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x59dec2
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x59ded3
cmp byte [esp + 2], 0
je 0x59deec
cmp byte [esp + 2], 0
je 0x59dee4
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x59deec
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x59e190
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 0x59e1b6
mov eax, esp
push eax
push 0x59e158
call sub.user32.dll_EnumWindows
jmp 0x59e1c9
mov eax, esp
push eax
push 0x59e138
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 0x59e28c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
test bl, 4
je 0x59e29e
or si, 1
test bl, 8
je 0x59e2a7
or si, 4
test bl, 1
je 0x59e2b0
or si, 8
test bl, 2
je 0x59e2b9
or si, 0x10
test bl, 0x10
je 0x59e2c2
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59e2d2
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x59e2d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59e2f1
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59e301
or bx, 4
test esi, 0x20000000
je 0x59e30d
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret