joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab5ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ab7af
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 8]
mov dword [edx + 0xbc], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
jne 0x4ab631
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ab65e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x6c], 0
je 0x4ab650
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x6c]
call fcn.0044d318
mov dword [ebp - 4], eax
jmp 0x4ab65e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
call fcn.0044d318
mov dword [ebp - 4], eax
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x4ab794
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
je 0x4ab794
cmp dword [ebp - 0xc], 0
je 0x4ab794
mov eax, dword [ebp - 8]
mov ax, word [eax + 0x1c]
and ax, word [0x4ab7bc]
mov dx, word [0x4ab7c0]
cmp dx, ax
jne 0x4ab794
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3e], 0
je 0x4ab794
push ebp
call fcn.004ab458
pop ecx
test al, al
je 0x4ab794
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004ab1e4
mov eax, dword [ebp - 8]
call fcn.0044ee64
test eax, eax
jne 0x4ab732
mov eax, dword [ebp - 8]
cmp word [eax + 0x60], 0
je 0x4ab732
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
je 0x4ab70b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x64], 0
jne 0x4ab70b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 4]
mov edx, dword [0x44bc90]
call fcn.00403ed8
test al, al
jne 0x4ab732
push dword [ebp - 0x10]
push 0x4ab7c8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ax, word [eax + 0x60]
call fcn.004aa798
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405778
push ebp
lea eax, [ebp - 0x18]
call fcn.004ab4bc
pop ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.004057c0
je 0x4ab794
push ebp
mov eax, dword [ebp - 0x10]
call fcn.004ab550
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x34]
je 0x4ab76d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x6c], 0
je 0x4ab794
mov eax, dword [ebp - 0xc]
mov edx, dword [0x44bc90]
call fcn.00403ed8
test al, al
je 0x4ab794
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4ab794
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_DrawMenuBar
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab7b6
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004054c8
ret
Function at 0x4acc90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ace28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
je 0x4acceb
mov eax, dword [ebp - 4]
mov edx, dword [0x453c7c]
call fcn.00403ed8
test al, al
je 0x4acd06
mov eax, dword [ebp - 4]
call fcn.00460334
test al, al
je 0x4acd06
mov eax, dword [ebp - 4]
call fcn.0045ff94
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x4acd06
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00458420
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040567c
jmp 0x4acdfd
mov eax, dword [ebp - 4]
mov edx, dword [0x453c7c]
call fcn.00403ed8
test al, al
jne 0x4acd67
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004acb68
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4acd46
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00458420
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040567c
jmp 0x4acdfd
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00458420
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 0x38
call fcn.00489508
jmp 0x4acdfd
mov eax, dword [ebp - 4]
call fcn.00460334
test al, al
jne 0x4acd99
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00458420
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.0040567c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004acbe0
jmp 0x4acdfd
mov eax, dword [ebp - 4]
call fcn.0045ff94
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
add edx, 1
jno 0x4acdb3
call fcn.00403c1c
mov eax, dword [ebp - 8]
call fcn.00405a0c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040569c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040568c
push eax
mov eax, dword [ebp - 4]
call fcn.0045ff94
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040569c
mov edx, eax
sub edx, 1
jno 0x4acdf5
call fcn.00403c1c
mov eax, dword [ebp - 8]
call fcn.00405a0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ace2f
lea eax, [ebp - 0x20]
call fcn.00404c88
lea eax, [ebp - 0x1c]
call fcn.004054b0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404cac
ret
Function at 0x4b3ff8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b4129
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
jne 0x4b4037
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
call fcn.0042c5f0
jmp 0x4b410b
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0042c588
test al, al
je 0x4b410b
mov eax, dword [ebp - 0x30]
add eax, 1
jno 0x4b405f
call fcn.00403c1c
imul edx, eax, 2
jno 0x4b4069
call fcn.00403c1c
lea eax, [ebp - 0x14]
call fcn.00405a0c
mov eax, dword [ebp - 0x34]
sub eax, 1
jno 0x4b407e
call fcn.00403c1c
test eax, eax
jl 0x4b410b
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
add eax, 1
jno 0x4b409e
call fcn.00403c1c
imul eax, eax, 2
jno 0x4b40a8
call fcn.00403c1c
test eax, eax
jns 0x4b40b1
call fcn.00403c14
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040568c
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x4b40d5
call fcn.00403c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x4b4103
mov eax, dword [ebp - 0x14]
call fcn.0040568c
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.0040560c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4b4091
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4130
lea eax, [ebp - 0x38]
call fcn.004054b0
lea eax, [ebp - 0x14]
call fcn.004054b0
ret
Function at 0x4b4134
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b42b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574224]
cmp byte [eax], 0
jne 0x4b4193
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404f2c
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042c760
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0040567c
jmp 0x4b4291
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040568c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4b41ca
mov eax, dword [ebp - 0xc]
call fcn.004054b0
jmp 0x4b4291
mov eax, dword [ebp - 0x10]
dec eax
sub eax, 2
jb 0x4b4204
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xf
lea eax, [ebp - 0x24]
push eax
push 0
lea edx, [ebp - 0x28]
mov eax, dword [0x57437c]
call fcn.004071d8
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x42c00c]
call fcn.0040e94c
call fcn.00404600
cmp dword [ebp - 0x14], 1
jne 0x4b4211
mov dword [ebp - 0x14], 2
mov edx, dword [ebp - 0x14]
shr edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405a0c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040568c
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040568c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4b427d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xf
lea eax, [ebp - 0x24]
push eax
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x574738]
call fcn.004071d8
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x42c00c]
call fcn.0040e94c
call fcn.00404600
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040568c
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0040560c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b42c0
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404cac
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404cac
ret
Function at 0x4be6fc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4be72a
mov eax, ebx
call fcn.004bf1b0
cmp dword [ebx + 0x40], 0
je 0x4be723
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4be79b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4be78d
cmp dword [ebx + 8], 0
je 0x4be74c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4be75e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4be78d
cmp dword [ebx + 8], 0
je 0x4be73f
cmp eax, 3
je 0x4be771
dec eax
jne 0x4be73f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4be73f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4be73f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4be7b9
cmp dword [ebx + 0x14], 0xcc
je 0x4be7b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004be7c4
pop ebx
ret

Function at 0x4cf718
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4cf73b
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4cf74e
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4cf7c4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 1
mov edx, dword [ebp - 8]
dec eax
test edx, edx
je 0x4cf765
cmp eax, dword [edx - 4]
jb 0x4cf76a
call fcn.00403c14
inc eax
lea eax, [edx + eax - 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4cf7a8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
shl eax, 5
mov edx, dword [ebp - 0x18]
shr edx, 0x1b
xor eax, edx
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx]
xor eax, edx
mov dword [ebp - 0x18], eax
add dword [ebp - 0x1c], 1
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x4cf783
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
pop edx
mov ecx, edx
xor edx, edx
div ecx
test edx, edx
jns 0x4cf7c1
call fcn.00403c14
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e8120
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 0xc]
add eax, 8
mov ecx, 1
mov edx, dword [0x4deea0]
call fcn.0040659c
add esp, 4
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov ecx, 1
mov edx, dword [0x4deec0]
call fcn.0040659c
add esp, 4
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov ecx, 1
mov edx, dword [0x4deee0]
call fcn.0040659c
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
je 0x4e8199
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ea0ec
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4e81af
mov eax, dword [ebp - 0xc]
push eax
push 0x4e76c0
call sub.user32.dll_EnumWindows
jmp 0x4e81c1
mov eax, dword [ebp - 0xc]
push eax
push 0x4e76c0
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_EnumChildWindows
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
call fcn.004063e0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4e922c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
mov edx, dword [0x4def00]
call fcn.00405a70
xor eax, eax
push ebp
push 0x4e92ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x24]
push eax
push 0x4e76c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x1c]
call fcn.004063e0
sub eax, 1
jno 0x4e9275
call fcn.00403c1c
test eax, eax
jl 0x4e92ae
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4e9293
cmp eax, dword [edx - 4]
jb 0x4e9298
call fcn.00403c14
mov eax, dword [edx + eax*4]
cmp eax, dword [ebp - 4]
jne 0x4e92a6
mov byte [ebp - 5], 1
jmp 0x4e92ae
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4e9284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e92d1
lea eax, [ebp - 0x24]
mov edx, dword [0x4def00]
call fcn.00405b40
ret
Function at 0x4ecae0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x574604]
cmp byte [eax], 0
je 0x4ecb78
cmp dword [ebp - 8], 0
je 0x4ecb48
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
push 4
push 0x1000
push 0x1000
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x91c]
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4ecbd4
push 0x8000
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x920]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
jmp 0x4ecbd4
cmp dword [ebp - 8], 0
je 0x4ecbb7
push 0x4ecbdc
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4ecbd4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ecd44
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test byte [ebp + 9], 2
jne 0x4ecda3
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4ecda3
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetFocus
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_AttachThreadInput
mov esp, ebp
pop ebp
ret 4
Function at 0x4f5b4c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x574604]
cmp byte [eax], 0
je 0x4f5bad
lea eax, [ebp - 0x20]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x2c]
push eax
push 0x4f5d70
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov byte [ebp - 0x15], 0
test byte [ebp - 8], 8
je 0x4f5bbb
mov byte [ebp - 0x15], 1
test byte [ebp - 7], 1
je 0x4f5bfe
mov eax, 0x32
call fcn.0056e268
cmp byte [ebp - 0x15], 1
cmc
sbb eax, eax
push eax
push 0
call sub.kernel32.dll_SetSystemPowerState
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x14
call sub.kernel32.dll_Sleep_1
mov eax, 0x14
call fcn.0056e268
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 6
jne 0x4f5bdf
jmp 0x4f5d6a
test byte [ebp - 7], 2
je 0x4f5c41
mov eax, 0x32
call fcn.0056e268
cmp byte [ebp - 0x15], 1
cmc
sbb eax, eax
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_SetSystemPowerState
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x14
call sub.kernel32.dll_Sleep_1
mov eax, 0x14
call fcn.0056e268
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 6
jne 0x4f5c22
jmp 0x4f5d6a
test byte [ebp - 7], 4
je 0x4f5c62
push 1
push 0xf170
push 0x112
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4f5d6a
test byte [ebp - 7], 8
je 0x4f5c83
push 2
push 0xf170
push 0x112
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4f5d6a
test byte [ebp - 7], 0x10
je 0x4f5cbf
push 0xffffffffffffffff
push 0xf170
push 0x112
push 0xffff
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 4]
cmp dword [eax + 0x954], 0
je 0x4f5d6a
push 2
mov eax, dword [ebp - 4]
call dword [eax + 0x954]
jmp 0x4f5d6a
test byte [ebp - 7], 0x20
je 0x4f5ce0
push 0
push 0xf140
push 0x112
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4f5d6a
test byte [ebp - 7], 0x40
je 0x4f5d0c
cmp dword [ebp - 0xc], 0
je 0x4f5cf3
mov dword [ebp - 0xc], 1
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x80cc
mov eax, dword [ebp - 4]
call fcn.0045ff94
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x4f5d1e
mov dword [ebp - 8], 0x10
cmp byte [ebp - 0x15], 0
je 0x4f5d28
or dword [ebp - 0x14], 4
test byte [ebp - 8], 0x10
je 0x4f5d32
or dword [ebp - 0x14], 9
test byte [ebp - 8], 0x20
je 0x4f5d3c
or dword [ebp - 0x14], 1
test byte [ebp - 8], 0x40
je 0x4f5d46
or dword [ebp - 0x14], 2
test byte [ebp - 8], 0x80
je 0x4f5d50
or dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jle 0x4f5d6a
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x4f5d64
call fcn.00403c14
push eax
call sub.user32.dll_ExitWindowsEx
mov esp, ebp
pop ebp
ret
Function at 0x4f99a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x37e], 0
je 0x4f9ae7
cmp byte [ebp - 5], 0
je 0x4f9ab2
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0053392c
cmp dword [ebp - 0xc], 0
je 0x4f99f8
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4f99f8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f97e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x928], 0
je 0x4f9a0f
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call dword [eax + 0x928]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004ecbe8
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetAsyncKeyState
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x100
jne 0x4f9a1e
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
je 0x4f9a91
mov eax, dword [ebp - 4]
cmp dword [eax + 0x928], 0
je 0x4f9a62
push 0
mov eax, dword [ebp - 4]
call dword [eax + 0x928]
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f9aec
mov eax, dword [ebp - 4]
cmp dword [eax + 0x928], 0
je 0x4f9a88
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call dword [eax + 0x928]
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetAsyncKeyState
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x92
jne 0x4f9a3d
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jne 0x4f9a38
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ecbe8
jmp 0x4f9ae7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x928], 0
je 0x4f9ac9
push 0
mov eax, dword [ebp - 4]
call dword [eax + 0x928]
cmp dword [ebp - 0xc], 0
je 0x4f9ae7
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4f9ae7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f97e8
mov esp, ebp
pop ebp
ret