joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140126744
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 0x140126811
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 0x140126802
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 0x140126802
cmp dword [rbp + 0x18], 4
jne 0x140126802
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x140126802
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140126813
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140126813
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140126811
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140126822
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140127330
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x22]
xor edx, edx
mov word [rsp + 0x20], bx
mov r8d, 0x206
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 0x1401273ae
cmp word [rsp + 0x20], bx
je 0x1401273ae
mov r9, rsi
lea rdx, str.Microsoft_Shared
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.1401271b0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140022430
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140127438
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 0x140127513
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 0x140127513
mov ecx, dword [rbp - 0x10]
cmp rcx, qword [rbp + 0x40]
ja 0x140127513
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140127513
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 0x140127513
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 0x140127526
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 8], r15
test rbx, rbx
je 0x140127534
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 0x140127550
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x370
mov rax, qword [0x140198858]
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 0x1401275f3
cmp dword [rsp + 0x38], ebx
jne 0x1401275e7
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.140127438
lea rdx, [0x1401d70f0]
lea rcx, [rsp + 0x150]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
setne bl
jmp 0x1401275fa
cmp dword [rsp + 0x38], 2
jae 0x1401275f5
cmp dword [rsp + 0x34], 6
jbe 0x1401275fa
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140022430
add rsp, 0x370
pop rbx
ret

Function at 0x140129010
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r8d, 0x10000
mov rdi, rdx
mov rbx, rcx
call fcn.1401291f4
test al, al
je 0x140129052
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14012905f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x140129080
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_delete_service__s
mov qword [rsp + 0x20], rdi
mov r8d, eax
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.14012847c
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1401290b8
Capabilities:
Create service

Disassembly:
push rbx
push rdi
sub rsp, 0x428
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rax, qword [rsp + 0x470]
mov rdi, rcx
mov ecx, dword [rsp + 0x460]
mov rbx, rdx
mov r10d, dword [rsp + 0x468]
mov r11, qword [rsp + 0x478]
cmp qword [rax + 0x10], 0
jne 0x140129103
xor eax, eax
jmp 0x14012910d
cmp qword [rax + 0x18], 8
jb 0x14012910d
mov rax, qword [rax]
cmp qword [r9 + 0x18], 8
jb 0x140129117
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x140129121
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x14012912b
mov rdx, qword [rdx]
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], r11
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x20000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rdi + 8], rax
test rax, rax
je 0x14012918f
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140022430
add rsp, 0x428
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x70]
mov ecx, 2
lea rdx, str.OService::Install___CreateService_failed__d
mov dword [rsp + 0x70], eax
call fcn.140128970
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_create_service__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x80]
mov edx, 0xf
call fcn.14012847c
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140129260
Capabilities:
Query service status

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x140198858]
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 0x1401292b9
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140022430
add rsp, 0x3e8
ret
lea r8, str.Failed_to_query_service_Status
mov edx, 0x74
lea rcx, [rsp + 0x40]
call fcn.140018cb4
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140129304
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x140129312
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rdx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x1401293f0
Capabilities:
Modify service

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x38]
xor ebx, ebx
mov rcx, qword [rcx + 8]
xorps xmm0, xmm0
mov dword [rbp - 0x20], eax
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r8d
lea r8, [rbp - 0x58]
mov dword [rbp - 0x58], edx
lea edx, [rbx + 2]
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x28], r9d
mov dword [rbp - 0x24], ebx
mov dword [rbp - 0x1c], ebx
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140022430
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x140129464
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 0x1401294af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov ecx, 2
cmp eax, 0x420
jne 0x1401294bb
lea rdx, str.OService::StartService___Service_instance_already_running
call fcn.1401289c8
cmp byte [rdi + 0x28], 0
je 0x14012950a
mov rbx, qword [rdi + 0x18]
jmp 0x1401294e1
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.OService::StartService___Failed_to_Start_Service_:_ret___d_:_errCode___d
call fcn.140128b80
xor al, al
jmp 0x14012950c
add rbx, 0xffffffffffffffd0
mov rcx, rbx
call fcn.140129464
cmp rbx, qword [rdi + 0x10]
jne 0x1401294d5
mov rsi, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
jmp 0x1401294fd
mov rcx, rbx
call fcn.140128f60
add rbx, 0x30
cmp rbx, rsi
jne 0x1401294f1
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 0x140129554
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 [0x140198858]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov r15d, r8d
lea rdx, [rbp - 0x58]
mov rsi, rcx
call fcn.140129260
mov eax, dword [rbp - 0x54]
xor edi, edi
mov byte [r14], dil
cmp eax, 1
je 0x140129673
mov ebx, dword [rbp - 0x40]
cmp byte [rsi + 0x28], dil
je 0x1401295b2
mov edx, r15d
mov rcx, rsi
call fcn.14012969c
mov eax, dword [rbp - 0x54]
mov byte [r14], 1
cmp eax, 3
je 0x140129605
mov rcx, qword [rsi + 8]
lea r8, [rbp - 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1401295ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x60], eax
cmp eax, 0x426
je 0x1401295fb
lea r8, [rbp - 0x60]
mov ecx, 2
lea rdx, str.OService::StopServiceRecursive___Failed_to_control_service_:_errCode___d
call fcn.140128b28
xor al, al
jmp 0x140129676
mov al, 1
jmp 0x140129676
mov ebx, dword [rbp - 0x18]
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x140129673
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x7fffffff
jb 0x140129654
cmp ebx, 0x2710
jbe 0x14012962e
mov eax, 0xcccccccd
mul ebx
shr edx, 3
jmp 0x140129633
mov edx, 0x3e8
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x58]
mov rcx, rsi
call fcn.140129260
mov eax, dword [rbp - 0x54]
mov ebx, dword [rbp - 0x40]
cmp eax, 1
jne 0x14012960a
jmp 0x140129657
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x140129673
lea rdx, str.OService::StopServiceRecursive___Timed_out_waiting_for_service_to_stop
mov ecx, 2
call fcn.140128ad0
mov eax, dword [rbp - 0x54]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012b9a8
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 [0x140198858]
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 0x14012ba13
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 0x14012ba02
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.14012c7ec
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 0x14012bb3c
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x14012bb07
mov ebx, dword [rsp + 0x20]
shr ebx, 2
mov eax, ebx
cmp r14, rax
jb 0x14012ba34
jmp 0x14012bad4
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.1400e0094
mov rdx, qword [rdi + 8]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rdx
cmp rcx, 1
jb 0x14012bada
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 0x14012ba89
jmp 0x14012bae8
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 0x14012bb73
mov rdx, qword [rsp + 0x38]
sub rdx, rsi
sar rdx, 2
mov rcx, rsi
call fcn.1400305d4
jmp 0x14012bb73
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.14012a14c
lea rdx, [0x1401e5908]
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, [0x1401e5908]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.140022430
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 0x14012bc5c
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 [0x140198858]
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 0x14012bcad
xor edx, edx
call fcn.14012c5dc
test al, al
je 0x14012bd9a
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.14012a970
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 0x14012bd0f
mov rax, qword [rsi]
jmp 0x14012bd12
mov rax, rsi
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x58], rax
jb 0x14012bd23
mov rax, qword [rdi]
jmp 0x14012bd26
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 0x14012bd6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x10], eax
cmp eax, 0x4c7
jne 0x14012bdc0
xor al, al
jmp 0x14012bd7d
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.140022430
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.1400f85f4
lea rdx, [0x1401e5908]
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.140129e4c
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14012ea8c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
mov r14b, dl
mov rdi, rcx
lea rdx, [rbp + 0x4e0]
mov ecx, 0x104
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x2d0]
xor r8d, r8d
lea rdx, [0x1401d8a48]
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x2d0]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x100
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call sub.Mso20Win32Client.dll_Ordinal_1345
mov rbx, rax
cmp word [rbp + 0x2d0], r15w
jne 0x14012eb3a
mov r8d, r15d
jmp 0x14012eb4f
lea rax, [rbp + 0x2d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14012eb45
lea rdx, [rbp + 0x2d0]
mov rcx, rsi
call fcn.1400083f8
cmp rbx, 0xffffffffffffffff
je 0x14012ebcf
cmp byte [rdi], r15b
jne 0x14012eb71
mov rcx, rdi
call fcn.14012fa00
movzx ecx, r14b
lea rdx, str.msft:spp_migrationencryptor_tokenact_1.0
mov r8, rbx
call sub.osppc.dll_SLGatherMigrationBlob
test eax, eax
js 0x14012ebf7
lea r8, [rbp + 0x2d0]
mov ecx, 3
lea rdx, str.Migration_blob_gathered_into__s
call fcn.14012de84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x848]
add rsp, 0x800
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r8, str.Unable_to_create_migratable_blob_file_handle.
mov edx, 0xa1
lea rcx, [rsp + 0x40]
call fcn.140008b2c
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.Unable_to_gather_migratable_blob.
mov r8d, eax
mov edx, 0x17
lea rcx, [rsp + 0x40]
call fcn.14012d170
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14012fe20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x318]
sub rsp, 0x410
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x300], rax
xor r14d, r14d
mov qword [rsp + 0x60], 7
mov rdi, rdx
mov qword [rsp + 0x58], r14
lea rdx, str.OSLTokenStore::ReadBaseReferral_called.
mov word [rsp + 0x48], r14w
lea rcx, [rsp + 0x48]
lea r8d, [r14 + 0x27]
call fcn.1400083f8
lea rdx, [rsp + 0x48]
lea ecx, [r14 + 3]
call sub.Mso20Win32Client.dll_Ordinal_1396
xor r8d, r8d
lea rcx, [rsp + 0x48]
mov dl, 1
call fcn.140007eb8
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], r14d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SoftwareMicrosoftOfficeSoftwareProtectionPlatform
mov qword [rsp + 0x40], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov dword [rsp + 0x30], edx
test edx, edx
jns 0x14012ff05
lea r8, [rsp + 0x30]
lea rdx, str.OSLTokenStore::ReadBaseReferral_failed_to_open_registry:_hr0x_x
lea ecx, [r14 + 3]
call fcn.14003057c
mov ebx, dword [rsp + 0x30]
jmp 0x14012ff63
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ReferralData
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov ecx, 3
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14012ff8d
lea r8, [rsp + 0x34]
lea rdx, str.OSLTokenStore::ReadBaseReferral_got_value_of:__x
call fcn.14012e0a0
mov ecx, dword [rsp + 0x34]
mov dword [rdi], ecx
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140022430
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, [rsp + 0x30]
lea rdx, str.OSLTokenStore::ReadBaseReferral_failed_to_read_registry:_hr0x_x
call fcn.14003057c
mov r8d, dword [rsp + 0x30]
lea r9, str.Failed_to_read_value_out_of_registry
mov edx, 0x17
lea rcx, [rsp + 0x70]
call fcn.140023ca8
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1401306c4
Capabilities:
Listen for remote procedure calls

Disassembly:
sub rsp, 0x3c8
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r8d, edx
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x1401306f7
cmp eax, 0x6b1
jne 0x14013070f
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140022430
add rsp, 0x3c8
ret
lea r9, str.RpcServerListen_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.140026890
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
push rbx
sub rsp, 0x60
mov eax, dword [rsp + 0xd8]
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.140130408
mov r8d, dword [rsp + 0xc0]
mov rcx, rbx
mov rdx, qword [rsp + 0xb8]
call fcn.14013073c
mov edx, dword [rsp + 0xc8]
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x1401306c4

Function at 0x1401307c0
Capabilities:
Listen for remote procedure calls

Disassembly:
sub rsp, 0x3c8
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov ecx, 1
mov edx, 0x4d2
mov r8d, ecx
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x1401307fe
cmp eax, 0x6b1
je 0x1401307fe
cmp eax, 0x6b3
jne 0x140130816
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140022430
add rsp, 0x3c8
ret
lea r9, str.RpcServerListen_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.140026890
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3