Function at 0x180014520
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov r13, rdx
mov r12, rcx
mov qword [r11 - 0x70], rdx
mov rdx, qword [rcx + 0x30]
mov rdx, qword [rdx + 8]
call fcn.180017e20
mov r11, qword [r12 + 0x30]
mov qword [r11 + 8], r11
xor r14d, r14d
mov qword [r12 + 0x38], r14
mov rax, qword [r12 + 0x30]
mov qword [rax], rax
mov rax, qword [r12 + 0x30]
mov qword [rax + 0x10], rax
lea r9d, [r14 + 0xa]
mov r8, r13
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.180016100
nop
mov rsi, r14
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
mov r8, qword [rsp + 0x68]
sub rcx, r8
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180014bbd
nop dword [rax]
cmp rsi, rdx
jb 0x1800145ef
call fcn.180057f2c
mov r8, qword [rsp + 0x68]
lea rax, [rsi + rsi*4]
lea r8, [r8 + rax*8]
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x170]
mov rcx, r12
call fcn.180016030
nop
inc rsi
mov rcx, qword [rsp + 0x188]
test rcx, rcx
je 0x180014b78
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rax, qword [rsp + 0x178]
cmp byte [rax], 0x23
je 0x180014b78
lea rax, [rcx - 1]
cmp rax, rcx
jbe 0x18001465b
call fcn.180057f2c
mov rcx, qword [rsp + 0x188]
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rax, qword [rsp + 0x178]
cmp byte [rax], 0x5b
jne 0x180014b78
lea rbx, [rcx - 1]
cmp rbx, rcx
jbe 0x18001468c
call fcn.180057f2c
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rax, qword [rsp + 0x178]
cmp byte [rax + rbx], 0x5d
jne 0x180014b78
mov ecx, 8
call fcn.1800576c0
test rax, rax
je 0x1800146cc
lea rcx, [rsp + 0x80]
mov qword [rax], rcx
jmp 0x1800146cf
mov rax, r14
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x80]
call fcn.18001af30
mov qword [rsp + 0xb0], rax
mov byte [rax + 0x69], 1
mov rax, qword [rsp + 0xb0]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0xb0]
mov qword [rax], rax
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x10], rax
mov qword [rsp + 0xb8], r14
mov r9, qword [rsp + 0x188]
add r9, 0xfffffffffffffffe
mov r8d, 1
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x170]
call fcn.180015e00
nop
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jae 0x180014a02
lea rbp, [rsi + rsi*4]
shl rbp, 3
cmp rsi, rdx
jb 0x180014784
call fcn.180057f2c
mov r8, qword [rsp + 0x68]
lea rdx, [r8 + rbp]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x170]
call fcn.180003d60
mov r11, qword [rsp + 0x188]
test r11, r11
je 0x1800149d1
lea rax, [rsp + 0x178]
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
cmovae rax, rcx
cmp byte [rax], 0x5b
jne 0x18001480a
lea rbx, [r11 - 1]
cmp rbx, r11
jbe 0x1800147f0
call fcn.180057f2c
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x178]
lea rax, [rsp + 0x178]
cmp rdx, 0x10
cmovae rax, rcx
cmp byte [rax + rbx], 0x5d
je 0x180014a02
mov r9d, 0x3d
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.180016100
nop
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov r8, qword [rsp + 0x38]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180014970
test rdx, rdx
jne 0x18001485f
call fcn.180057f2c
mov r8, qword [rsp + 0x38]
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x1f0]
mov rcx, r12
call fcn.180016030
nop
mov qword [rsp + 0x1b8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x1b0], r14
mov byte [rsp + 0x1a0], 0
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jbe 0x1800148e1
cmp rdx, 1
ja 0x1800148c9
call fcn.180057f2c
mov r8, qword [rsp + 0x38]
lea rdx, [r8 + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x198]
call fcn.180003d60
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x80]
call fcn.180015610
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.180003d60
nop
cmp qword [rsp + 0x1b8], 0x10
jb 0x180014926
mov rcx, qword [rsp + 0x1a0]
call fcn.180057684
mov qword [rsp + 0x1b8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x1b0], r14
mov byte [rsp + 0x1a0], 0
cmp qword [rsp + 0x210], 0x10
jb 0x180014966
mov rcx, qword [rsp + 0x1f8]
call fcn.180057684
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jmp 0x180014970
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x1800149b8
cmp r8, rdi
je 0x1800149b0
lea rbx, [r8 + 0x20]
nop
cmp qword [rbx], 0x10
jb 0x18001498f
mov rcx, qword [rbx - 0x18]
call fcn.180057684
mov qword [rbx], reloc.WS2_32.dll_ntohs
mov qword [rbx - 8], r14
mov byte [rbx - 0x18], 0
add rbx, 0x28
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x180014980
mov r8, qword [rsp + 0x38]
mov rcx, r8
call fcn.180057684
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x20]
call fcn.180057684
inc rsi
add rbp, 0x28
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x180014775
lea rdx, [rsp + 0x1c0]
mov rcx, r12
call fcn.180016330
mov rbx, rax
lea rax, [rsp + 0x80]
cmp rbx, rax
je 0x180014a9f
mov rcx, qword [rbx + 0x30]
mov qword [rsp + 0xf8], rcx
mov rdx, qword [rbx]
mov qword [rsp + 0xf0], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xd0], rdx
movaps xmm0, xmmword [rsp + 0xf0]
movdqa xmmword [rsp + 0x130], xmm0
movaps xmm1, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0x120], xmm1
lea r9, [rsp + 0x130]
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x160]
mov rcx, rbx
call fcn.180018540
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.180018710
nop
cmp qword [rsp + 0x1e0], 0x10
jb 0x180014ab7
mov rcx, qword [rsp + 0x1c8]
call fcn.180057684
mov qword [rsp + 0x1e0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x1d8], r14
mov byte [rsp + 0x1c8], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rcx
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xe0], rcx
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x140], xmm0
movaps xmm1, xmmword [rsp + 0xe0]
movdqa xmmword [rsp + 0x100], xmm1
lea r9, [rsp + 0x140]
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x80]
call fcn.180018540
mov rcx, qword [rsp + 0xb0]
call fcn.180057684
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r14
mov rcx, qword [rsp + 0x80]
call fcn.180057684
nop
cmp qword [rsp + 0x190], 0x10
jb 0x180014b90
mov rcx, qword [rsp + 0x178]
call fcn.180057684
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
mov r8, qword [rsp + 0x68]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x1800145e0
test r8, r8
je 0x180014c08
cmp r8, rdi
je 0x180014c00
lea rbx, [r8 + 0x20]
nop dword [rax + rax]
cmp qword [rbx], 0x10
jb 0x180014bdf
mov rcx, qword [rbx - 0x18]
call fcn.180057684
mov qword [rbx], reloc.WS2_32.dll_ntohs
mov qword [rbx - 8], r14
mov byte [rbx - 0x18], 0
add rbx, 0x28
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x180014bd0
mov r8, qword [rsp + 0x68]
mov rcx, r8
call fcn.180057684
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov rcx, qword [rsp + 0x50]
call fcn.180057684
nop
cmp qword [r13 + 0x20], 0x10
jb 0x180014c32
mov rcx, qword [r13 + 8]
call fcn.180057684
mov qword [r13 + 0x20], reloc.WS2_32.dll_ntohs
mov qword [r13 + 0x18], r14
mov byte [r13 + 8], 0
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.1800576a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret