Function at 0x1800d1d90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov r15, rcx
lea rdx, [rsp + 0x58]
mov rcx, r8
xor r13b, r13b
call fcn.1800d5880
xor r12b, r12b
mov byte [rsi + 0x18], al
test al, al
je 0x1800d2417
mov rbp, qword [rsp + 0x58]
mov ebx, 0x80000000
movzx eax, r12b
lea r8, [0x180000000]
imul rdi, rax, 0x68
mov r10d, 8
add rdi, rsi
mov byte [rdi + 0x20], r12b
movzx eax, byte [rbp]
shr eax, 6
mov dword [rdi + 0x28], eax
movzx eax, byte [rbp + 1]
and al, 0xf
mov byte [rdi + 0x2c], al
movzx ecx, byte [rbp]
and ecx, 0x3f
sub ecx, 1
je 0x1800d1e6e
sub ecx, 1
je 0x1800d1e45
cmp ecx, 1
jne 0x1800d1f61
mov dword [rdi + 0x24], 4
mov word [rdi + 0x34], r10w
mov qword [rdi + 0x80], 1
mov word [rdi + 0x78], 0
jmp 0x1800d1f61
mov r9, rbp
lea r8, [rdi + 0x20]
mov rdx, rsi
mov rcx, r15
call fcn.1800d1920
mov rbp, qword [rsp + 0x58]
lea r8, [0x180000000]
mov r10d, 8
jmp 0x1800d1f61
mov dword [rdi + 0x24], 1
movzx eax, byte [rbp + 9]
and eax, 7
movsxd rcx, eax
mov eax, dword [r8 + rcx*4 + 0xd2464]
add rax, r8
jmp rax
movzx eax, word [rbp + 0xa]
and eax, 0x1ff
jmp 0x1800d1f5e
movzx eax, byte [r15 + 0x25]
mov ecx, dword [r8 + rax*4 + 0x2051f0]
movzx edx, byte [rbp + 0xa]
and dl, 0x3f
call fcn.1800cfee0
mov rbp, qword [rsp + 0x58]
lea r8, [0x180000000]
mov r10d, 8
jmp 0x1800d1f5e
mov dword [rdi + 0x44], eax
cmp dword [rdi + 0x24], 0
jne 0x1800d2311
movzx eax, byte [rbp + 9]
and eax, 0x3f
mov dword [rdi + 0x30], eax
movzx edx, byte [rbp]
and edx, 0x3f
lea eax, [rdx - 4]
cmp eax, 0x12
ja case.default.0x1800d1f95
cdqe
mov ecx, dword [r8 + rax*4 + 0xd2480]
add rcx, r8
jmp rcx
mov ebx, 1
jmp 0x1800d203e
mov ebx, 4
jmp 0x1800d203e
movzx eax, byte [rsi + 0x16]
cmp al, 0x10
jne 0x1800d1fbd
mov ebx, 2
jmp 0x1800d203e
xor ebx, ebx
cmp al, 0x20
setne bl
add ebx, 3
jmp 0x1800d203e
movzx eax, byte [rsi + 0x16]
cmp al, 0x10
jne 0x1800d1fbd
mov ebx, 3
jmp 0x1800d203e
xor ebx, ebx
cmp byte [rsi + 0x16], 0x10
setne bl
add ebx, 2
jmp 0x1800d203e
movzx eax, byte [rsi + 0x17]
cmp al, 0x10
jne 0x1800d1fbd
mov ebx, 2
jmp 0x1800d203e
mov ebx, 5
jmp 0x1800d203e
mov ebx, 6
jmp 0x1800d203e
mov ebx, 7
jmp 0x1800d203e
mov ebx, r10d
jmp 0x1800d203e
mov ebx, 9
jmp 0x1800d203e
mov ebx, 0xa
jmp 0x1800d203e
mov ebx, reloc.WS2_32.dll_select
jmp 0x1800d203e
mov ebx, reloc.WS2_32.dll_listen
jmp 0x1800d203e
mov ebx, reloc.WS2_32.dll_ntohs
jmp 0x1800d203e
mov ebx, reloc.WS2_32.dll_recv
jmp 0x1800d203e
mov ebx, select
movzx eax, byte [rbp + 9]
and eax, 0x3f
dec eax
cdqe
mov ecx, dword [r8 + rax*4 + 0xd24cc]
add rcx, r8
jmp rcx
mov r8d, 2
mov r9d, ebx
mov rdx, rsi
mov rcx, r15
call fcn.1800d02a0
mov dword [rdi + 0x24], 1
cmp ebx, 1
jne 0x1800d20a1
test byte [rsi + 0x430], 4
je 0x1800d208b
cmp al, 4
jb 0x1800d208b
movzx eax, al
add eax, 5
jmp 0x1800d2090
movzx eax, al
inc eax
mov edx, 0x24
lea rcx, [rdi + 0x20]
mov dword [rcx + rdx], eax
jmp 0x1800d2174
movzx edx, al
mov ecx, ebx
call fcn.1800cfee0
mov rbp, qword [rsp + 0x58]
mov dword [rdi + 0x44], eax
jmp 0x1800d2174
mov r8d, 4
jmp 0x1800d205c
test byte [rbp + 0xc], 1
mov ebx, 0x80000000
je 0x1800d2311
or byte [rdi + 0x40], 1
jmp 0x1800d2311
lea eax, [rdx - 0x17]
cmp eax, 9
ja case.0x1800d21a5.27
cdqe
mov ecx, dword [r8 + rax*4 + 0xd24e4]
add rcx, r8
jmp rcx
xor r9d, r9d
lea r8, [rdi + 0x20]
mov rdx, rsi
mov rcx, r15
call fcn.1800d1a90
test eax, eax
js 0x1800d2445
jmp 0x1800d2263
mov r9d, 7
jmp 0x1800d21aa
mov r9d, r10d
jmp 0x1800d21aa
mov r9d, 9
jmp 0x1800d21aa
mov dword [rdi + 0x24], 3
mov eax, dword [rsi + 0x5b8]
mov dword [rdi + 0x74], eax
movzx eax, word [rsi + 0x5d0]
mov word [rdi + 0x70], ax
jmp case.0x1800d21a5.27
xor r9d, r9d
mov byte [rdi + 0x2c], 0
lea r8, [rdi + 0x20]
mov rdx, rsi
mov rcx, r15
call fcn.1800d1a90
test eax, eax
js 0x1800d2445
mov dword [rdi + 0x48], 2
jmp 0x1800d2263
mov dword [rdi + 0x24], 2
mov dword [rdi + 0x48], 1
mov byte [rdi + 0x60], 1
mov rax, qword [rsi + 0x5a0]
mov qword [rdi + 0x68], rax
jmp case.0x1800d21a5.27
xor r9d, r9d
mov byte [rdi + 0x2c], 0
lea r8, [rdi + 0x20]
mov rdx, rsi
mov rcx, r15
call fcn.1800d1a90
test eax, eax
js 0x1800d2445
mov dword [rdi + 0x48], 3
mov rbp, qword [rsp + 0x58]
cmp dword [rdi + 0x24], 0
je 0x1800d229c
mov eax, dword [rsi + 0xc]
cmp eax, 4
je 0x1800d227f
cmp eax, 5
jne 0x1800d2311
cmp byte [rsi + 0x5a8], 8
jne 0x1800d2311
movzx eax, byte [r15 + 0x40]
imul rax, qword [rdi + 0x68]
mov qword [rdi + 0x68], rax
jmp 0x1800d2311
movzx ecx, byte [rbp]
and ecx, 0x3f
sub ecx, 0x1b
je 0x1800d22ad
cmp ecx, 1
jne 0x1800d2311
mov dword [rdi + 0x24], 4
movzx eax, byte [r15 + 0x25]
movzx edx, r13b
movzx ecx, word [rbp + rax*2 + 2]
shl cx, 3
lea rax, [rdx + 0x3d]
lea rax, [rax + rax*2]
mov word [rdi + 0x34], cx
lea rcx, [rsi + rax*8]
movzx eax, byte [rbp + 9]
and al, 0x3f
cmp al, 5
jne 0x1800d22e8
movzx eax, byte [rcx]
and eax, 0xf
jmp 0x1800d22eb
mov rax, qword [rcx]
mov qword [rdi + 0x80], rax
inc r13b
lea rax, [rdx + rdx*2]
lea rcx, [rsi + rax*8]
movzx eax, byte [rcx + 0x5b0]
mov byte [rdi + 0x78], al
movzx eax, byte [rcx + 0x5b1]
mov byte [rdi + 0x79], al
cmp dword [rdi + 0x24], 2
jne 0x1800d23ea
movzx ecx, byte [rbp + 0xc]
test cl, 2
jne 0x1800d23b6
mov eax, dword [rsi + 0x430]
bt rax, 0x1c
jae 0x1800d2341
mov dword [rdi + 0x4c], 0xc7
jmp 0x1800d23ea
test cl, 2
jne 0x1800d23b6
mov eax, dword [rsi + 0x430]
bt rax, 0x1d
jb 0x1800d23e3
bt rax, 0x1e
jae 0x1800d236a
mov dword [rdi + 0x4c], 0xc9
jmp 0x1800d23ea
mov eax, dword [rsi + 0x430]
test rbx, rax
je 0x1800d237e
mov dword [rdi + 0x4c], 0xc6
jmp 0x1800d23ea
movabs rax, 0x100000000
test qword [rsi + 0x430], rax
je 0x1800d239a
mov dword [rdi + 0x4c], 0xca
jmp 0x1800d23ea
movabs rax, 0x200000000
test qword [rsi + 0x430], rax
je 0x1800d23b6
mov dword [rdi + 0x4c], 0xcb
jmp 0x1800d23ea
cmp dword [rdi + 0x4c], 0
jne 0x1800d23ea
movsxd rax, dword [rdi + 0x50]
cmp eax, 0x39
je 0x1800d23e3
cmp eax, 0x3a
ja 0x1800d23da
movabs rcx, 0x400060006000000
bt rcx, rax
jb 0x1800d23e3
mov dword [rdi + 0x4c], 0xc9
jmp 0x1800d23ea
mov dword [rdi + 0x4c], 0xc8
mov r9, rbp
lea r8, [rdi + 0x20]
mov rdx, rsi
mov rcx, r15
call fcn.1800d3f80
mov rbp, qword [rsp + 0x58]
inc r12b
add rbp, 0xd
mov qword [rsp + 0x58], rbp
cmp r12b, byte [rsi + 0x18]
jb 0x1800d1dda
cmp dword [rsi + 0x4b0], 2
jne 0x1800d2440
movzx ecx, byte [rsi + 0x2c]
sub ecx, 2
je 0x1800d2434
cmp ecx, 1
jne 0x1800d2440
mov byte [rsi + 0x2c], 9
jmp 0x1800d2440
cmp dword [rsi + 0x24], 2
setne al
add al, 8
mov byte [rsi + 0x2c], al
mov eax, 0x100000
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret