joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426c0c
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 0x426d0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004080f8
lea eax, [ebp - 4]
call fcn.00408214
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040876c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x426cf6
mov eax, ebx
call fcn.00405468
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x426cef
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.0040876c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x426cd9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x426d20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x426cd9
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 0x426cf6
mov eax, dword [ebp - 0x10]
call fcn.00405484
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426d13
lea eax, [ebp - 4]
call fcn.00407cd0
ret

Function at 0x427df8
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.004081a0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cf38
mov edi, eax
cmp edi, 0x104
jbe 0x427da3
mov eax, edi
add eax, eax
call fcn.00405468
mov esi, eax
jmp 0x427da5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cf38
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x427dde
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 0x427dc8
mov eax, esp
cmp esi, eax
je 0x427deb
mov eax, esi
call fcn.00405484
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 0x427e24
cmp bl, 0
je 0x427e20
cmp bl, 0x41
jl 0x427e1b
cmp bl, 0x5a
jg 0x427e1b
or bl, 0x20
xor al, bl
inc esi
jmp 0x427dff
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x427d64
Function at 0x46d884
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x46d8c7
cmp byte [ebx + 0x11], 0
jne 0x46d8c7
cmp byte [ebx + 0x2c], 0
jne 0x46d8c7
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 0x46d8de
mov ecx, dword [0x5dd444]
mov dl, 1
mov eax, dword [0x440eb0]
call fcn.00425e64
call fcn.004073cc
pop ebx
ret
mov ecx, dword [0x5dd444]
mov dl, 1
mov eax, dword [0x440eb0]
call fcn.00425e64
call fcn.004073cc
pop ebx
ret

Function at 0x46dd24
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 0x46dd72
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.0046d7d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dd8b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46dd94
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.0046d7d0
dec esi
jne 0x46ddb6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x470498
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5e4044
cmp dword [edi], 0
jne 0x470514
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x5e4040]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5d75fc
mov ecx, 2
call fcn.0040562c
mov edx, 0x470470
lea eax, [esi + 5]
call fcn.00470490
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00470490
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 0x4704e9
mov dword [0x5e4040], 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 0x4bb4a8
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 0x4bb4b0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4cfe9c
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 0x4cff01
mov eax, dword [esp]
call fcn.004d00e0
test al, al
je 0x4cff01
mov eax, dword [esp]
call fcn.004cff5c
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 0x4cfee4
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x4cff01
cmp ax, 0x5a
ja 0x4cff01
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 0x4d43ac
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.0040876c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d3e80
test al, al
jne 0x4d440d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5dd694]
mov dl, 1
mov eax, dword [0x4d2bb4]
call fcn.00425ea0
call fcn.004073cc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d3de8
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 0x4dd098
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 0x4dd09e
ret
Function at 0x4efb78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4347fc]
call fcn.00408e34
xor eax, eax
push ebp
push 0x4efcfd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5d8f3c], 0
jne 0x4efbcd
mov ecx, dword [0x5dd004]
mov dl, 1
mov eax, dword [0x418324]
call fcn.00425e64
call fcn.004073cc
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00405a7c
mov eax, ebx
call fcn.00408628
mov dword [ebp - 0x24], eax
mov esi, 0x4efd0c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040b888
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4efc12
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4efc67
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4efc60
lea eax, [ebp - 0x5c]
mov edx, ebx
call fcn.00408848
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x58]
mov ecx, 0x10
call fcn.0040880c
mov eax, dword [ebp - 0x60]
pop edx
call fcn.0041eecc
test eax, eax
jne 0x4efc60
mov ebx, 0x15
jmp 0x4efc6c
mov ebx, 0x10
jmp 0x4efc6c
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4efcba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5dd628]
movzx eax, word [eax]
or ax, 8
call fcn.00405908
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5d8f3c]
call fcn.004ef99c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efcc1
call fcn.004058f8
ret

Function at 0x4f9b38
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, 0x5da6f4
test edx, edx
jne 0x4f9b57
xor eax, eax
jmp 0x4f9c75
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4f9b74
push esi
push edx
push eax
call fcn.004f9c98
add esp, 0xc
jmp 0x4f9c75
push esi
push edx
push eax
call fcn.004f9f58
add esp, 0xc
jmp 0x4f9c75
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x507114
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 [0x5e46c0], 0
je 0x507255
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5dd414]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x507255
mov eax, dword [0x5e46c4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5e46c0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x507224
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5e46c0]
call fcn.0045d210
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50721c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x50721c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x50721c
mov eax, dword [ebp - 0x14]
call fcn.00512e14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50721c
push ebp
call fcn.005070d0
pop ecx
test al, al
jne 0x50721c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00406254
test al, al
je 0x50721c
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.00406254
cmp byte [ebp - 1], 0
je 0x50721c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040f0e0
test al, al
je 0x50721c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5e46c4]
call fcn.00506840
inc edi
dec ebx
jne 0x507179
mov eax, dword [0x5e46c4]
cmp dword [eax + 8], 0
jle 0x50723c
mov eax, dword [0x5e46c4]
call fcn.005068f4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x507255
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00506f38
pop ecx
test al, al
jne 0x507255
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 0x50f794
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.0040f2c4
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.00509778
test ebx, ebx
jne 0x50f7e7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0050f60c
mov ebx, eax
test ebx, ebx
je 0x50f8dd
cmp esi, ebx
je 0x50f810
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 0x50f825
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 0x50f85d
add eax, 0xffffff5f
sub eax, 2
jb 0x50f875
dec eax
sub eax, 2
jb 0x50f889
dec eax
sub eax, 2
jb 0x50f87f
jmp 0x50f893
add eax, 0xfffffdff
sub eax, 2
jb 0x50f875
dec eax
sub eax, 2
jb 0x50f889
dec eax
sub eax, 2
jb 0x50f87f
jmp 0x50f893
mov byte [esp + 0x120], 0
jmp 0x50f89b
mov byte [esp + 0x120], 2
jmp 0x50f89b
mov byte [esp + 0x120], 1
jmp 0x50f89b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00598218
mov esi, eax
call fcn.00505ebc
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.0050b14c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x50f8df
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x53d64c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x53d688]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x53d664
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x53d674
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x53d684
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x55dfa8
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.00407e58
test ebx, ebx
je 0x55dffc
mov eax, dword [esi]
call fcn.0040876c
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call sub.user32.dll_SendMessageW
sub ebx, eax
test ebx, ebx
jle 0x55dffc
mov eax, dword [esi]
test eax, eax
je 0x55dff1
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.004088e4
pop edi
pop esi
pop ebx
ret

Function at 0x5650a4
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.0056516c
test eax, eax
je 0x5650f6
mov edi, dword [ebx + 8]
test edi, edi
je 0x5650d2
test edi, edi
je 0x5650d2
mov edx, esi
mov eax, edi
call fcn.00509de8
jmp 0x565104
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0056516c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407e58
jmp 0x565104
mov ecx, esi
mov edx, 0x565124
mov eax, ebx
call fcn.0056502c
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.004080b0
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x5871dc
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.00407cd0
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x58722e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x587227
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040880c
jmp 0x58722e
mov eax, esi
call fcn.00407cd0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x58cabc
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 0x58cc1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5dcde4], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4d2dd8]
call fcn.004d3e10
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x58cbf1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004d3ebc
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040880c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x58cc34
call fcn.004089bc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004d3f20
test al, al
je 0x58cbdb
lea ecx, [ebp - 4]
mov edx, 0x58cca8
mov eax, dword [ebp - 0xc]
call fcn.004d4330
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00428718
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x58cbdb
xor edx, edx
push ebp
push 0x58cbd4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x58ccc0
mov eax, dword [ebp - 8]
push eax
call fcn.004105a0
test eax, eax
je 0x58cbbd
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x58cbbd
call fcn.0058ca48
test eax, eax
je 0x58cbad
mov eax, dword [ebx + 0x50]
jmp 0x58cbb0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5dcde4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58cbdb
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 0x58cbf8
mov eax, dword [ebp - 0xc]
call fcn.00405f6c
ret

Function at 0x58cd24
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 0x58cd6b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x58cd4e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x58cd5f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x58cd6b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x597d28
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 0x597d49
test edi, 0x40000
je 0x597d63
test bl, bl
jne 0x597de4
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x597de4
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 0x597d96
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x597dab
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x597dba
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x597dcb
cmp byte [esp + 2], 0
je 0x597de4
cmp byte [esp + 2], 0
je 0x597ddc
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x597de4
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x598088
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 0x5980ae
mov eax, esp
push eax
push 0x598050
call sub.user32.dll_EnumWindows
jmp 0x5980c1
mov eax, esp
push eax
push 0x598030
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 0x598184
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x5981d4]
test bl, 4
je 0x598198
or si, 1
test bl, 8
je 0x5981a1
or si, 4
test bl, 1
je 0x5981aa
or si, 8
test bl, 2
je 0x5981b3
or si, 0x10
test bl, 0x10
je 0x5981bc
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5981cc
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5981d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x598214]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5981f3
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x598203
or bx, 4
test esi, 0x20000000
je 0x59820f
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5a118c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5a119e
add esp, 0xfffffff0
call fcn.00406548
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0046deb8
mov eax, dword [0x5dd124]
mov dword [eax + 4], ebx
mov dword [eax], 0x5a1658
mov eax, dword [0x5dd130]
mov dword [eax + 4], ebx
mov dword [eax], 0x5a1664
mov eax, ebx
call fcn.005a1670
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x436000]
call fcn.00405f3c
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, 0x59c0b8
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4d7370]
call fcn.004dd9dc
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4d7370]
call fcn.004dd9dc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4d7370]
call fcn.004dd9dc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4d7370]
call fcn.004dd9dc
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4d7370]
call fcn.004dd9dc
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005a1bb4
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a1a34
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a1a34
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a1a34
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a1a34
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a1a34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5a131e
call fcn.004065a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret