Function at 0x140036e45
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
xor eax, eax
mov ebx, ecx
mov r12, rdx
mov rbp, r8
mov rdi, r9
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
lea r8, [rsp + 0x58]
mov edx, 8
mov rcx, rax
call qword [0x14011c1c0]
mov r14, qword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x140036ea4
call fcn.14003893c
lea rcx, str.OpenProcessToken_failed:__s
mov rdx, rax
jmp 0x140036ee7
lea r15, [rsp + 0x54]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r13, qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, 1
call r13
test eax, eax
jne 0x14003700c
call r14
cmp eax, 0x7a
je 0x140036ef1
call fcn.14003893c
lea rcx, str.GetTokenInformation__pre__failed:__s
mov rdx, rax
call fcn.140038472
jmp 0x14003700c
mov edx, dword [rsp + 0x54]
mov ecx, 1
mov dword [rsp + 0x48], edx
call sub.msvcrt.dll_vfprintf
mov rsi, rax
test rax, rax
je 0x14003700c
mov qword [rsp + 0x20], r15
mov r9d, dword [rsp + 0x48]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call r13
test eax, eax
je 0x140036f98
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140036f5c
call fcn.14003893c
lea rcx, str.Unable_to_convert_SID_to_string:__s
mov rdx, rax
call fcn.140038472
xor eax, eax
mov qword [rsp + 0x60], rax
jmp 0x140036fb4
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140036f8b
call fcn.14003893c
lea rcx, str.Unable_to_convert_string_back_to_SID:__s
mov rdx, rax
call fcn.140038472
xor eax, eax
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x78]
call qword [0x14011c668]
jmp 0x140036fb4
xor r15d, r15d
mov qword [rsp + 0x60], r15
call fcn.14003893c
lea rcx, str.GetTokenInformation__real__failed:__s
mov rdx, rax
call fcn.140038472
mov rcx, rsi
call fcn.1400796c8
mov r13, qword [rsp + 0x60]
test r13, r13
je 0x14003700c
lea rsi, [rsp + 0x78]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_iptorOwner]
test eax, eax
je 0x14003700c
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [0x14011c220]
test eax, eax
je 0x14003700c
xor r13d, r13d
mov qword [rsp + 0x68], rsi
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], 0x18
mov dword [rsp + 0x70], r13d
jmp 0x140037023
call fcn.14003893c
lea rcx, str.Could_not_set_security_descriptor:__s
mov rdx, rax
call fcn.140038472
xor r9d, r9d
cmp ebx, 1
je 0x14003705f
cmp ebx, 2
je 0x14003706c
test ebx, ebx
jne 0x140037045
xor r11d, r11d
mov r15d, 3
mov esi, 0x80000000
mov qword [rbp], r11
jmp 0x140037077
mov r8d, 0x2b5
lea rdx, str.stdfn.c
lea rcx, str.FALSE
call qword [sym.imp.msvcrt.dll_memmove]
mov r15d, 2
mov esi, 0x40000000
jmp 0x140037077
mov r15d, 4
mov esi, 4
mov rcx, r12
mov qword [rsp + 0x48], r9
call fcn.140035b25
xor r10d, r10d
mov edx, esi
mov r9, qword [rsp + 0x48]
mov qword [rsp + 0x30], r10
mov rcx, rax
mov r13, rax
mov r8d, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.DLL_DeviceIoControEnumUILanguagesWFindFirstVolumeA]
mov rsi, rax
call r14
mov r14d, eax
test r13, r13
je 0x1400370c8
mov rcx, r13
call fcn.1400796c8
mov ecx, r14d
call qword [0x14011c730]
cmp rsi, 0xffffffffffffffff
jne 0x1400370f0
call fcn.14003893c
mov rdx, r12
lea rcx, str.Could_not_open__s:__s
mov r8, rax
call fcn.140038472
jmp 0x140037133
cmp ebx, 1
je 0x140037183
cmp ebx, 2
je 0x14003716f
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov ecx, eax
mov dword [rdi], ecx
mov dword [rsp + 0x48], ecx
call fcn.140079730
mov r8d, dword [rsp + 0x48]
test rax, rax
mov qword [rbp], rax
mov rdx, rax
jne 0x14003713b
lea rcx, str.Could_not_allocate_buffer_for_reading_file
call fcn.140038472
xor r12d, r12d
jmp 0x1400371c4
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x20], r9
mov r9, rdi
call qword [0x14011c6d8]
mov r9d, 0xc8f
test eax, eax
jne 0x1400371a7
call fcn.14003893c
lea rcx, str.I_O_Error:__s
mov rdx, rax
call fcn.140038472
jmp 0x140037133
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [0x14011c720]
xor ecx, ecx
mov r9, rdi
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov r8d, dword [rdi]
mov rdx, qword [rbp]
call qword [0x14011c7d8]
test eax, eax
je 0x140037159
mov r9d, 0xc90
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov edx, 1
mov ecx, 1
mov r12d, 1
call fcn.14001ea8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
or ebx, r12d
jne 0x1400371e5
mov rcx, qword [rbp]
call fcn.1400796c8
xor eax, eax
xor edx, edx
mov qword [rbp], rax
mov dword [rdi], edx
mov eax, r12d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret