Function at 0x180013220
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 [0x180106f10]
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.180016f30
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.180014f90
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 0x1800138bd
nop dword [rax]
cmp rsi, rdx
jb 0x1800132ef
call fcn.180056d3c
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.180014ec0
nop
inc rsi
mov rcx, qword [rsp + 0x188]
test rcx, rcx
je 0x180013878
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rax, qword [rsp + 0x178]
cmp byte [rax], 0x23
je 0x180013878
lea rax, [rcx - 1]
cmp rax, rcx
jbe 0x18001335b
call fcn.180056d3c
mov rcx, qword [rsp + 0x188]
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rax, qword [rsp + 0x178]
cmp byte [rax], 0x5b
jne 0x180013878
lea rbx, [rcx - 1]
cmp rbx, rcx
jbe 0x18001338c
call fcn.180056d3c
lea rax, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rax, qword [rsp + 0x178]
cmp byte [rax + rbx], 0x5d
jne 0x180013878
mov ecx, 8
call fcn.1800564d0
test rax, rax
je 0x1800133cc
lea rcx, [rsp + 0x80]
mov qword [rax], rcx
jmp 0x1800133cf
mov rax, r14
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x80]
call fcn.18001a2e0
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.180014ae0
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 0x180013702
lea rbp, [rsi + rsi*4]
shl rbp, 3
cmp rsi, rdx
jb 0x180013484
call fcn.180056d3c
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 0x1800136d1
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 0x18001350a
lea rbx, [r11 - 1]
cmp rbx, r11
jbe 0x1800134f0
call fcn.180056d3c
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 0x180013702
mov r9d, 0x3d
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.180014f90
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 0x180013670
test rdx, rdx
jne 0x18001355f
call fcn.180056d3c
mov r8, qword [rsp + 0x38]
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x1f0]
mov rcx, r12
call fcn.180014ec0
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 0x1800135e1
cmp rdx, 1
ja 0x1800135c9
call fcn.180056d3c
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.1800142f0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.180003d60
nop
cmp qword [rsp + 0x1b8], 0x10
jb 0x180013626
mov rcx, qword [rsp + 0x1a0]
call fcn.180056490
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 0x180013666
mov rcx, qword [rsp + 0x1f8]
call fcn.180056490
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jmp 0x180013670
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x1800136b8
cmp r8, rdi
je 0x1800136b0
lea rbx, [r8 + 0x20]
nop
cmp qword [rbx], 0x10
jb 0x18001368f
mov rcx, qword [rbx - 0x18]
call fcn.180056490
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 0x180013680
mov r8, qword [rsp + 0x38]
mov rcx, r8
call fcn.180056490
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x20]
call fcn.180056490
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 0x180013475
lea rdx, [rsp + 0x1c0]
mov rcx, r12
call fcn.1800151c0
mov rbx, rax
lea rax, [rsp + 0x80]
cmp rbx, rax
je 0x18001379f
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.180017650
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.180017820
nop
cmp qword [rsp + 0x1e0], 0x10
jb 0x1800137b7
mov rcx, qword [rsp + 0x1c8]
call fcn.180056490
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.180017650
mov rcx, qword [rsp + 0xb0]
call fcn.180056490
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r14
mov rcx, qword [rsp + 0x80]
call fcn.180056490
nop
cmp qword [rsp + 0x190], 0x10
jb 0x180013890
mov rcx, qword [rsp + 0x178]
call fcn.180056490
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 0x1800132e0
test r8, r8
je 0x180013908
cmp r8, rdi
je 0x180013900
lea rbx, [r8 + 0x20]
nop dword [rax + rax]
cmp qword [rbx], 0x10
jb 0x1800138df
mov rcx, qword [rbx - 0x18]
call fcn.180056490
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 0x1800138d0
mov r8, qword [rsp + 0x68]
mov rcx, r8
call fcn.180056490
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov rcx, qword [rsp + 0x50]
call fcn.180056490
nop
cmp qword [r13 + 0x20], 0x10
jb 0x180013932
mov rcx, qword [r13 + 8]
call fcn.180056490
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.1800564b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret