Function at 0x1400d6030
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push r12
push r13
sub rsp, 0x168
mov rax, qword [0x14036a040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov esi, r8d
mov r13, rcx
mov r8d, dword [rcx + 8]
mov rdi, r9
mov eax, 0xaaaaaaab
mov r12, rdx
lea r9d, [rsi*4 + 8]
mul r9d
mov ecx, edx
shr ecx, 1
test r8d, r8d
je 0x1400d6085
xor edx, edx
lea eax, [rcx + rcx]
div r8d
add eax, ecx
jmp 0x1400d6087
mov eax, ecx
mov qword [rsp + 0x160], rbx
lea edx, [rax + 3]
mov qword [rsp + 0x158], rbp
mov rcx, rdi
mov qword [rsp + 0x150], r14
mov qword [rsp + 0x148], r15
call fcn.1400bc680
test al, al
je 0x1400d6394
test esi, esi
je 0x1400d6390
test r12, r12
je 0x1400d6390
mov eax, 0xaaaaaaab
xor r15d, r15d
mul esi
xor ebp, ebp
xor r8d, r8d
mov r14d, edx
xor ebx, ebx
shr r14d, 1
lea rdx, [0x140273120]
je 0x1400d623b
nop
movzx r9d, byte [r15 + r12]
add ebp, 4
mov eax, r9d
movsxd rcx, r8d
shr rax, 2
and r9d, 3
shl r9d, 4
inc r8d
inc r15d
movzx eax, byte [rax + rdx]
mov byte [rsp + rcx + 0x20], al
movzx r11d, byte [r15 + r12]
inc r15d
movsxd rcx, r8d
mov eax, r11d
shr rax, 4
inc r8d
mov edx, r9d
and r11d, 0xf
or rdx, rax
mov r10d, r15d
lea r9, [0x140273120]
shl r11d, 2
inc r15d
movzx eax, byte [rdx + r9]
movzx r9d, byte [r10 + r12]
mov byte [rsp + rcx + 0x20], al
mov eax, r9d
shr rax, 6
and r9d, 0x3f
movsxd rcx, r8d
inc r8d
mov edx, r11d
or rdx, rax
lea rax, [0x140273120]
movzx eax, byte [rdx + rax]
lea rdx, [0x140273120]
mov byte [rsp + rcx + 0x20], al
movzx eax, byte [r9 + rdx]
movsxd rcx, r8d
inc r8d
mov byte [rsp + rcx + 0x20], al
cmp ebp, dword [r13 + 8]
jb 0x1400d61e7
movsxd rax, r8d
inc r8d
mov byte [rsp + rax + 0x20], 0x26
movsxd rax, r8d
inc r8d
mov byte [rsp + rax + 0x20], 0x23
movsxd rax, r8d
inc r8d
mov byte [rsp + rax + 0x20], 0x78
movsxd rax, r8d
inc r8d
mov byte [rsp + rax + 0x20], 0x44
movsxd rax, r8d
inc r8d
mov byte [rsp + rax + 0x20], 0x3b
movsxd rax, r8d
inc r8d
mov byte [rsp + rax + 0x20], recv
movsxd rax, r8d
inc r8d
xor ebp, ebp
mov byte [rsp + rax + 0x20], 0xa
cmp r8d, 0x100
jl 0x1400d620f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400b8a40
test al, al
je 0x1400d6394
xor r8d, r8d
lea rdx, [0x140273120]
inc ebx
cmp ebx, r14d
jb 0x1400d60f0
test r8d, r8d
je 0x1400d623b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400b8a40
test al, al
je 0x1400d6394
lea rdx, [0x140273120]
lea eax, [r14 + r14*2]
mov bl, 1
sub esi, eax
je 0x1400d631e
sub esi, 1
je 0x1400d62bd
cmp esi, 1
jne 0x1400d633c
movzx ebp, byte [r15 + r12]
lea eax, [r15 + 1]
movzx esi, byte [rax + r12]
mov rcx, rdi
mov eax, ebp
shr rax, 2
movzx edx, byte [rax + rdx]
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
and ebp, 3
mov eax, esi
shl ebp, 4
mov ecx, ebp
lea rbp, [0x140273120]
shr rax, 4
or rcx, rax
movzx edx, byte [rcx + rbp]
mov rcx, rdi
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
and esi, 0xf
shl esi, 2
movzx edx, byte [rsi + rbp]
jmp 0x1400d62fe
movzx esi, byte [r15 + r12]
mov rcx, rdi
mov eax, esi
shr rax, 2
movzx edx, byte [rax + rdx]
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
and esi, 3
lea r9, [0x140273120]
shl esi, 4
mov rcx, rdi
movzx edx, byte [rsi + r9]
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
mov dl, 0x3d
mov rcx, rdi
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
mov dl, 0x3d
mov rcx, rdi
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
mov dl, 0xd
mov rcx, rdi
call fcn.1400b7b70
movzx ebx, al
test al, al
je 0x1400d633c
mov dl, 0xa
mov rcx, rdi
call fcn.1400b7b70
movzx ebx, al
lea rdx, str._r_n_r_n
mov rcx, rdi
call fcn.1400bc410
test al, al
je 0x1400d635c
mov edx, 2
mov rcx, rdi
call fcn.1400c0ce0
lea rdx, str.xD__r_n
mov rcx, rdi
call fcn.1400bc410
test al, al
je 0x1400d638b
mov edx, 7
mov rcx, rdi
call fcn.1400c0ce0
lea rdx, [0x14032b058]
mov rcx, rdi
call fcn.1400b7750
movzx eax, bl
jmp 0x1400d6396
mov al, 1
jmp 0x1400d6396
xor al, al
mov r15, qword [rsp + 0x148]
mov r14, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14008b8a0
add rsp, 0x168
pop r13
pop r12
pop rdi
pop rsi
ret