joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400df1d0
Capabilities:
Lock the desktop

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
cmp r8, 2
jne 0x1400df251
mov qword [rsp + 0x50], 0
lea r8, str.__dlg_scut__nscreen_.active_.click___set_status_Remote_has_cancelled_blank_screen__1_
mov edx, 0x25
lea rcx, [rsp + 0x50]
call fcn.1400dea40
nop
mov rbx, qword [rsp + 0x50]
mov r8, rbx
mov edx, dword [rdi + 0x48]
mov rcx, qword [0x1402e2a80]
call fcn.1400de9a0
nop
test rbx, rbx
je 0x1400df233
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [0x1402e2a80]
test byte [rax + 0x2b8], 2
je 0x1400df24d
call qword [sym.imp.USER32.dll_LockWorkStation]
xor eax, eax
jmp 0x1400df253
xor eax, eax
jmp 0x1400df253
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400df370
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rcx, str.Winlogon
mov r9d, 0x10000000
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_OpenDesktopW]
mov rdi, rax
test rax, rax
je 0x1400df4a1
mov rcx, rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CloseDesktop]
lea rcx, [rbx - 0x40]
xor r8d, r8d
xor edx, edx
call fcn.1400df260
test rax, rax
je 0x1400df3d5
mov rcx, qword [rbx - 0x38]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400df4a1
mov eax, dword [rsp + 0x28]
cmp eax, 0x401
jne 0x1400df40f
mov rcx, qword [rbx - 0x38]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x1400df486
cmp eax, 0x402
jne 0x1400df432
mov rcx, qword [rbx - 0x38]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx - 0x38]
call qword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x1400df486
cmp eax, 0x403
jne 0x1400df470
mov rax, qword [rsp + 0x38]
mov rcx, qword [rbx - 0x38]
neg rax
sbb edx, edx
and edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
cmp qword [rsp + 0x38], 0
je 0x1400df486
mov rcx, qword [rbx - 0x38]
xor r9d, r9d
mov edx, VarUI4FromDisp
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400df486
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400df3f0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400e08e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1402e2b00], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400e093b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e092b
lea rdx, [0x14023a1c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1402e2b00], 1
mov qword [0x1402e2af8], rax
jmp 0x1400e0942
mov rax, qword [0x1402e2af8]
mov byte [0x1402e2b00], 1
jmp 0x1400e0942
mov rax, qword [0x1402e2af8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400e0961
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]

Function at 0x1400e0980
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1400e09c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x1400e09f3
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rbx, [rbx + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x1400e0a02
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1400e1150
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400e129c
test rcx, rcx
je 0x1400e11c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x1400e129c
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400e1271
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400e1150
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400e129c
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400e1220
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400e1286
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.1400e08e0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x1400e12a7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e3b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400e3bf8
call fcn.1400e07f0
mov ebx, eax
jmp 0x1400e3d3a
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400e3c1b
call fcn.1400e07f0
mov ebx, eax
jmp 0x1400e3d30
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400e3c40
call fcn.1400e07f0
mov ebx, eax
jmp 0x1400e3d30
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400e3c79
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400e3c6f
lea rcx, [rsp + 0x70]
call fcn.1400e10d0
nop
mov eax, 0x8007000e
jmp 0x1400e3d53
mov ecx, eax
test eax, eax
je 0x1400e3cb6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400e3cac
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400e3cb6
lea rcx, [rsp + 0x70]
call fcn.1400e10e0
mov rax, qword [rsp + 0x70]
jmp 0x1400e3cc0
mov ecx, 0x80070057
call fcn.1400de530
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400e3cd8
test rax, rax
jne 0x1400e3ce4
mov ebx, 0x8007000e
jmp 0x1400e3d30
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400e3d0b
call fcn.1400e07f0
mov ebx, eax
jmp 0x1400e3d30
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400e3220
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400e3d51
lea rcx, [rsp + 0x70]
call fcn.1400e10d0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x1400e50a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, VarUI4FromDisp
mov dword [rsp + 0x20], VarUI4FromDisp
call fcn.1401e42d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400e5103
cmp dword [rsp + 0x24], 6
jb 0x1400e5103
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x158
ret

Function at 0x1400e5b40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x1fe
call fcn.1401e42d0
lea rax, [rsp + 0x30]
xor ebx, ebx
lea rdx, str.SYSTEMCurrentControlSetControl
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x40], bx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e5be5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.SystemStartOptions
xor r8d, r8d
mov dword [rsp + 0x38], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e5be5
mov rcx, qword [rsp + 0x30]
jmp 0x1400e5bef
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400e5bf5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.minint
lea rcx, [rsp + 0x40]
call fcn.1400013c0
test rax, rax
setne al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x250
pop rbx
ret
Function at 0x1400e5ee0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rcx
lea rcx, [rsp + 0xe1]
mov byte [rsp + 0xe0], 0x22
sub rcx, rdx
nop word [rax + rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x1400e5f20
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xe0]
repne scasb al, byte [rdi]
mov rax, qword [str.__update__]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
movzx eax, word [0x14023ab60]
mov r8d, 0x104
mov word [rdi + 7], ax
movzx eax, byte [0x14023ab62]
mov byte [rdi + 9], al
xor eax, eax
lea rdi, [rsp + 0xe0]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rsp + rcx + 0xdf]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xe0]
xor edx, edx
repne scasb al, byte [rdi]
movzx eax, word [0x14023a968]
lea rcx, [rsp + 0x70]
mov word [rdi - 1], ax
xor eax, eax
lea r8d, [rax + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.1401e42d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400e6049
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e601d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400e602d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov edx, VarUI4FromDisp
mov r8d, 0x66800f
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x1400e604e
mov eax, 9
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0x318]
add rsp, 0x300
pop rdi
ret
Function at 0x1400ee0a0
Capabilities:
Lock the desktop

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
add rcx, 0x158
mov edi, r9d
call fcn.1400f9d70
cmp dword [rbx + 0xf8], 0x8b
je 0x1400ee0db
lea rcx, [rbx - 0x58]
mov r8d, edi
mov edx, 0xefdb
call fcn.1400ed020
mov rcx, qword [0x1402e2bb8]
test rcx, rcx
je 0x1400ee111
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400ee106
test byte [rbx + 0x260], 2
je 0x1400ee106
call qword [sym.imp.USER32.dll_LockWorkStation]
mov rcx, qword [0x1402e2bb8]
mov rax, qword [rcx + 0x10]
add rcx, 0x10
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rbx + 0x270], 0
jne 0x1400ee14c
cmp dword [rbx + 0xf8], 0x8b
mov rcx, qword [rbx - 0x50]
mov eax, 0x3e8
mov r8d, 0xbb8
cmove r8d, eax
xor r9d, r9d
lea edx, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [rbx + 0x270], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400eeaf0
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rcx
cmp r8, 0xd
jne 0x1400eec19
lea ecx, [r8 + 4]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1400eec19
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test eax, eax
jle 0x1400eec19
lea ecx, [rax + 0xa]
movsxd rdx, ecx
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401e3608
mov rsi, rax
test rax, rax
je 0x1400eec19
lea r8d, [rdi + 4]
mov rdx, rax
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rcx, eax
xor edx, edx
mov word [rsi + rcx*2], dx
mov dword [rsp + 0x30], 1
mov rcx, rsi
call fcn.1400019d0
mov rdi, rax
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.1400eb920
nop
test rdi, rdi
je 0x1400eebc3
mov rcx, rdi
call fcn.1401e36c8
mov rcx, rsi
call fcn.1401e3600
lea rdx, [0x140239da0]
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r9d, 0xa000a
xor r8d, r8d
mov edx, 0x201
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0xa000a
xor r8d, r8d
mov edx, 0x202
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x1400eec24
xor edx, edx
mov rax, qword [rsp + 0x70]
mov dword [rax], edx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f7340
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
add r8, 0xffffffffffffffdf
mov rbx, rcx
cmp r8, 0x57
ja case.0x1400f7371.35
lea rcx, [0x140000000]
movzx eax, byte [rcx + r8 + 0xf745c]
mov edx, dword [rcx + rax*4 + 0xf7438]
add rdx, rcx
jmp rdx
xor r8d, r8d
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
jmp 0x1400f7422
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r8d, 1
jmp 0x1400f7422
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r8d, 2
jmp 0x1400f7422
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r8d, 3
jmp 0x1400f7422
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x1400f7371.35
mov r8d, 0xe12a
jmp 0x1400f741d
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr ax, 8
test al, al
jns case.0x1400f7371.35
mov r8d, 0xe122
jmp 0x1400f741d
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x1400f7371.35
mov r8d, 0xe123
jmp 0x1400f741d
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x1400f7371.35
mov r8d, 0xe125
mov edx, VarUI4FromDisp
mov rcx, qword [rbx + 8]
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400fa480
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rsp + 0x60]
movzx r9d, r8w
cmp r9d, 0xe120
mov dword [rcx], 1
jg 0x1400fa599
je 0x1400fa4eb
sub r9d, 0xa6
je 0x1400fa4dc
cmp r9d, 1
jne 0x1400fa5c6
mov edx, r9d
mov rcx, rsi
call fcn.1400fa050
jmp 0x1400fa6fb
xor edx, edx
mov rcx, rsi
call fcn.1400fa050
jmp 0x1400fa6fb
mov r12, qword [0x1402e2df0]
or r13, 0xffffffffffffffff
mov edi, 0x80
xor ebx, ebx
nop dword [rax]
movsxd rcx, edi
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1401e3608
mov rbp, rax
test rax, rax
je 0x1400fa559
mov r9d, edi
mov r8, rax
mov edx, 0xa2
mov rcx, r12
call qword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [rdi - 1]
cmp eax, ecx
jl 0x1400fa551
mov rcx, rbp
call fcn.1401e3600
add edi, edi
mov rbp, rbx
cmp edi, 0x19000
jl 0x1400fa500
jmp 0x1400fa559
mov rdx, rbp
test rbp, rbp
jne 0x1400fa560
lea rdx, [0x140239da0]
mov rcx, qword [rsi + 8]
lea r8, [0x14023a760]
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test rbp, rbp
je 0x1400fa58a
mov rcx, rbp
call fcn.1401e3600
test bl, bl
je 0x1400fa6fb
xor edx, edx
jmp 0x1400fa6f3
sub r9d, 0xe121
je 0x1400fa642
sub r9d, 1
je 0x1400fa621
sub r9d, 1
je 0x1400fa6fb
sub r9d, 2
je 0x1400fa6fb
cmp r9d, 5
je 0x1400fa5cf
xor ebx, ebx
mov dword [rcx], ebx
jmp 0x1400fa6fb
mov rcx, qword [rsi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_GetScrollPos]
xor ebx, ebx
cmp qword [rsi + 0xc0], rbx
jbe 0x1400fa60c
nop dword [rax]
mov rax, qword [rsi + 0xb0]
inc rbx
mov rcx, qword [rax + rbx*8 - 8]
or dword [rcx + 0x10], 1
cmp rbx, qword [rsi + 0xc0]
jb 0x1400fa5f0
mov rcx, qword [rsi + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1400fa6fb
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, rsi
mov dx, ax
shr edx, 0xf
and edx, 1
call fcn.1400fa350
jmp 0x1400fa6fb
mov r12, qword [0x1402e2df0]
or r13, 0xffffffffffffffff
mov edi, 0x80
xor ebx, ebx
nop word [rax + rax]
movsxd rcx, edi
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1401e3608
mov rbp, rax
test rax, rax
je 0x1400fa6b9
mov r9d, edi
mov r8, rax
mov edx, 0xa3
mov rcx, r12
call qword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [rdi - 1]
cmp eax, ecx
jl 0x1400fa6b1
mov rcx, rbp
call fcn.1401e3600
add edi, edi
mov rbp, rbx
cmp edi, 0x19000
jl 0x1400fa660
jmp 0x1400fa6b9
mov rdx, rbp
test rbp, rbp
jne 0x1400fa6c0
lea rdx, [0x140239da0]
mov rcx, qword [rsi + 8]
lea r8, [0x14023a760]
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test rbp, rbp
je 0x1400fa6ea
mov rcx, rbp
call fcn.1401e3600
test bl, bl
je 0x1400fa6fb
mov edx, 1
mov rcx, rsi
call fcn.1400f92b0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400fc690
Capabilities:
Delete registry value
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x78], rdi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400fc71c
lea rdx, [0x14023a760]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400fc70e
mov qword [rsp + 0x68], rbp
mov ebp, 1
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x78]
test eax, eax
jne 0x1400fc772
mov rcx, qword [rsp + 0x60]
lea rdx, str.SoftwareSASGeneration
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1400fc780
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x50
mov esi, ecx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400fc840
lea rdx, [0x14023a760]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400fc832
cmp esi, 0x81
jne 0x1400fc7ec
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
jmp 0x1400fc7fe
lea r8, [rsp + 0x30]
mov edx, esi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x1400fc829
lea r9, str.ControlService_OK._code___u
lea rdx, str..Service.cpp
mov r8d, 0xc1
mov ecx, 1
mov dword [rsp + 0x20], esi
call fcn.1400045a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret