Function at 0x180001380
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x180011020]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x20], rdx
mov rsi, qword [rdx + 0x10]
lea ecx, [rsi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
shl edx, 2
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
movsxd rdx, edx
mov rcx, rdi
call fcn.180005a40
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1800013ef
mov r8, qword [rdi]
xor r11d, r11d
lea eax, [rsi - 2]
movsxd r10, eax
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_HTTP_1.0_200_Connection_establis
test eax, eax
jle 0x1800014e7
xor r9d, r9d
lea rcx, [r10 - 1]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
inc edx
lea r11d, [rdx + rdx*2]
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180001431
mov rax, qword [rbx]
movzx eax, byte [r9 + rax]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18000144f
mov rax, qword [rbx]
lea rdx, [r9 + rax]
mov rax, rbx
jb 0x18000145b
mov rax, qword [rbx]
movzx ecx, byte [r9 + rax + 1]
shr rcx, 4
movsx rax, byte [rdx]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180001489
mov rax, qword [rbx]
lea rdx, [rax + r9]
mov rax, rbx
jb 0x180001495
mov rax, qword [rbx]
movzx ecx, byte [rax + r9 + 2]
shr rcx, 6
movsx rax, byte [rdx + 1]
and eax, 0xf
shl rax, 2
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1800014c4
mov rax, qword [rbx]
movsx rax, byte [rax + r9 + 2]
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r8 + 3], al
add r8, 4
add r9, 3
cmp r9, r10
jl 0x180001424
cmp r11d, esi
jge 0x1800015a4
lfence
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180001500
mov rax, qword [rbx]
movsxd rdx, r11d
movzx eax, byte [rdx + rax]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
lea eax, [rsi - 1]
lfence
cmp r11d, eax
mov rax, rbx
jne 0x180001547
cmp qword [rbx + 0x18], 0x10
jb 0x18000152b
mov rax, qword [rbx]
movsx rax, byte [rdx + rax]
and eax, 3
add rax, rax
movzx eax, byte [r14 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x18000159c
cmp qword [rbx + 0x18], 0x10
jb 0x180001551
mov rax, qword [rbx]
lea r9, [rdx + rax]
mov rax, rbx
jb 0x18000155d
mov rax, qword [rbx]
movsx rcx, byte [r9]
and ecx, 3
shl rcx, 4
movzx eax, byte [rdx + rax + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18000158e
mov rax, qword [rbx]
movsx rax, byte [rdx + rax + 1]
and eax, 0xf
movzx eax, byte [r14 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800015da
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800015d5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000160b
mov rcx, r8
call fcn.18000b86c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18000b1f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3