joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a7f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x1400bb63c], 0
je 0x14003a81a
mov eax, dword [0x1400bb640]
jmp 0x14003a91e
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x1400bb640]
test eax, eax
jne 0x14003a886
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003a886
cmp dword [rbp + 0x10], ebx
je 0x14003a8f5
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14003a89a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003a8fd
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003a8fd
cmp dword [rbp + 0x10], ebx
jne 0x14003a8fd
mov ebx, dword [0x1400bb640]
jmp 0x14003a906
and dword [0x1400bb640], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x1400bb63c], 1
test rcx, rcx
je 0x14003a91c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x14003a930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003a9fd
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003a9ee
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003a9ee
cmp dword [rbp + 0x18], 4
jne 0x14003a9ee
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14003a9ee
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14003a9ff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003a9ff
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14003a9fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14003aa0e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14003b460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14003b4f1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14003b4f1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b4f1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14003b4d5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14003b4cf
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14003b4d7
add rdx, 0x28
jmp 0x14003b4b4
xor edx, edx
test rdx, rdx
jne 0x14003b4e0
xor al, al
jmp 0x14003b4f7
test dword [rdx + 0x24], 0x80000000
je 0x14003b4ed
xor al, al
jmp 0x14003b4f7
mov al, 1
jmp 0x14003b4f7
xor al, al
jmp 0x14003b4f7
add rsp, 0x18
ret

Function at 0x14003bc94
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400413d8
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x340], rax
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, r8
mov r14, qword [rbp + 0x3a0]
mov rsi, rdx
mov rbx, rcx
mov byte [rsp + 0x30], r9b
je 0x140041429
xor edx, edx
call fcn.140041d58
test al, al
je 0x140041516
lea rax, [rsp + 0x30]
mov r9, rdi
mov r8, rsi
mov qword [rsp + 0x20], rax
lea rdx, str.ShellExec:__s__s_admin_d
mov ecx, 3
call fcn.1400405bc
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x70]
call sub.VCRUNTIME140.dll_memset
mov al, byte [rsp + 0x30]
lea rdx, str.runas
neg al
mov dword [rsp + 0x40], 0x70
mov qword [rsp + 0x48], r14
sbb rcx, rcx
and rcx, rdx
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0x50], rcx
jb 0x14004148b
mov rax, qword [rsi]
jmp 0x14004148e
mov rax, rsi
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x58], rax
jb 0x14004149f
mov rax, qword [rdi]
jmp 0x1400414a2
mov rax, rdi
neg byte [rbp + 0x3a8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rax
sbb eax, eax
mov dword [rsp + 0x44], 0x340
and eax, 0xf8000001
add eax, 0x8000000
mov dword [rsp + 0x70], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400414e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x10], eax
cmp eax, 0x4c7
jne 0x14004153c
xor al, al
jmp 0x1400414f9
mov rax, qword [rbp - 0x58]
mov qword [rbx + 8], rax
mov al, 1
mov dword [rbx + 0x10], 0x103
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14003a6d0
add rsp, 0x450
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, str.Attempting_to_start_a_new_process_when_the_process_has_already_been_started
mov edx, 0x43
lea rcx, [rbp - 0x50]
call fcn.14003f89c
lea rdx, [0x14008f3c8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rsp + 0x28], rdi
lea r9, str.Failed_to_runas_admin_for_file:__s_arguments:__s
mov r8d, eax
mov qword [rsp + 0x20], rsi
mov edx, 0xf
lea rcx, [rbp - 0x50]
call fcn.14003f494
lea rdx, [0x14008f3c8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140046378
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0xa58]
sub rsp, 0xb40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0xa30], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
cmp qword [rdx + 0x10], rsi
sete al
test al, al
je 0x1400463e1
lea r8, str.ORegistryKey.DeleteSubKeyTree_failure:_Empty_key_path
lea edx, [rsi + 0x1d]
lea rcx, [rbp - 0x80]
call fcn.14003d2d4
lea rdx, [0x14008f3c8]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp qword [rdx + 0x10], 0xff
jbe 0x14004641a
mov r9, rdx
lea r8, str.ORegistryKey.DeleteSubKeyTree_failure:_The_subkey_name___s__is_too_long
mov edx, 0x1d
lea rcx, [rbp + 0x310]
call fcn.140045b50
lea rdx, [0x14008f3c8]
lea rcx, [rbp + 0x310]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, vtable.RefCounted.0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], esi
lea rax, vtable.ORegistryKey.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x78], 1
mov dword [rsp + 0x7c], 0x85
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, rdx
lea rdx, [rsp + 0x40]
call fcn.1400180b4
test al, al
je 0x1400464cd
cmp qword [rbx + 0x18], 8
jb 0x14004647f
mov rdx, qword [rbx]
jmp 0x140046482
mov rdx, rbx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1400464cd
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.DeleteSubKeyTree_failure:_Cannot_delete_Registry_Key__s_s.
mov r8d, eax
mov edx, 0xf
lea rcx, [rbp + 0x6a0]
call fcn.140045bf0
lea rdx, [0x14008f3c8]
lea rcx, [rbp + 0x6a0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.1400034c0
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140046500
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rcx
mov bl, r8b
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140046572
cmp qword [rdx + 0x10], 0
jne 0x140046539
test bl, bl
jne 0x14004659a
cmp qword [rdx + 0x18], 8
jb 0x140046543
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140046551
test bl, bl
jne 0x1400465c6
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
lea r8, str.ORegistryKey.DeleteValue_failure:_The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x30]
call fcn.140045ac8
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, [rdi + 0x10]
mov edx, 0x1d
lea r8, str.ORegistryKey.DeleteValue_failure:_Cannot_delete_registry_value_from_Registry_Key__s._The_Registry_value_is_null
lea rcx, [rsp + 0x30]
call fcn.140046104
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.DeleteValue_failure:_Cannot_delete_registry_value_from_Registry_Key__s.
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.140045e20
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400465fc
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14004666e
lea r8, str.ORegistryKey.GetSubKeyNames_failure:_Cannot_get_all_sub_key_names._The_registry_is_closed_or_not_set
lea edx, [r12 + 0x3a]
lea rcx, [rsp + 0x70]
call fcn.140046080
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140046ba0
mov esi, eax
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x68], 7
mov rcx, r12
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], r12w
mov r15, qword [rdi + 8]
mov rbx, qword [rdi]
cmp rbx, r15
je 0x1400466b8
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140004d54
add rbx, 0x20
cmp rbx, r15
jne 0x14004669d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x1400467d1
mov ebx, 0xff
dec esi
mov dword [rsp + 0x40], 0x100
cmp rcx, rbx
jb 0x1400466fb
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + 0x1fe], r12w
jmp 0x14004670e
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140005044
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r8d, eax
test eax, eax
jne 0x1400467a0
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x140046773
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + rdx*2], r12w
jmp 0x140046785
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140005044
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400390f0
test esi, esi
je 0x1400467d1
mov rcx, qword [rsp + 0x60]
jmp 0x1400466cc
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetSubKeyNames_failure:_Cannot_get_all_sub_key_names__for_registry__s
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.140045d68
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140004d54
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14003a6d0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14004680c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14004687e
lea r8, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names._The_registry_is_closed_or_not_set
lea edx, [r12 + 0x3a]
lea rcx, [rsp + 0x70]
call fcn.140045f5c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140046c8c
mov esi, eax
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x68], 7
mov rcx, r12
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], r12w
mov r15, qword [rdi + 8]
mov rbx, qword [rdi]
cmp rbx, r15
je 0x1400468c8
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140004d54
add rbx, 0x20
cmp rbx, r15
jne 0x1400468ad
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x1400469e1
mov ebx, 0x3fff
dec esi
mov dword [rsp + 0x40], 0x4000
cmp rcx, rbx
jb 0x14004690b
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + 0x7ffe], r12w
jmp 0x14004691e
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140005044
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r8d, eax
test eax, eax
jne 0x1400469b0
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x140046983
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + rdx*2], r12w
jmp 0x140046995
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140005044
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400390f0
test esi, esi
je 0x1400469e1
mov rcx, qword [rsp + 0x60]
jmp 0x1400468dc
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names_for_registry__s
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14004213c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140004d54
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14003a6d0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140046a1c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x30], rsi
je 0x140046add
cmp qword [rdx + 0x10], 0x3fff
ja 0x140046b05
mov rcx, qword [r8 + 8]
mov eax, 0xffffffff
sub rcx, qword [r8]
cmp rcx, rax
ja 0x140046b31
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, qword [r8]
cmp qword [rbx + 0x18], 8
jb 0x140046a91
mov rax, qword [rbx]
jmp 0x140046a94
mov rax, rbx
mov dword [rsp + 0x28], ecx
mov r9d, 3
mov rcx, qword [rdi + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140046b64
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x408]
add rsp, 0x3d0
pop rdi
pop rsi
pop rbp
ret
lea r8, str.ORegistryKey.SetValue_failure:_Registry_key_is_not_initialized
mov edx, 0x3a
lea rcx, [rsp + 0x30]
call fcn.14003d70c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, [rcx + 0x10]
mov edx, 0x1d
lea rcx, [rsp + 0x30]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_binary_into_registry_key__s._The_value_name_is_too_long
call fcn.140045fe0
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x14008f3c8]
mov dword [rsp + 0x30], 0x5d
lea rcx, [rsp + 0x30]
mov dword [rbp + 0x134], esi
mov word [rbp + 0x238], si
mov word [rbp + 0x138], si
mov word [rsp + 0x34], si
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x28], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_binary___s__reg_value__s.
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov edx, 0xf
call fcn.140045a08
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140047a90
Capabilities:
Query service status

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x30]
and dword [rsp + 0x30], 0
mov r8, rdx
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0x24
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140047ae9
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14003a6d0
add rsp, 0x3e8
ret
lea r8, str.Failed_to_query_service_Status
mov edx, 0x74
lea rcx, [rsp + 0x40]
call fcn.140005d64
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140047b14
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x38], eax
test eax, eax
jne 0x140047b5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov ecx, 2
cmp eax, 0x420
jne 0x140047b6b
lea rdx, str.OService::StartService___Service_instance_already_running
call fcn.1400473e0
cmp byte [rdi + 0x28], 0
je 0x140047bba
mov rbx, qword [rdi + 0x18]
jmp 0x140047b91
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.OService::StartService___Failed_to_Start_Service_:_ret___d_:_errCode___d
call fcn.140047598
xor al, al
jmp 0x140047bbc
add rbx, 0xffffffffffffffd0
mov rcx, rbx
call fcn.140047b14
cmp rbx, qword [rdi + 0x10]
jne 0x140047b85
mov rsi, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
jmp 0x140047bad
mov rcx, rbx
call fcn.140047978
add rbx, 0x30
cmp rbx, rsi
jne 0x140047ba1
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140047c04
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov r15d, r8d
lea rdx, [rbp - 0x58]
mov rsi, rcx
call fcn.140047a90
mov eax, dword [rbp - 0x54]
xor edi, edi
mov byte [r14], dil
cmp eax, 1
je 0x140047d23
mov ebx, dword [rbp - 0x40]
cmp byte [rsi + 0x28], dil
je 0x140047c62
mov edx, r15d
mov rcx, rsi
call fcn.140047d4c
mov eax, dword [rbp - 0x54]
mov byte [r14], 1
cmp eax, 3
je 0x140047cb5
mov rcx, qword [rsi + 8]
lea r8, [rbp - 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140047caf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x60], eax
cmp eax, 0x426
je 0x140047cab
lea r8, [rbp - 0x60]
mov ecx, 2
lea rdx, str.OService::StopServiceRecursive___Failed_to_control_service_:_errCode___d
call fcn.140047540
xor al, al
jmp 0x140047d26
mov al, 1
jmp 0x140047d26
mov ebx, dword [rbp - 0x18]
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x140047d23
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x7fffffff
jb 0x140047d04
cmp ebx, 0x2710
jbe 0x140047cde
mov eax, 0xcccccccd
mul ebx
shr edx, 3
jmp 0x140047ce3
mov edx, 0x3e8
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x58]
mov rcx, rsi
call fcn.140047a90
mov eax, dword [rbp - 0x54]
mov ebx, dword [rbp - 0x40]
cmp eax, 1
jne 0x140047cba
jmp 0x140047d07
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x140047d23
lea rdx, str.OService::StopServiceRecursive___Timed_out_waiting_for_service_to_stop
mov ecx, 2
call fcn.1400474e8
mov eax, dword [rbp - 0x54]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400499e0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x140049a0f
mov rcx, qword [rcx]
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140049a4c
cmp dword [rsp + 0x20], 0xffffffff
je 0x140049a4c
test byte [rsp + 0x20], 0x10
je 0x140049a4c
cmp qword [rbx + 0x18], 8
jb 0x140049a38
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140049a4c
test dil, dil
jne 0x140049a6f
jmp 0x140049a4e
mov al, 1
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x408]
add rsp, 0x3f0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_delete_directory
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140005bfc
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov bl, dl
mov rdi, rcx
call fcn.140049800
test bl, bl
mov rcx, rdi
sete dl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400499e0

Function at 0x140049aa0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x140049acf
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049b23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140049b23
cmp eax, 5
jne 0x140049b16
mov r8b, dil
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.14004a7e4
cmp qword [rbx + 0x18], 8
jb 0x140049b03
mov rcx, qword [rbx]
jmp 0x140049b06
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049b23
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140049b23
test dil, dil
jne 0x140049b46
xor al, al
jmp 0x140049b25
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
lea r9, str.failed_to_delete_file__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.140049184
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3