Function at 0x1400355b0
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rdx, rdx
je 0x140035870
mov rbx, rdx
cmp word [rdx], 0
je 0x140035870
mov eax, dword [0x140142d68]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140035657
lea rcx, [0x140142d68]
call fcn.140096578
cmp dword [0x140142d68], 0xffffffff
jne 0x140035657
lea rcx, str.api_ms_win_security_base_l1_2_2.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035ac1
lea rdx, str.DeriveCapabilitySidsFromName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140142d60], rax
lea rcx, [0x140142d68]
call fcn.1400966f0
mov r14, qword [0x140142d60]
test r14, r14
je 0x140035870
mov ecx, 0x80
call fcn.14009633c
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 [0x140150008]
test eax, eax
je 0x1400358b0
test rdi, rdi
je 0x140035a80
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
cmp rdi, 0xfffffffffffffff8
je 0x140035a80
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 0x140035721
xor r12d, r12d
mov rbx, qword [rsp + 0x48]
cmp r14, r15
jae 0x1400358ca
test r14, r14
je 0x140035a80
mov rax, qword [rbx + r12*8]
mov qword [r14], rax
add r14, 8
cmp rdi, r14
je 0x140035884
inc r12
mov eax, dword [rsp + 0x44]
cmp r12, rax
jb 0x1400356ea
cmp dword [rsp + 0x34], 0
jne 0x140035745
mov rbx, rdi
mov rdi, r14
mov byte [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
jmp 0x1400357e3
xor r12d, r12d
mov rbx, rdi
mov rdi, r14
mov r14, qword [rsp + 0x38]
cmp rdi, r15
jae 0x1400359a7
test rdi, rdi
je 0x140035a80
mov rax, qword [r14 + r12*8]
mov qword [rdi], rax
add rdi, 8
cmp rbx, rdi
je 0x140035884
inc r12
mov eax, dword [rsp + 0x34]
cmp r12, rax
jb 0x14003574e
test eax, eax
je 0x14003572e
mov rax, qword [rsp + 0x38]
mov r14, qword [rax]
test r14, r14
je 0x14003572e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14003572e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x140035ab6
mov r12d, eax
mov rcx, r12
call fcn.14009633c
mov r15, rax
lea r13, [rax + r12]
mov rcx, rax
mov rdx, r14
mov r8, r12
call fcn.14009a050
mov byte [rsi], 1
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
test rbx, rbx
je 0x140035823
cmp rdi, rbx
je 0x14003581b
add rdi, 0xfffffffffffffff8
mov r14, qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140035844
mov rcx, qword [rdi]
mov qword [rdi], 0
test rcx, rcx
je 0x14003580f
call r14
lea rax, [rdi - 8]
cmp rdi, rbx
mov rdi, rax
jne 0x1400357f8
mov rcx, rbx
call fcn.140096334
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400985e0
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.1400c9120
mov byte [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
jmp 0x140035823
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.1400c9120
mov byte [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
mov rbx, rdi
jmp 0x1400357e3
mov r13, r14
sub r13, rdi
sar r13, 3
lea rcx, [r13 + 1]
mov rax, rcx
shr rax, 0x3d
jne 0x140035aac
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 0x140035ac8
cmp rbp, rax
ja 0x140035ab1
lea rcx, [rbp*8]
call fcn.14009633c
mov r15, rax
shl r13, 3
add r13, r15
je 0x140035a80
mov rax, qword [rbx + r12*8]
mov qword [r13], rax
mov rbx, r13
cmp r14, rdi
je 0x140035987
mov rbx, r13
mov rax, r14
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 0x140035956
add r14, 0xfffffffffffffff8
mov rcx, r14
call fcn.1400eb520
cmp r14, rdi
jne 0x140035976
lea r15, [r15 + rbp*8]
add r13, 8
test rdi, rdi
je 0x14003599c
mov rcx, rdi
call fcn.140096334
mov r14, r13
mov rdi, rbx
jmp 0x14003570c
mov r13, rdi
sub r13, rbx
sar r13, 3
lea rcx, [r13 + 1]
mov rax, rcx
shr rax, 0x3d
jne 0x140035aac
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 0x140035ad0
cmp rbp, rax
ja 0x140035ab1
lea rcx, [rbp*8]
call fcn.14009633c
mov r15, rax
shl r13, 3
add r13, r15
je 0x140035a80
mov rax, qword [r14 + r12*8]
mov qword [r13], rax
mov r14, r13
cmp rdi, rbx
je 0x140035a60
mov r14, r13
mov rax, rdi
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 0x140035a2f
add rdi, 0xfffffffffffffff8
mov rcx, rdi
call fcn.1400eb520
cmp rdi, rbx
jne 0x140035a4f
lea r15, [r15 + rbp*8]
add r13, 8
test rbx, rbx
je 0x140035a75
mov rcx, rbx
call fcn.140096334
mov rdi, r13
mov rbx, r14
jmp 0x140035770
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.1400c9120
call fcn.1400ae5f0
call fcn.1400c9bf0
xor r13d, r13d
xor r15d, r15d
jmp 0x1400357d4
xor eax, eax
jmp 0x140035644
xor r15d, r15d
jmp 0x140035933
xor r15d, r15d
jmp 0x140035a10