Function at 0x140073130
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rdx, rdx
je 0x1400733f0
mov rbx, rdx
cmp word [rdx], 0
je 0x1400733f0
mov eax, dword [0x14017d010]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400731d7
lea rcx, [0x14017d010]
call fcn.1400c47c0
cmp dword [0x14017d010], 0xffffffff
jne 0x1400731d7
lea rcx, str.api_ms_win_security_base_l1_2_2.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007363f
lea rdx, str.DeriveCapabilitySidsFromName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14017d008], rax
lea rcx, [0x14017d010]
call fcn.1400c4858
mov r14, qword [0x14017d008]
test r14, r14
je 0x1400733f0
mov ecx, 0x80
call fcn.1400c4664
mov rdi, rax
xor eax, eax
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
lea r8, [rsp + 0x44]
mov dword [r8], eax
lea r9, [rsp + 0x38]
mov qword [r9], rax
lea rcx, [rsp + 0x34]
mov dword [rcx], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rax, r14
call qword [0x14018e008]
test eax, eax
je 0x140073430
test rdi, rdi
je 0x1400735fe
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
cmp rdi, 0xfffffffffffffff8
je 0x1400735fe
lea r15, [rdi + 0x80]
mov rax, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov r14, rdi
add r14, 0x10
cmp dword [rsp + 0x44], 0
je 0x1400732a1
xor r12d, r12d
mov rbx, qword [rsp + 0x48]
cmp r14, r15
jae 0x14007344a
test r14, r14
je 0x1400735fe
mov rax, qword [rbx + r12*8]
mov qword [r14], rax
add r14, 8
cmp rdi, r14
je 0x140073404
inc r12
mov eax, dword [rsp + 0x44]
cmp r12, rax
jb 0x14007326a
cmp dword [rsp + 0x34], 0
jne 0x1400732c5
mov rbx, rdi
mov rdi, r14
mov byte [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
jmp 0x140073363
xor r12d, r12d
mov rbx, rdi
mov rdi, r14
mov r14, qword [rsp + 0x38]
cmp rdi, r15
jae 0x140073526
test rdi, rdi
je 0x1400735fe
mov rax, qword [r14 + r12*8]
mov qword [rdi], rax
add rdi, 8
cmp rbx, rdi
je 0x140073404
inc r12
mov eax, dword [rsp + 0x34]
cmp r12, rax
jb 0x1400732ce
test eax, eax
je 0x1400732ae
mov rax, qword [rsp + 0x38]
mov r14, qword [rax]
test r14, r14
je 0x1400732ae
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1400732ae
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x140073634
mov r12d, eax
mov rcx, r12
call fcn.1400c4664
mov r15, rax
lea r13, [rax + r12]
mov rcx, rax
mov rdx, r14
mov r8, r12
call fcn.1400c7420
mov byte [rsi], 1
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
test rbx, rbx
je 0x1400733a3
cmp rdi, rbx
je 0x14007339b
add rdi, 0xfffffffffffffff8
mov r14, qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400733c4
mov rcx, qword [rdi]
mov qword [rdi], 0
test rcx, rcx
je 0x14007338f
call r14
lea rax, [rdi - 8]
cmp rdi, rbx
mov rdi, rax
jne 0x140073378
mov rcx, rbx
call fcn.1400c46a0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c59b0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1400f6b10
mov byte [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
jmp 0x1400733a3
lea rax, str.back___called_on_an_empty_vector
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str._empty__
mov r8d, 0x22a
call fcn.1400f6b10
mov byte [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
mov rbx, rdi
jmp 0x140073363
mov r13, r14
sub r13, rdi
sar r13, 3
lea rcx, [r13 + 1]
mov rax, rcx
shr rax, 0x3d
jne 0x14007362a
movabs rax, 0x1fffffffffffffff
sub r15, rdi
mov rbp, r15
sar rbp, 2
cmp rbp, rcx
cmovbe rbp, rcx
movabs rcx, 0x7ffffffffffffff8
cmp r15, rcx
cmovae rbp, rax
test rbp, rbp
je 0x140073646
cmp rbp, rax
ja 0x14007362f
lea rcx, [rbp*8]
call fcn.1400c4664
mov r15, rax
shl r13, 3
add r13, r15
je 0x1400735fe
mov rax, qword [rbx + r12*8]
mov qword [r13], rax
mov rbx, r13
mov rax, r14
cmp r14, rdi
je 0x140073506
mov rcx, qword [rax - 8]
mov qword [rax - 8], 0
lea rdx, [rax - 8]
mov qword [rbx - 8], rcx
add rbx, 0xfffffffffffffff8
mov rax, rdx
cmp rdx, rdi
jne 0x1400734d3
jmp 0x140073501
add r14, 0xfffffffffffffff8
mov rcx, r14
call fcn.1401174c0
cmp r14, rdi
jne 0x1400734f5
lea r15, [r15 + rbp*8]
add r13, 8
test rdi, rdi
je 0x14007351b
mov rcx, rdi
call fcn.1400c46a0
mov r14, r13
mov rdi, rbx
jmp 0x14007328c
mov r13, rdi
sub r13, rbx
sar r13, 3
lea rcx, [r13 + 1]
mov rax, rcx
shr rax, 0x3d
jne 0x14007362a
movabs rax, 0x1fffffffffffffff
sub r15, rbx
mov rbp, r15
sar rbp, 2
cmp rbp, rcx
cmovbe rbp, rcx
movabs rcx, 0x7ffffffffffffff8
cmp r15, rcx
cmovae rbp, rax
test rbp, rbp
je 0x14007364e
cmp rbp, rax
ja 0x14007362f
lea rcx, [rbp*8]
call fcn.1400c4664
mov r15, rax
shl r13, 3
add r13, r15
je 0x1400735fe
mov rax, qword [r14 + r12*8]
mov qword [r13], rax
mov r14, r13
mov rax, rdi
cmp rdi, rbx
je 0x1400735de
mov rcx, qword [rax - 8]
mov qword [rax - 8], 0
lea rdx, [rax - 8]
mov qword [r14 - 8], rcx
add r14, 0xfffffffffffffff8
mov rax, rdx
cmp rdx, rbx
jne 0x1400735ab
jmp 0x1400735d9
add rdi, 0xfffffffffffffff8
mov rcx, rdi
call fcn.1401174c0
cmp rdi, rbx
jne 0x1400735cd
lea r15, [r15 + rbp*8]
add r13, 8
test rbx, rbx
je 0x1400735f3
mov rcx, rbx
call fcn.1400c46a0
mov rdi, r13
mov rbx, r14
jmp 0x1400732f0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400f6b10
call fcn.1400dc550
call fcn.1400f6640
xor r13d, r13d
xor r15d, r15d
jmp 0x140073354
xor eax, eax
jmp 0x1400731c4
xor r15d, r15d
jmp 0x1400734b3
xor r15d, r15d
jmp 0x14007358f