joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f564
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140191810]
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 0x14001f5b3
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x14001f5a7
mov rax, qword [rcx]
jmp 0x14001f5aa
mov rax, rcx
mov word [rax + 0x202], di
jmp 0x14001f5bf
sub rdx, qword [rcx + 0x10]
xor r8d, r8d
call fcn.140007d00
cmp qword [rbx + 0x18], 8
jb 0x14001f5cb
mov rdx, qword [rbx]
jmp 0x14001f5ce
mov rdx, rbx
lea r8, [rsp + 0x20]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x14001f62f
mov edx, dword [rsp + 0x20]
cmp rdx, qword [rbx + 0x10]
ja 0x14001f5ff
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14001f5f9
mov rbx, qword [rbx]
mov word [rbx + rdx*2], di
jmp 0x14001f60e
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140007d00
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021f10
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.14001a68c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140021e0c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140191810]
movabs rdi, 0x2b992ddfa23249d6
test rax, rax
je 0x140021e3c
mov rax, qword [0x140191810]
cmp rax, rdi
jne 0x140021efd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x40]
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x140191810]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
test rbx, rbx
lea rcx, [0x140191810]
mov edx, 8
cmovne rdi, rbx
mov qword [0x140191810], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 8
lea rcx, [0x140191810]
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov rax, qword [0x140191810]
not rax
mov qword [0x140260470], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400222f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140022381
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140022381
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022381
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 0x140022365
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14002235f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140022367
add rdx, 0x28
jmp 0x140022344
xor edx, edx
test rdx, rdx
jne 0x140022370
xor al, al
jmp 0x140022387
test dword [rdx + 0x24], 0x80000000
je 0x14002237d
xor al, al
jmp 0x140022387
mov al, 1
jmp 0x140022387
xor al, al
jmp 0x140022387
add rsp, 0x18
ret

Function at 0x1400229e4
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 0x140023500
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140191810]
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 0x140023579
cmp word [rsp + 0x20], bx
je 0x140023579
mov r9, rsi
lea rdx, str.Microsoft_Shared
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.140023380
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140023600
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
lea rax, [rbp - 8]
mov r14, r9
mov qword [rbp - 8], r15
mov rsi, r8
mov dword [rbp - 0x10], r15d
mov r9d, 0x20019
mov qword [r11 - 0x38], rax
xor r8d, r8d
mov ebx, r15d
mov edi, 0x16
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400236db
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400236db
mov ecx, dword [rbp - 0x10]
cmp rcx, qword [rbp + 0x40]
ja 0x1400236db
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400236db
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400236db
mov eax, dword [rbp - 0x10]
mov r8, rbx
mov rdx, qword [rbp + 0x40]
mov rcx, r14
shr rax, 1
mov word [rbx + rax*2 - 2], r15w
mov r9d, dword [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edi, eax
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400236ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 8], r15
test rbx, rbx
je 0x1400236fc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret

Function at 0x140023718
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x370
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x360], rax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
cmp dword [rsp + 0x34], 6
jne 0x1400237bb
cmp dword [rsp + 0x38], ebx
jne 0x1400237af
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x150]
mov qword [rsp + 0x20], 0x104
lea r8, str.CurrentVersion
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
call fcn.140023600
lea rdx, [0x140191a80]
lea rcx, [rsp + 0x150]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
setne bl
jmp 0x1400237c2
cmp dword [rsp + 0x38], 2
jae 0x1400237bd
cmp dword [rsp + 0x34], 6
jbe 0x1400237c2
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x370
pop rbx
ret
Function at 0x140025398
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x400
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
cmp qword [rcx + 0x18], 8
mov rsi, r8
mov dil, dl
mov rbx, rcx
jb 0x1400253cf
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400253ee
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400253ee
test byte [rsp + 0x30], 0x10
jne 0x140025411
cmp qword [rbx + 0x18], 8
jb 0x1400253fa
mov rcx, qword [rbx]
jmp 0x1400253fd
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140025411
test dil, dil
jne 0x140025438
jmp 0x140025413
mov al, 1
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140021f10
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.14002414c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140025470
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x14002549f
mov rcx, qword [rcx]
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400254dc
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400254dc
test byte [rsp + 0x20], 0x10
je 0x1400254dc
cmp qword [rbx + 0x18], 8
jb 0x1400254c8
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400254dc
test dil, dil
jne 0x1400254ff
jmp 0x1400254de
mov al, 1
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140021f10
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.14001a608
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140025530
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x14002555f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400255b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400255b3
cmp eax, 5
jne 0x1400255a6
mov r8b, dil
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.1400264dc
cmp qword [rbx + 0x18], 8
jb 0x140025593
mov rcx, qword [rbx]
jmp 0x140025596
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400255b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400255b3
test dil, dil
jne 0x1400255d6
xor al, al
jmp 0x1400255b5
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021f10
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.140023f34
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140025608
Capabilities:
Delete directory

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x140191810]
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 0x14002650f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14002651e
test dil, dil
jne 0x14002653f
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021f10
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.140023fec
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140028bec
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.140028104
nop
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140028104
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 0x14002bd34
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 [0x140191810]
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 0x14002bd9f
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 0x14002bd8e
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.14002cd40
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 0x14002bec8
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x14002be93
mov ebx, dword [rsp + 0x20]
shr ebx, 2
mov eax, ebx
cmp r14, rax
jb 0x14002bdc0
jmp 0x14002be60
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.14002a88c
mov rdx, qword [rdi + 8]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rdx
cmp rcx, 1
jb 0x14002be66
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 0x14002be15
jmp 0x14002be74
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 0x14002beff
mov rdx, qword [rsp + 0x38]
sub rdx, rsi
sar rdx, 2
mov rcx, rsi
call fcn.1400b40c0
jmp 0x14002beff
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.1400299d8
lea rdx, [0x1401df028]
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, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.140021f10
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 0x14002bfe8
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 [0x140191810]
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 0x14002c039
xor edx, edx
call fcn.14002c968
test al, al
je 0x14002c126
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.14002a7d0
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 0x14002c09b
mov rax, qword [rsi]
jmp 0x14002c09e
mov rax, rsi
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x58], rax
jb 0x14002c0af
mov rax, qword [rdi]
jmp 0x14002c0b2
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 0x14002c0f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x10], eax
cmp eax, 0x4c7
jne 0x14002c14c
xor al, al
jmp 0x14002c109
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.140021f10
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.140029a5c
lea rdx, [0x1401df028]
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.14002954c
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002e28c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rcx, qword [rcx + 0x30]
mov dil, r8b
mov rbx, rdx
test rcx, rcx
je 0x14002e2f4
cmp qword [rdx + 0x18], 8
jb 0x14002e2c4
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14002e2d3
test dil, dil
jne 0x14002e31c
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021f10
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.140027104
lea rdx, [0x1401df028]
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.14002d850
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14002e34c
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 [0x140191810]
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 0x14002e3b5
lea r8, str.ORegistryKey.DeleteSubKeyTree_failure:_Empty_key_path
lea edx, [rsi + 0x1d]
lea rcx, [rbp - 0x80]
call fcn.14002cf98
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp qword [rdx + 0x10], 0xff
jbe 0x14002e3ee
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.14002d1e4
lea rdx, [0x1401df028]
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.140012dc0
test al, al
je 0x14002e4a1
cmp qword [rbx + 0x18], 8
jb 0x14002e453
mov rdx, qword [rbx]
jmp 0x14002e456
mov rdx, rbx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x14002e4a1
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.14002d284
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x6a0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.140006514
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e4d0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rcx
mov bl, r8b
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14002e542
cmp qword [rdx + 0x10], 0
jne 0x14002e509
test bl, bl
jne 0x14002e56a
cmp qword [rdx + 0x18], 8
jb 0x14002e513
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14002e521
test bl, bl
jne 0x14002e596
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021f10
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.14002d160
lea rdx, [0x1401df028]
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.14002d908
lea rdx, [0x1401df028]
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.14002d56c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3