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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rcx
xor r14d, r14d
mov rcx, qword [rcx + 0x30]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x140010fdf
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r14d
jb 0x140010e9e
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
cmp eax, 2
je 0x140010fc0
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140010fc0
test r8d, r8d
jne 0x14001100a
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x140010eef
mov rax, qword [rbx]
jmp 0x140010ef2
mov rax, rbx
mov word [rax], r14w
cmp dword [rsp + 0x30], 2
ja 0x140010f04
mov al, 1
jmp 0x140010fc2
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x140010f2e
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x140010f24
mov rax, qword [rbx]
jmp 0x140010f27
mov rax, rbx
mov word [rax + rdx*2], r14w
jmp 0x140010f3d
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140008974
cmp qword [rbx + 0x18], 8
jb 0x140010f49
mov rax, qword [rbx]
jmp 0x140010f4c
mov rax, rbx
cmp qword [rdi + 0x18], 8
jb 0x140010f58
mov rdx, qword [rdi]
jmp 0x140010f5b
mov rdx, rdi
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, qword [rsi + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011040
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x140010fac
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x140010fa2
mov rbx, qword [rbx]
mov word [rbx + rdx*2], r14w
jmp 0x140010efd
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140008974
jmp 0x140010efd
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x3e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, rdx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.140009bfc
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
mov qword [rsp + 0x20], rax
mov edx, 0xf
lea rcx, [rsp + 0x40]
call fcn.140009a18
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
lea rcx, [rsp + 0x40]
mov r8d, eax
mov edx, 0xf
call fcn.140009a18
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140011d14
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rcx
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x140011d9e
cmp qword [rdx + 0x10], 0x3fff
ja 0x140011dc6
cmp qword [rdx + 0x18], 8
jb 0x140011d5b
mov rdx, qword [rdx]
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140011dee
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x418]
add rsp, 0x3f0
pop rdi
ret
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x50]
call fcn.140009e54
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._value_name_is_too_long
mov edx, 0x1d
lea rcx, [rsp + 0x50]
call fcn.140009ad8
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x30], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
lea rcx, [rsp + 0x40]
mov edx, 0xf
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call fcn.140009c9c
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001ccbc
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov edx, 0x101
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x20], edx
cmp qword [rcx + 0x10], rdx
jb 0x14001cd0b
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x14001ccff
mov rax, qword [rcx]
jmp 0x14001cd02
mov rax, rcx
mov word [rax + 0x202], di
jmp 0x14001cd17
sub rdx, qword [rcx + 0x10]
xor r8d, r8d
call fcn.140008974
cmp qword [rbx + 0x18], 8
jb 0x14001cd23
mov rdx, qword [rbx]
jmp 0x14001cd26
mov rdx, rbx
lea r8, [rsp + 0x20]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x14001cd87
mov edx, dword [rsp + 0x20]
cmp rdx, qword [rbx + 0x10]
ja 0x14001cd57
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14001cd51
mov rbx, qword [rbx]
mov word [rbx + rdx*2], di
jmp 0x14001cd66
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140008974
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_get_current_username.
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1400165ec
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140020970
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov word [rdi], bx
lea r8d, [rbx + 0x2b]
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400209e9
cmp word [rsp + 0x20], bx
je 0x1400209e9
mov r9, rsi
lea rdx, str.Microsoft_Shared
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.1400207f4
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002262c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x400
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
cmp qword [rcx + 0x18], 8
mov rsi, r8
mov dil, dl
mov rbx, rcx
jb 0x140022663
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140022682
cmp dword [rsp + 0x30], 0xffffffff
je 0x140022682
test byte [rsp + 0x30], 0x10
jne 0x1400226a5
cmp qword [rbx + 0x18], 8
jb 0x14002268e
mov rcx, qword [rbx]
jmp 0x140022691
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400226a5
test dil, dil
jne 0x1400226cc
jmp 0x1400226a7
mov al, 1
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateDirectory_failed_for_directory:__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x60]
mov edx, 0xf
call fcn.140021748
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140022704
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x140022733
mov rcx, qword [rcx]
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140022770
cmp dword [rsp + 0x20], 0xffffffff
je 0x140022770
test byte [rsp + 0x20], 0x10
je 0x140022770
cmp qword [rbx + 0x18], 8
jb 0x14002275c
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140022770
test dil, dil
jne 0x140022793
jmp 0x140022772
mov al, 1
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140121d80
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.1400164c8
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400227c4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x1400227f3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140022847
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140022847
cmp eax, 5
jne 0x14002283a
mov r8b, dil
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140023770
cmp qword [rbx + 0x18], 8
jb 0x140022827
mov rcx, qword [rbx]
jmp 0x14002282a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140022847
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140022847
test dil, dil
jne 0x14002286a
xor al, al
jmp 0x140022849
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140121d80
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.140021530
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14002289c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov bl, dl
mov rdi, rcx
call fcn.1400220c4
test bl, bl
mov rcx, rdi
sete dl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140022704
Function at 0x140023770
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
cmp qword [rcx + 0x18], 8
mov dil, r8b
mov rbx, rcx
mov dword [rsp + 0x30], edx
jb 0x1400237a3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400237b2
test dil, dil
jne 0x1400237d3
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x400]
add rsp, 0x3e0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Cannot_set_file__s_attbutes_to__u
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.1400215e8
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140025c54
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140024ea0
nop
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140024ea0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140028900
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x6a8]
sub rsp, 0x780
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x670], rax
mov rdi, rcx
mov rax, qword [rcx]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi]
mov qword [rax + 8], rax
xor r15d, r15d
mov qword [rdi + 8], r15
cmp rcx, qword [rdi]
je 0x14002896b
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
cmp rbx, qword [rdi]
jne 0x14002895a
mov dword [rsp + 0x20], 0x1000
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov eax, 0x400
mov r12d, 0xffffffff
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140029788
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
sub r14, rsi
sar r14, 2
mov rax, r14
shl rax, 2
cmp rax, r12
ja 0x140028a94
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x140028a5f
mov ebx, dword [rsp + 0x20]
shr ebx, 2
mov eax, ebx
cmp r14, rax
jb 0x14002898c
jmp 0x140028a2c
add ebx, r12d
mov ecx, dword [rsi + rbx*4]
mov dword [rsp + 0x24], ecx
mov r14, qword [rdi]
lea r9, [rsp + 0x24]
mov r8, qword [r14 + 8]
mov rdx, r14
mov rcx, rdi
call fcn.1400276e8
mov rdx, qword [rdi + 8]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rdx
cmp rcx, 1
jb 0x140028a32
lea rcx, [rdx + 1]
mov qword [rdi + 8], rcx
mov qword [r14 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
test ebx, ebx
jne 0x1400289e1
jmp 0x140028a40
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
test rsi, rsi
je 0x140028acb
mov rdx, qword [rsp + 0x38]
sub rdx, rsi
sar rdx, 2
mov rcx, rsi
call fcn.14002e294
jmp 0x140028acb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.::EnumProcesses___failed_to_enumerate_the_list_of_process_current_running
mov edx, 0xf
lea rcx, [rbp + 0x2e0]
call fcn.1400269bc
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x2e0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov dword [rsp + 0x50], 0x5d
mov dword [rbp + 0x154], r15d
mov word [rbp + 0x258], r15w
mov word [rbp + 0x158], r15w
mov word [rsp + 0x54], r15w
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x780]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140028bb4
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 [0x1401d4618]
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 0x140028c05
xor edx, edx
call fcn.140029534
test al, al
je 0x140028cf2
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.14002762c
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], WSAStartup
mov qword [rsp + 0x48], r14
sbb rcx, rcx
and rcx, rdx
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0x50], rcx
jb 0x140028c67
mov rax, qword [rsi]
jmp 0x140028c6a
mov rax, rsi
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x58], rax
jb 0x140028c7b
mov rax, qword [rdi]
jmp 0x140028c7e
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 0x140028cc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x10], eax
cmp eax, 0x4c7
jne 0x140028d18
xor al, al
jmp 0x140028cd5
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.140121d80
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.140026a40
lea rdx, [0x1401e3810]
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.140026530
lea rdx, [0x1401e3810]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002ab7c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rcx, qword [rcx + 0x30]
mov dil, r8b
mov rbx, rdx
test rcx, rcx
je 0x14002abe4
cmp qword [rdx + 0x18], 8
jb 0x14002abb4
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14002abc3
test dil, dil
jne 0x14002ac0c
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
lea r8, str.ORegistryKey.DeleteSubKey_failure:_The_key_is_not_opened
mov edx, 0x3a
lea rcx, [rsp + 0x30]
call fcn.140016988
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.ORegistryKey.DeleteSubKey_failure:The_specified_subkey___s__is_not_a_valid_reference_to_a_registry_key
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.14002a298
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14002ac3c
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 [0x1401d4618]
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 0x14002aca5
lea r8, str.ORegistryKey.DeleteSubKeyTree_failure:_Empty_key_path
lea edx, [rsi + 0x1d]
lea rcx, [rbp - 0x80]
call fcn.1400299e0
lea rdx, [0x1401e3810]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp qword [rdx + 0x10], 0xff
jbe 0x14002acde
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.140029c2c
lea rdx, [0x1401e3810]
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.140011704
test al, al
je 0x14002ad91
cmp qword [rbx + 0x18], 8
jb 0x14002ad43
mov rdx, qword [rbx]
jmp 0x14002ad46
mov rdx, rbx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x14002ad91
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.140029ccc
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x6a0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.140007184
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002adc0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rcx
mov bl, r8b
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14002ae32
cmp qword [rdx + 0x10], 0
jne 0x14002adf9
test bl, bl
jne 0x14002ae5a
cmp qword [rdx + 0x18], 8
jb 0x14002ae03
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14002ae11
test bl, bl
jne 0x14002ae86
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140121d80
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.140029ba8
lea rdx, [0x1401e3810]
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.14002a350
lea rdx, [0x1401e3810]
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.140029fb4
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002aebc
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 [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14002af2e
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.14002a214
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14002b460
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 0x14002af78
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.14000867c
add rbx, 0x20
cmp rbx, r15
jne 0x14002af5d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x14002b091
mov ebx, 0xff
dec esi
mov dword [rsp + 0x40], 0x100
cmp rcx, rbx
jb 0x14002afbb
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 0x14002afce
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140008974
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 0x14002b060
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x14002b033
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 0x14002b045
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140008974
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140023814
test esi, esi
je 0x14002b091
mov rcx, qword [rsp + 0x60]
jmp 0x14002af8c
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.140029efc
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000867c
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140121d80
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