joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e38e0
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 0x1400e3a11
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.1400e37d0
test rax, rax
je 0x1400e3945
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 0x1400e3a11
mov eax, dword [rsp + 0x28]
cmp eax, 0x401
jne 0x1400e397f
mov rcx, qword [rbx - 0x38]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x1400e39f6
cmp eax, 0x402
jne 0x1400e39a2
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 0x1400e39f6
cmp eax, 0x403
jne 0x1400e39e0
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 0x1400e39f6
mov rcx, qword [rbx - 0x38]
xor r9d, r9d
mov edx, VarUI4FromDisp
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400e39f6
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 0x1400e3960
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400e4e80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1402e4780], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400e4edb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e4ecb
lea rdx, [0x14023d088]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1402e4780], 1
mov qword [0x1402e4778], rax
jmp 0x1400e4ee2
mov rax, qword [0x1402e4778]
mov byte [0x1402e4780], 1
jmp 0x1400e4ee2
mov rax, qword [0x1402e4778]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400e4f01
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 0x1400e4f20
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 0x1400e4f60
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 0x1400e4f93
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 0x1400e4fa2
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 0x1400e56f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1402e0068]
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 0x1400e583c
test rcx, rcx
je 0x1400e5765
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 0x1400e583c
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 0x1400e5811
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400e56f0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400e583c
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 0x1400e57c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400e5826
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.1400e4e80
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x1400e5847
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e6720
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e8100
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 [0x1402e0068]
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 0x1400e8178
call fcn.1400e4d90
mov ebx, eax
jmp 0x1400e82ba
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400e819b
call fcn.1400e4d90
mov ebx, eax
jmp 0x1400e82b0
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 0x1400e81c0
call fcn.1400e4d90
mov ebx, eax
jmp 0x1400e82b0
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 0x1400e81f9
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400e81ef
lea rcx, [rsp + 0x70]
call fcn.1400e5670
nop
mov eax, 0x8007000e
jmp 0x1400e82d3
mov ecx, eax
test eax, eax
je 0x1400e8236
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400e822c
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400e8236
lea rcx, [rsp + 0x70]
call fcn.1400e5680
mov rax, qword [rsp + 0x70]
jmp 0x1400e8240
mov ecx, 0x80070057
call fcn.1400e2fd0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400e8258
test rax, rax
jne 0x1400e8264
mov ebx, 0x8007000e
jmp 0x1400e82b0
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 0x1400e828b
call fcn.1400e4d90
mov ebx, eax
jmp 0x1400e82b0
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.1400e77a0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400e82d1
lea rcx, [rsp + 0x70]
call fcn.1400e5670
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401e6720
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x1400e9620
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1402e0068]
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.1401e6750
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400e9683
cmp dword [rsp + 0x24], 6
jb 0x1400e9683
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e6720
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e6720
add rsp, 0x158
ret

Function at 0x1400ea000
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x1fe
call fcn.1401e6750
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 0x1400ea0a5
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 0x1400ea0a5
mov rcx, qword [rsp + 0x30]
jmp 0x1400ea0af
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400ea0b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.minint
lea rcx, [rsp + 0x40]
call fcn.140001410
test rax, rax
setne al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401e6720
add rsp, 0x250
pop rbx
ret
Function at 0x1400ea3a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x1402e0068]
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 0x1400ea3e0
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 [0x14023da20]
mov r8d, 0x104
mov word [rdi + 7], ax
movzx eax, byte [0x14023da22]
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 [0x14023d828]
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.1401e6750
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 0x1400ea509
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400ea4dd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400ea4ed
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 0x1400ea50e
mov eax, 9
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1401e6720
mov rbx, qword [rsp + 0x318]
add rsp, 0x300
pop rdi
ret
Function at 0x1400f2440
Capabilities:
Lock the desktop

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
add rcx, 0x150
mov edi, r9d
call fcn.1400fde30
cmp dword [rbx + 0xf0], 0x8b
je 0x1400f247b
lea rcx, [rbx - 0x58]
mov r8d, edi
mov edx, 0xefdb
call fcn.1400f13c0
mov rcx, qword [0x1402e4810]
test rcx, rcx
je 0x1400f24b1
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400f24a6
test byte [rbx + 0x258], 2
je 0x1400f24a6
call qword [sym.imp.USER32.dll_LockWorkStation]
mov rcx, qword [0x1402e4810]
mov rax, qword [rcx + 0x10]
add rcx, 0x10
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rbx + 0x268], 0
jne 0x1400f24ec
cmp dword [rbx + 0xf0], 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 + 0x268], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f2e90
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 0x1400f2fb9
lea ecx, [r8 + 4]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1400f2fb9
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test eax, eax
jle 0x1400f2fb9
lea ecx, [rax + 0xa]
movsxd rdx, ecx
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401e74e4
mov rsi, rax
test rax, rax
je 0x1400f2fb9
lea r8d, [rdi + 4]
mov rdx, rax
mov rcx, qword [rbx + 0x1f8]
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.140001a20
mov rdi, rax
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.1400efcc0
nop
test rdi, rdi
je 0x1400f2f63
mov rcx, rdi
call fcn.1401e64f8
mov rcx, rsi
call fcn.1401e6538
lea rdx, [0x14023ce88]
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r9d, 0xa000a
xor r8d, r8d
mov edx, 0x201
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0xa000a
xor r8d, r8d
mov edx, 0x202
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x1400f2fc4
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 0x1400fb400
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
add r8, 0xffffffffffffffdf
mov rbx, rcx
cmp r8, 0x57
ja case.0x1400fb431.35
lea rcx, [0x140000000]
movzx eax, byte [rcx + r8 + 0xfb51c]
mov edx, dword [rcx + rax*4 + 0xfb4f8]
add rdx, rcx
jmp rdx
xor r8d, r8d
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
jmp 0x1400fb4e2
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r8d, 1
jmp 0x1400fb4e2
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r8d, 2
jmp 0x1400fb4e2
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r8d, 3
jmp 0x1400fb4e2
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x1400fb431.35
mov r8d, 0xe12a
jmp 0x1400fb4dd
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr ax, 8
test al, al
jns case.0x1400fb431.35
mov r8d, 0xe122
jmp 0x1400fb4dd
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x1400fb431.35
mov r8d, 0xe123
jmp 0x1400fb4dd
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x1400fb431.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 0x1400fe540
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 0x1400fe659
je 0x1400fe5ab
sub r9d, 0xa6
je 0x1400fe59c
cmp r9d, 1
jne 0x1400fe686
mov edx, r9d
mov rcx, rsi
call fcn.1400fe110
jmp 0x1400fe7bb
xor edx, edx
mov rcx, rsi
call fcn.1400fe110
jmp 0x1400fe7bb
mov r12, qword [0x1402e4a90]
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.1401e74e4
mov rbp, rax
test rax, rax
je 0x1400fe619
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 0x1400fe611
mov rcx, rbp
call fcn.1401e6538
add edi, edi
mov rbp, rbx
cmp edi, 0x19000
jl 0x1400fe5c0
jmp 0x1400fe619
mov rdx, rbp
test rbp, rbp
jne 0x1400fe620
lea rdx, [0x14023ce88]
mov rcx, qword [rsi + 8]
lea r8, [0x14023d620]
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test rbp, rbp
je 0x1400fe64a
mov rcx, rbp
call fcn.1401e6538
test bl, bl
je 0x1400fe7bb
xor edx, edx
jmp 0x1400fe7b3
sub r9d, 0xe121
je 0x1400fe702
sub r9d, 1
je 0x1400fe6e1
sub r9d, 1
je 0x1400fe7bb
sub r9d, 2
je 0x1400fe7bb
cmp r9d, 5
je 0x1400fe68f
xor ebx, ebx
mov dword [rcx], ebx
jmp 0x1400fe7bb
mov rcx, qword [rsi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_GetScrollPos]
xor ebx, ebx
cmp qword [rsi + 0xc0], rbx
jbe 0x1400fe6cc
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 0x1400fe6b0
mov rcx, qword [rsi + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1400fe7bb
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.1400fe410
jmp 0x1400fe7bb
mov r12, qword [0x1402e4a90]
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.1401e74e4
mov rbp, rax
test rax, rax
je 0x1400fe779
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 0x1400fe771
mov rcx, rbp
call fcn.1401e6538
add edi, edi
mov rbp, rbx
cmp edi, 0x19000
jl 0x1400fe720
jmp 0x1400fe779
mov rdx, rbp
test rbp, rbp
jne 0x1400fe780
lea rdx, [0x14023ce88]
mov rcx, qword [rsi + 8]
lea r8, [0x14023d620]
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test rbp, rbp
je 0x1400fe7aa
mov rcx, rbp
call fcn.1401e6538
test bl, bl
je 0x1400fe7bb
mov edx, 1
mov rcx, rsi
call fcn.1400fd370
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 0x1401008a0
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 0x14010092c
lea rdx, [0x14023d620]
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 0x14010091e
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 0x140100982
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 0x140100990
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 0x140100a50
lea rdx, [0x14023d620]
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 0x140100a42
cmp esi, 0x81
jne 0x1401009fc
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
jmp 0x140100a0e
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 0x140100a39
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.1400045f0
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
Function at 0x140100e70
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [0x1402e47f8]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140100ea7
call rcx
mov edi, eax
jmp 0x140100ea9
mov edi, ebx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.1401e6750
cmp edi, 0xffffffff
je 0x140100f3a
cmp edi, dword [0x1402dc260]
je 0x140100f3a
lea rdx, str.GlobalGotoHTTP__u
lea rcx, [rsp + 0x30]
mov r8d, edi
mov dword [0x1402dc260], edi
call fcn.1401e7114
lea rdx, [rsp + 0x30]
mov ecx, edi
mov dword [0x1402e4804], ebx
call fcn.140100b20
test rax, rax
je 0x140100f09
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140100f3a
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x140100f3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.creating_ui_process_error__err_u
lea rdx, str..Service.cpp
mov r8d, 0x426
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045f0
mov eax, dword [0x1402e4804]
inc eax
mov dword [0x1402e4804], eax
cmp eax, 5
jne 0x140100fff
mov qword [rsp + 0x260], rsi
mov dword [0x1402e4804], ebx
cmp word [rsp + 0x30], bx
jne 0x140100f7a
lea rdx, str.GlobalGotoHTTP__u
lea rcx, [rsp + 0x30]
mov r8d, edi
call fcn.1401e7114
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x140100ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xb7
je 0x140100ff7
lea rdx, [rsp + 0x30]
mov ecx, edi
call fcn.140100b20
test rax, rax
je 0x140100fc6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140100ff7
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x140100ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.creating_ui_process_error__err_u
lea rdx, str..Service.cpp
mov r8d, 0x43e
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045f0
mov rsi, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401e6720
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret