Function at 0x140051400
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov r13, rdx
mov rax, qword [0x140188040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edx, dword [r9 + 8]
test edx, edx
jle 0x140051aa6
mov rbp, rcx
mov rcx, qword [r9]
mov rax, qword [rcx]
test al, 1
je 0x140051aa6
cmp dword [r9 + 0x10], 0
jne 0x140051a86
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
cmp dword [r13 + 0x10], 0
jne 0x140051ac6
mov rdi, r8
movsxd r9, dword [r13 + 8]
cmp r9, rdx
mov r11, rdx
cmovb r11, r9
mov r10, qword [r13]
test r9, r9
je 0x1400518ee
mov rax, rbp
mov rbp, r13
xor r8d, r8d
xor esi, esi
mov rbx, qword [rcx + rsi*8]
mov r14, qword [r10 + rsi*8]
mov r15, r14
xor r15, rbx
lea r12, [r15 - 1]
mov r13, r14
sub r13, rbx
xor r13, r14
or r13, r15
not r15
and r12, r15
sar r12, 0x3f
xor r13, r14
sar r13, 0x3f
or r13, 1
xor r8, r13
and r8, r12
xor r8, r13
inc rsi
cmp r11, rsi
jne 0x14005148e
mov r13, rbp
mov rbp, rax
cmp r9d, edx
jb 0x14005185d
cmp edx, r9d
jb 0x14005197d
test r8d, r8d
jns 0x140051ac6
mov r9d, dword [rdi + 8]
test r9d, r9d
jle 0x1400519af
mov r8, qword [rdi]
mov r10d, r9d
cmp qword [r8 + r10*8 - 8], 0
je 0x14005172f
movsxd r10, r9d
shl r9d, 6
mov r10, qword [r8 + r10*8 - 8]
xor r8d, r8d
test r10, r10
setne r8b
or r8d, r9d
xor r9d, r9d
mov r11, r10
shr r11, 0x20
cmove r11, r10
setne r9b
shl r9d, 5
mov rsi, r11
shr rsi, 0x10
xor r10d, r10d
cmp r11, 0x10000
cmovb rsi, r11
setae r10b
shl r10d, 4
mov rbx, rsi
shr rbx, 8
xor r11d, r11d
cmp rsi, 0x100
cmovb rbx, rsi
setae r11b
mov rsi, rbx
shr rsi, 4
xor r14d, r14d
cmp rbx, 0x10
setae r14b
cmovb rsi, rbx
mov rbx, rsi
shr rbx, 2
xor r15d, r15d
cmp rsi, 4
setae r15b
cmovb rbx, rsi
or r9d, r8d
or r9d, r10d
cmp rbx, 2
lea r8d, [r9 + r11*8]
lea r8d, [r8 + r14*4]
lea r12d, [r8 + r15*2]
sbb r12d, 0xffffffff
add r12d, 0xffffffc0
je 0x1400518fd
mov rbx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x50]
mov r8d, 0x100
mov dl, 0xaa
call fcn.1400e67b0
cmp byte [rbx + 0x28], 0
jne 0x140051605
mov rcx, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x20]
cmp rcx, qword [rbx + 0x18]
je 0x140051887
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8], rsi
inc qword [rbx + 0x10]
mov r14, r13
mov rcx, rbx
call fcn.140050720
mov r13, rax
mov rcx, rbx
call fcn.140050720
mov qword [rsp + 0x50], rax
xor esi, esi
test r13, r13
je 0x140051b07
mov r15, rax
mov qword [rsp + 0x40], rbp
mov ecx, 0
test rax, rax
je 0x140051813
mov rbp, qword [rsp + 0x1c8]
xor esi, esi
test rbp, rbp
je 0x140051aee
xor eax, eax
cmp r12d, 0x29f
mov qword [rsp + 0x30], rax
ja 0x1400519bd
cmp r12d, 0xef
ja 0x1400519c7
cmp r12d, 0x4f
ja 0x1400519d1
xor eax, eax
cmp r12d, 0x18
setae al
lea eax, [rax*2 + 1]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rbx
mov rcx, r15
mov rdx, r14
mov r8, rbp
mov r9, rbp
int3
lea r10d, [r9 - 1]
cmp r9d, 1
mov r9d, r10d
jg 0x140051503
jmp 0x1400518fd
int3
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400b5c70
mov eax, esi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r10d, r10d
or r10, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x140051860
mov r9, r10
not r9
dec r10
and r10, r9
sar r10, 0x3f
not r10d
or r8d, r10d
jmp 0x1400514ea
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov ebx, 0x20
cmovne rbx, rax
cmp rbx, rcx
jbe 0x140051b0e
mov rax, rbx
shr rax, 0x3d
jne 0x140051b0e
lea rdx, [rbx*8]
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
int3
xor r8d, r8d
jmp 0x1400514d8
and qword [rsp + 0x40], 0xfffffffffffffffe
cmp edx, 1
je 0x140051930
cmp edx, 3
mov r8d, 2
cmovge r8d, edx
mov edx, 1
mov rax, qword [rsp + 0x40]
or rax, qword [rcx + rdx*8]
mov qword [rsp + 0x40], rax
inc rdx
cmp r8, rdx
jne 0x14005191a
cmp qword [rsp + 0x40], 0
je 0x14005196c
mov edx, 1
mov rcx, rbp
int3
mov esi, 1
jmp 0x140051837
xor eax, eax
mov dword [rbp + 0x10], eax
mov dword [rbp + 8], eax
jmp 0x140051962
xor r11d, r11d
mov rsi, rdx
or r11, qword [r10 + rsi*8]
inc rsi
cmp r9, rsi
jne 0x140051983
mov r9, r11
not r9
dec r11
and r11, r9
sar r11, 0x3f
xor r8d, 1
and r8d, r11d
xor r8d, 1
jmp 0x1400514ea
je 0x1400518fd
mov r8, qword [rdi]
jmp 0x140051512
mov eax, 6
jmp 0x14005168f
mov eax, 5
jmp 0x14005168f
mov eax, 4
jmp 0x14005168f
mov dword [rsp + 0x20], 0x27e
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnexponentiation.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x140051ae4
mov dword [rsp + 0x20], 0x27a
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnexponentiation.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x140051ae4
mov dword [rsp + 0x20], 0x283
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnexponentiation.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6b
int3
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
int3
xor ecx, ecx
jmp 0x140051813
mov rbx, qword [rsp + 0x1c0]
mov word [rbx + 0x28], 0x101
jmp 0x140051605