joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037d70
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbp, rdx
mov rbx, rcx
mov dword [rax + 0x20], 0
mov ecx, 0x10
call fcn.1400ddc18
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140037dbc
mov rdx, rbx
mov rcx, rax
call fcn.1400378e0
mov rsi, rax
jmp 0x140037dbe
xor esi, esi
mov rdi, qword [rsi]
mov qword [rbp], rdi
test rdi, rdi
je 0x140037de7
lea rbx, [rdi + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi]
test rbx, rbx
je 0x140037de7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x140037c90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rbp]
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], edx
test rax, rax
jne 0x140037e9e
mov rcx, qword [rsi]
call fcn.1400379f0
mov rbx, rax
test rax, rax
je 0x140037e5d
mov rcx, rax
call fcn.140037970
mov rcx, rbx
call fcn.1400ddb14
mov rcx, rsi
call fcn.1400ddb14
lea r11, str.bad_exception
mov qword [rsp + 0x30], r11
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400dd81c
lea r11, vtable.std::bad_exception.0
mov qword [rsp + 0x40], r11
lea rdx, [0x1401d8c68]
lea rcx, [rsp + 0x40]
call fcn.1400e0fa4
int3
mov rax, rbp
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038da0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x330
mov qword [rsp + 0x318], 0xfffffffffffffffe
mov r8d, dword [rsp + 0x340]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140038e9c
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140038e8c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x208]
mov qword [rsp + 0x210], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_kill_process
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x218], rcx
mov r8, qword [rsp + 0x218]
lea rdx, str.cannot_kill_process
lea rcx, [rsp + 0x78]
call fcn.1400128b0
nop
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.14003e070
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x28]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.140011d00
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400390a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x320], eax
cmp dword [rsp + 0x320], 5
je 0x140038ec9
cmp dword [rsp + 0x320], 0x490
je 0x140038f69
jmp 0x140039009
lea rax, [rsp + 0x258]
mov qword [rsp + 0x260], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xf0]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_kill_process
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x268], rcx
mov r8, qword [rsp + 0x268]
lea rdx, str.cannot_kill_process
lea rcx, [rsp + 0xf0]
call fcn.1400128b0
nop
xor r8d, r8d
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.14003f420
lea rdx, [0x1401d6c70]
lea rcx, [rsp + 0xa0]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf0]
call fcn.140011d00
nop
lea rax, [rsp + 0x288]
mov qword [rsp + 0x290], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x168]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_kill_process
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x298], rcx
mov r8, qword [rsp + 0x298]
lea rdx, str.cannot_kill_process
lea rcx, [rsp + 0x168]
call fcn.1400128b0
nop
xor r8d, r8d
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x118]
call fcn.14003d800
lea rdx, [0x1401d6c50]
lea rcx, [rsp + 0x118]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x168]
call fcn.140011d00
nop
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x2e0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1e0]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_kill_process
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x2e8], rcx
mov r8, qword [rsp + 0x2e8]
lea rdx, str.cannot_kill_process
lea rcx, [rsp + 0x1e0]
call fcn.1400128b0
nop
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x190]
call fcn.14003e070
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x190]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1e0]
call fcn.140011d00
nop
add rsp, 0x330
pop rdi
ret
Function at 0x140045690
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov qword [rsp + 0x170], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x190]
call fcn.1400455e0
nop
mov rcx, qword [rsp + 0x190]
lea rax, vtable.Poco::PipeImpl.0
mov qword [rcx], rax
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x190]
add rdx, 0x18
mov rcx, qword [rsp + 0x190]
add rcx, 0x10
xor r9d, r9d
lea r8, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400457aa
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.anonymous_pipe
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0xe8], rcx
mov r8, qword [rsp + 0xe8]
lea rdx, str.anonymous_pipe
lea rcx, [rsp + 0x88]
call fcn.1400128b0
nop
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.140041e50
lea rdx, [0x1401d7c98]
lea rcx, [rsp + 0x38]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x88]
call fcn.140011d00
nop
mov rax, qword [rsp + 0x190]
add rsp, 0x180
pop rdi
ret

Function at 0x1400599e0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xe0]
call fcn.14005a5a0
mov r11d, dword [rsp + 0xf0]
mov dword [rsp + 0x58], r11d
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xe8]
call fcn.140043d00
cmp qword [rsp + 0x50], 8
jb 0x140059a5f
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xc0], rax
jmp 0x140059a6c
lea rax, [rsp + 0x38]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140059abb
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.14005b100
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.1400010c0
add rsp, 0xd8
ret
Function at 0x140059ae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x1a0]
call fcn.14005a5a0
mov dword [rsp + 0x5c], 4
lea rax, [rsp + 0xe4]
mov qword [rsp + 0xe8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1a8]
call fcn.140043d00
cmp qword [rsp + 0x50], 8
jb 0x140059b5b
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x170], rax
jmp 0x140059b68
lea rax, [rsp + 0x38]
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140059ba9
cmp dword [rsp + 0x58], 4
je 0x140059c18
mov r8, qword [rsp + 0x1a8]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x1a0]
call fcn.14005ac00
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x180], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x68]
call fcn.14003d800
lea rdx, [0x1401d6c50]
lea rcx, [rsp + 0x68]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb8]
call fcn.140011d00
nop
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0xe0], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.1400010c0
mov eax, dword [rsp + 0xe0]
add rsp, 0x198
ret

Function at 0x140059c50
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov qword [rsp + 0x148], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x180]
call fcn.14005a5a0
lea r11, [rsp + 0xc0]
mov qword [rsp + 0xc8], r11
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x188]
call fcn.140043d00
cmp qword [rsp + 0x40], 8
jb 0x140059cc3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x150], rax
jmp 0x140059cd0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140059d5d
mov r8, qword [rsp + 0x188]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x180]
call fcn.14005ac00
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x48]
call fcn.14003d800
lea rdx, [0x1401d6c50]
lea rcx, [rsp + 0x48]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x98]
call fcn.140011d00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x20]
call fcn.1400010c0
add rsp, 0x178
ret
Function at 0x140059d80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x290], 0xfffffffffffffffe
lea rax, [rsp + 0x178]
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x48]
call fcn.140020500
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400203b0
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x2d0]
call fcn.14005b1d0
mov rcx, qword [rsp + 0x2d0]
call fcn.14005a8e0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x188], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x78]
call fcn.140063d30
jmp 0x140059e18
lea rcx, [rsp + 0x78]
call fcn.1400396e0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x190], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0xf0]
call fcn.140063d30
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x78]
call fcn.14006d010
movzx eax, al
test eax, eax
jne 0x140059e65
mov dword [rsp + 0x298], 1
jmp 0x140059e70
mov dword [rsp + 0x298], 0
movzx eax, byte [rsp + 0x298]
test eax, eax
je 0x140059f7b
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140011d00
mov rdx, qword [rsp + 0x2d0]
add rdx, 8
mov r9, qword [0x14019e5a0]
xor r8d, r8d
lea rcx, [rsp + 0x88]
call fcn.140011b30
nop
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [0x140185e4c]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x198], rcx
mov r8, qword [rsp + 0x198]
lea rdx, [0x140185e4c]
lea rcx, [rsp + 0x88]
call fcn.14002d980
lea rcx, [rsp + 0x78]
call fcn.140134aa0
mov qword [rsp + 0x1a0], rax
mov r9, qword [0x14019e5a0]
xor r8d, r8d
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x88]
call fcn.14002de50
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x2d0]
mov rdx, qword [rdx]
lea rcx, [rsp + 0xb0]
call fcn.140058ee0
nop
lea rcx, [rsp + 0xb0]
call fcn.140059d80
nop
lea rcx, [rsp + 0xb0]
call fcn.140058f90
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x88]
call fcn.140011d00
jmp 0x140059e0e
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400010c0
nop
mov rcx, qword [rsp + 0x2d0]
add rcx, 8
lea rdx, [rsp + 0x20]
call fcn.140043d00
cmp qword [rsp + 0x40], 8
jb 0x140059fc8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x2a0], rax
jmp 0x140059fd5
lea rax, [rsp + 0x28]
mov qword [rsp + 0x2a0], rax
mov rdx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x2d0]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14005a05f
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x2d0]
call fcn.14005a920
mov qword [rsp + 0x2a8], rax
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0x2b0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0x100]
call fcn.14003d800
lea rdx, [0x1401d6c50]
lea rcx, [rsp + 0x100]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.140011d00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x20]
call fcn.1400010c0
nop
lea rcx, [rsp + 0x48]
call fcn.140020470
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x288], rax
mov rcx, qword [rsp + 0x288]
call fcn.1400ddb14
add rsp, 0x2c0
pop rdi
ret
Function at 0x14005a3f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov qword [rsp + 0x148], 0xfffffffffffffffe
mov byte [rsp + 0x60], 0
lea rax, [rsp + 0x91]
mov qword [rsp + 0x98], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400010c0
nop
mov rcx, qword [rsp + 0x180]
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.140043d00
cmp qword [rsp + 0x50], 8
jb 0x14005a45f
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x150], rax
jmp 0x14005a46c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a567
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x188]
call fcn.140043d00
cmp qword [rsp + 0x88], 8
jb 0x14005a4ec
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x158], rax
jmp 0x14005a4f9
lea rax, [rsp + 0x70]
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a535
mov dword [rsp + 0x160], 1
jmp 0x14005a540
mov dword [rsp + 0x160], 0
movzx eax, byte [rsp + 0x160]
mov byte [rsp + 0x60], al
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.1400010c0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x90], al
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.1400010c0
mov al, byte [rsp + 0x90]
add rsp, 0x178
ret
Function at 0x14005b1d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x458
mov qword [rsp + 0x440], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x460]
call fcn.14005a5a0
mov dword [rsp + 0x274], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x274]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x460]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14005b27d
jmp 0x14005b3a2
mov dword [rsp + 0x270], 0x100
mov dword [rsp + 0x278], 0
jmp 0x14005b2a6
mov eax, dword [rsp + 0x278]
add eax, 1
mov dword [rsp + 0x278], eax
mov eax, dword [rsp + 0x274]
cmp dword [rsp + 0x278], eax
jae 0x14005b3a2
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x460]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005b392
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
call fcn.140001250
nop
lea rax, [rsp + 0x308]
mov qword [rsp + 0x310], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.140011d00
nop
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x280]
call fcn.1400440e0
lea rdx, [rsp + 0x2a8]
mov rcx, qword [rsp + 0x468]
call fcn.140051c00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2a8]
call fcn.140011d00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x280]
call fcn.1400010c0
mov dword [rsp + 0x270], 0x100
jmp 0x14005b295
add rsp, 0x458
ret
Function at 0x14005b3b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x458
mov qword [rsp + 0x440], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x460]
call fcn.14005a5a0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x460]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14005b44e
jmp 0x14005b570
mov dword [rsp + 0x270], 0x100
mov dword [rsp + 0x274], 0
jmp 0x14005b477
mov eax, dword [rsp + 0x274]
add eax, 1
mov dword [rsp + 0x274], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x274], eax
jae 0x14005b570
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x274]
mov rcx, qword [rsp + 0x460]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005b560
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x278]
call fcn.140001250
nop
lea rax, [rsp + 0x300]
mov qword [rsp + 0x308], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.140011d00
nop
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x278]
call fcn.1400440e0
lea rdx, [rsp + 0x2a0]
mov rcx, qword [rsp + 0x468]
call fcn.140051c00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x2a0]
call fcn.140011d00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x278]
call fcn.1400010c0
mov dword [rsp + 0x270], 0x100
jmp 0x14005b466
add rsp, 0x458
ret
Function at 0x140064d20
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x170]
call fcn.140065550
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140064df6
lea rax, [rsp + 0x98]
mov qword [rsp + 0xa0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_unregister_service
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0xd0], rcx
mov r8, qword [rsp + 0xd0]
lea rdx, str.cannot_unregister_service
lea rcx, [rsp + 0x70]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x170]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x20]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140011d00
nop
add rsp, 0x160
pop rdi
ret

Function at 0x140064e30
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x1a0]
call fcn.140065550
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140064f17
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_query_service_status
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0xf0], rcx
mov r8, qword [rsp + 0xf0]
lea rdx, str.cannot_query_service_status
lea rcx, [rsp + 0x90]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x1a0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x40]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.140011d00
nop
cmp dword [rsp + 0x24], 4
jne 0x140064f2b
mov dword [rsp + 0x180], 1
jmp 0x140064f36
mov dword [rsp + 0x180], 0
mov al, byte [rsp + 0x180]
add rsp, 0x190
pop rdi
ret
Function at 0x140064f50
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x2c0], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x2e0]
call fcn.140065550
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2e0]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140065037
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_start_service
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x1e0], rcx
mov r8, qword [rsp + 0x1e0]
lea rdx, str.cannot_start_service
lea rcx, [rsp + 0x98]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x2e0]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x48]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x48]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x98]
call fcn.140011d00
nop
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0x7530
jge 0x140065089
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x2e0]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140065066
jmp 0x140065089
cmp dword [rsp + 0x2c], 2
je 0x14006506f
jmp 0x140065089
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x20]
add eax, 0xfa
mov dword [rsp + 0x20], eax
jmp 0x14006503f
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x2e0]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140065154
lea rax, [rsp + 0x208]
mov qword [rsp + 0x210], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_query_status_of_starting_service
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x238], rcx
mov r8, qword [rsp + 0x238]
lea rdx, str.cannot_query_status_of_starting_service
lea rcx, [rsp + 0x110]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x2e0]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xc0]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0xc0]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x110]
call fcn.140011d00
jmp 0x140065207
cmp dword [rsp + 0x2c], 4
je 0x140065207
lea rax, [rsp + 0x261]
mov qword [rsp + 0x268], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x188]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.service_failed_to_start_within_a_reasonable_time
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x290], rcx
mov r8, qword [rsp + 0x290]
lea rdx, str.service_failed_to_start_within_a_reasonable_time
lea rcx, [rsp + 0x188]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x2e0]
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x138]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x138]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x188]
call fcn.140011d00
nop
add rsp, 0x2d0
pop rdi
ret