Function at 0x14005c990
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r9
mov r14d, r8d
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rcx], 0
lea rcx, [0x14039e518]
lea rdx, [0x14004eb80]
call fcn.140095c00
test rdi, rdi
je 0x14005ca1e
mov esi, dword [rdi + 0x10]
cmp esi, dword [0x14039e530]
jne 0x14005ca10
movsxd r9, dword [0x14039e528]
mov r8, qword [0x14039e520]
movsxd rdx, dword [rdi + 8]
mov rcx, qword [rdi]
call fcn.14004f480
mov ecx, eax
neg ecx
test esi, esi
cmove ecx, eax
test ecx, ecx
jg 0x14005ca1e
jmp 0x14005cca6
mov r13d, 1
test esi, esi
jne 0x14005ccac
mov r15d, dword [rdi + 8]
test r15d, r15d
jle 0x14005cabe
mov r12, qword [rdi]
mov r13, qword [r12]
test r13b, 1
jne 0x14005caea
xor r13, 2
cmp r15d, 1
je 0x14005cad1
mov eax, 1
cmp r15d, 5
jb 0x14005cab0
lea rcx, [r15 - 1]
mov rdx, rcx
and rdx, 0xfffffffffffffffc
lea rax, [rdx + 1]
movq xmm1, r13
pxor xmm0, xmm0
xor r8d, r8d
movdqu xmm2, xmmword [r12 + r8*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r12 + r8*8 + 0x18]
por xmm0, xmm2
add r8, 4
cmp rdx, r8
jne 0x14005ca70
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r13, xmm1
cmp rcx, rdx
je 0x14005cad1
nop word cs:[rax + rax]
or r13, qword [r12 + rax*8]
inc rax
cmp r15, rax
jne 0x14005cab0
jmp 0x14005cad1
test r15, r15
je 0x14005cca1
mov rax, qword [rdi]
mov r13, qword [rax]
xor r13, 2
xor eax, eax
test r13, r13
jne 0x14005cca3
xor eax, eax
cmp dword [rdi + 0x10], 0
sete al
jmp 0x14005cca3
mov rcx, r13
xor rcx, 3
cmp r15d, 1
je 0x14005cb6c
mov eax, 1
cmp r15d, 5
jb 0x14005cb60
lea rdx, [r15 - 1]
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 + 1]
movq xmm1, rcx
pxor xmm0, xmm0
xor ecx, ecx
movdqu xmm2, xmmword [r12 + rcx*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r12 + rcx*8 + 0x18]
por xmm0, xmm2
add rcx, 4
cmp r8, rcx
jne 0x14005cb20
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp rdx, r8
je 0x14005cb6c
nop word cs:[rax + rax]
or rcx, qword [r12 + rax*8]
inc rax
cmp r15, rax
jne 0x14005cb60
test rcx, rcx
jne 0x14005cb7b
cmp dword [rdi + 0x10], 0
je 0x14005cd29
cmp dword [rsp + 0xe0], 0
je 0x14005ccfa
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], rbx
xor ebx, ebx
cmp r15d, 0x11
setge sil
mov r14w, 3
mov rcx, rdi
mov dx, 3
call fcn.1400527d0
test ax, ax
je 0x14005cc0b
mov qword [rsp + 0x28], rbp
mov bl, sil
shl ebx, 9
add rbx, 0x200
mov ebp, 2
lea rsi, [0x1402a55b0]
nop word cs:[rax + rax]
movzx r14d, word [rsi + rbp*2]
mov rcx, rdi
mov edx, r14d
call fcn.1400527d0
test ax, ax
je 0x14005cbfd
inc rbp
cmp rbx, rbp
jne 0x14005cbe0
cmp rbp, rbx
mov rbp, qword [rsp + 0x28]
jae 0x14005cccd
movzx eax, r14w
xor r13, rax
cmp r15d, 1
je 0x14005cad1
mov eax, 1
cmp r15d, 5
jb 0x14005cc90
lea rcx, [r15 - 1]
mov rdx, rcx
and rdx, 0xfffffffffffffffc
lea rax, [rdx + 1]
movq xmm1, r13
pxor xmm0, xmm0
xor r8d, r8d
nop word cs:[rax + rax]
movdqu xmm2, xmmword [r12 + r8*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r12 + r8*8 + 0x18]
por xmm0, xmm2
add r8, 4
cmp rdx, r8
jne 0x14005cc50
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r13, xmm1
cmp rcx, rdx
je 0x14005cad1
nop word [rax + rax]
or r13, qword [r12 + rax*8]
inc rax
cmp r15, rax
jne 0x14005cc90
jmp 0x14005cad1
xor eax, eax
mov dword [rbp], eax
mov r13d, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140258ea0
mov eax, r13d
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsp + 0xe8]
test r8, r8
mov rbx, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x30]
je 0x14005ccfa
mov ecx, 1
mov edx, 0xffffffff
call qword [rhtons + 8]
test eax, eax
je 0x14005d0d0
test r14d, r14d
jne 0x14005ce46
mov ecx, dword [rdi + 8]
test ecx, ecx
jle 0x14005cd35
mov rax, qword [rdi]
nop dword [rax]
mov edx, ecx
cmp qword [rax + rdx*8 - 8], 0
jne 0x14005cd3e
lea edx, [rcx - 1]
cmp ecx, 1
mov ecx, edx
jg 0x14005cd10
jmp 0x14005ce40
mov dword [rbp], 1
jmp 0x14005cca6
je 0x14005ce40
mov rax, qword [rdi]
movsxd rdx, ecx
shl ecx, 6
mov rdx, qword [rax + rdx*8 - 8]
xor eax, eax
test rdx, rdx
setne al
or eax, ecx
xor ecx, ecx
mov r8, rdx
shr r8, 0x20
cmove r8, rdx
setne cl
shl ecx, 5
mov r9, r8
shr r9, 0x10
xor edx, edx
cmp r8, 0x10000
cmovb r9, r8
setae dl
shl edx, 4
mov r10, r9
shr r10, 8
xor r8d, r8d
cmp r9, 0x100
cmovb r10, r9
setae r8b
mov r9, r10
shr r9, 4
xor r11d, r11d
cmp r10, 0x10
setae r11b
cmovb r9, r10
mov r10, r9
shr r10, 2
xor esi, esi
cmp r9, 4
setae sil
cmovb r10, r9
add esi, esi
or ecx, eax
or ecx, edx
lea eax, [rcx + r8*8]
lea eax, [rax + r11*4]
or eax, esi
cmp r10, 2
sbb eax, 0xffffffff
add eax, 0xffffffc0
mov r14d, 3
cmp eax, 0xea2
jg 0x14005ce46
mov r14d, 4
cmp eax, 0x540
jg 0x14005ce46
mov r14d, 5
cmp eax, 0x1db
jg 0x14005ce46
mov r14d, 6
cmp eax, 0x18f
jg 0x14005ce46
mov r14d, 7
cmp eax, 0x15a
jg 0x14005ce46
mov r14d, 8
cmp eax, 0x133
jg 0x14005ce46
cmp eax, 0x37
mov eax, 0x1b
mov r14d, 0x22
cmovge r14d, eax
jmp 0x14005ce46
mov r14d, 0x22
xor r13d, r13d
test rbx, rbx
je 0x14005ce5d
xor r15d, r15d
cmp byte [rbx + 0x28], 0
jne 0x14005cf08
jmp 0x14005ce8e
mov ecx, 0x30
call fcn.14008be00
test rax, rax
je 0x14005ccac
mov r15, rax
pxor xmm0, xmm0
movdqu xmmword [rax + 0x1a], xmm0
movdqu xmmword [rax + 0x10], xmm0
movdqu xmmword [rax], xmm0
mov rbx, rax
cmp byte [rbx + 0x28], 0
jne 0x14005cf08
mov rcx, qword [rbx + 0x10]
mov rsi, rbx
mov rbx, qword [rbx + 0x20]
cmp rcx, qword [rsi + 0x18]
jne 0x14005ceeb
mov r12d, r14d
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov r14d, 0x20
cmovne r14, rax
cmp r14, rcx
jbe 0x14005cefc
mov rax, r14
shr rax, 0x3d
jne 0x14005cefc
lea rdx, [r14*8]
mov rcx, qword [rsi + 8]
call fcn.14008beb0
test rax, rax
je 0x14005cefc
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], r14
mov rcx, qword [rsi + 0x10]
mov r14d, r12d
jmp 0x14005ceef
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8], rbx
inc qword [rsi + 0x10]
mov rbx, rsi
jmp 0x14005cf08
mov rbx, rsi
mov word [rsi + 0x28], 0x101
mov r14d, r12d
mov esi, r14d
mov rcx, rbx
call fcn.14004faf0
mov r14, rax
mov ecx, 0x40
call fcn.14008be00
mov r12, rax
test rax, rax
je 0x14005cfa4
pxor xmm0, xmm0
movdqu xmmword [r12 + 0x30], xmm0
movdqu xmmword [r12 + 0x20], xmm0
movdqu xmmword [r12 + 0x10], xmm0
movdqu xmmword [r12], xmm0
mov rcx, r12
mov rdx, rdi
call fcn.1400597e0
test eax, eax
je 0x14005cfa4
mov rcx, r12
mov rdx, rbx
call fcn.140059af0
test eax, eax
je 0x14005cfa4
xor r13d, r13d
test r14, r14
je 0x14005cfb2
lea rcx, [rsp + 0x48]
mov rdx, r12
mov r8, rbx
call fcn.14005bbe0
test eax, eax
je 0x14005cfb2
mov qword [rsp + 0x28], rbp
movsxd rax, esi
mov qword [rsp + 0x30], rax
mov ebp, 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
xor edi, edi
jmp 0x14005d048
mov rcx, r12
call fcn.140053420
xor r12d, r12d
xor r13d, r13d
mov rcx, r12
call fcn.140053420
cmp byte [rbx + 0x28], 0
jne 0x14005cfd9
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
lea rdx, [rcx - 1]
mov qword [rbx + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rbx + 0x20], rax
test r15, r15
je 0x14005ccac
mov rcx, qword [r15]
lea rdx, [0x140016e00]
lea r8, [fcn.14004ea20]
call fcn.140095280
mov rcx, qword [r15 + 8]
call fcn.14008be60
mov rcx, r15
call fcn.14008be60
jmp 0x14005ccac
add rdi, rbx
xor eax, eax
cmp ebp, 0x10
lea ecx, [rbp + 1]
setb al
mov rdx, rdi
mov r9, qword [rsp + 0x30]
xor rdx, r9
mov r8, rdi
sub r8, r9
xor r8, rdi
or r8, rdx
xor r8, rdi
sar r8, 0x3f
or r8, rax
mov ebp, ecx
mov rbx, rsi
je 0x14005d0f1
mov r8d, 2
mov rcx, r14
lea rdx, [rsp + 0x44]
mov r9, qword [rsp + 0x38]
call fcn.14005d110
test eax, eax
je 0x14005cfaf
mov rax, rbx
movsxd rbx, dword [rsp + 0x44]
mov dword [rsp + 0x40], 0
mov rsi, rax
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8, r14
mov r9, r12
call fcn.14005bfc0
xor r13d, r13d
test eax, eax
je 0x14005d0c8
cmp dword [rsp + 0x40], 0
je 0x14005d0d8
mov r8, qword [rsp + 0xe8]
test r8, r8
je 0x14005d00e
lea edx, [rbp - 1]
mov ecx, 1
call qword [rhtons + 8]
test eax, eax
jne 0x14005d00e
mov rbx, rsi
jmp 0x14005cfb2
xor r13d, r13d
jmp 0x14005ccac
mov rax, qword [rsp + 0x28]
mov dword [rax], 0
mov r13d, 1
mov rbx, rsi
jmp 0x14005cfb2
mov rax, qword [rsp + 0x28]
mov dword [rax], 1
mov r13d, 1
jmp 0x14005cfb2