Function at 0x140076bb0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa58]
sub rsp, 0xb50
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0xa40], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_StartPrintBuddyProcess
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
xor edi, edi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], edi
mov rax, qword [str.InstalledPath]
mov qword [rbp + 0x10], rax
mov rax, qword [0x1402f4a28]
mov qword [rbp + 0x18], rax
mov rax, qword [0x1402f4a30]
mov qword [rbp + 0x20], rax
mov eax, dword [0x1402f4a38]
mov dword [rbp + 0x28], eax
mov word [rbp + 0x240], di
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x242]
call fcn.14024b970
lea r8, str.SoftwareCanonPrint_BuddyIIInstall
mov edx, 0x104
lea rcx, [rbp + 0x30]
call fcn.140246628
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140076e23
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x68], 0x800
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x140076d76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140076d3c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tRegQueryValueEx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
lea edx, [rdi + 6]
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140076d4c
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
xor eax, eax
jmp 0x140076f7d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140076e23
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140076de9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tRegCloseKey
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140076df9
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
xor eax, eax
jmp 0x140076f7d
lea r8, str.NBadmin.exe
mov edx, 0x400
lea rcx, [rbp + 0x240]
call fcn.140246470
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.14024b970
mov dword [rbp - 0x60], 0x68
mov eax, 5
mov word [rbp - 0x20], ax
mov dword [rbp - 0x24], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x240]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140076f3e
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140076f07
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tCreateProcess
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140076f17
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
xor eax, eax
jmp 0x140076f7d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0xa40]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xb50]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret