Function at 0x1800f81c0
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 rdi, rdx
mov r12, rcx
lea rdx, [rsp + 0x58]
mov rcx, r8
xor r13b, r13b
call fcn.1800fbcf0
xor r15b, r15b
mov byte [rdi + 0x18], al
test al, al
je 0x1800f8807
mov rbp, qword [rsp + 0x58]
mov ebx, 0x80000000
movzx eax, r15b
lea r8, [0x180000000]
imul rsi, rax, 0x68
mov r10d, 8
add rsi, rdi
mov byte [rsi + 0x20], r15b
lea r14, [rsi + 0x20]
movzx eax, byte [rbp]
shr eax, 6
mov dword [rsi + 0x28], eax
movzx eax, byte [rbp + 1]
and al, 0xf
mov byte [rsi + 0x2c], al
movzx ecx, byte [rbp]
and ecx, 0x3f
sub ecx, 1
je 0x1800f82a1
sub ecx, 1
je 0x1800f8279
cmp ecx, 1
jne 0x1800f839a
mov dword [rsi + 0x24], 4
mov word [rsi + 0x34], r10w
mov qword [rsi + 0x80], 1
mov word [rsi + 0x78], 0
jmp 0x1800f839a
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1800f7d60
mov rbp, qword [rsp + 0x58]
lea r8, [0x180000000]
mov r10d, 8
jmp 0x1800f839a
mov dword [r14 + 4], 1
movzx eax, byte [rbp + 9]
and eax, 7
movsxd rcx, eax
mov eax, dword [r8 + rcx*4 + 0xf8854]
add rax, r8
jmp rax
movzx eax, word [rbp + 0xa]
and eax, 0x1ff
jmp 0x1800f8396
movzx ecx, byte [r12 + 0x25]
mov ecx, dword [r8 + rcx*4 + 0x248980]
movzx edx, byte [rbp + 0xa]
and dl, 0x3f
call fcn.1800f62c0
mov rbp, qword [rsp + 0x58]
lea r8, [0x180000000]
mov r10d, 8
jmp 0x1800f8396
mov dword [r14 + 0x24], eax
cmp dword [rsi + 0x24], 0
jne 0x1800f86b2
movzx eax, byte [rbp + 9]
and eax, 0x3f
mov dword [rsi + 0x30], eax
movzx edx, byte [rbp]
and edx, 0x3f
lea eax, [rdx - 4]
cmp eax, 0x12
ja case.default.0x1800f83ce
cdqe
mov ecx, dword [r8 + rax*4 + 0xf8870]
add rcx, r8
jmp rcx
mov ebx, 1
jmp 0x1800f8477
mov ebx, 4
jmp 0x1800f8477
movzx eax, byte [rdi + 0x16]
cmp al, 0x10
jne 0x1800f83f6
mov ebx, 2
jmp 0x1800f8477
xor ebx, ebx
cmp al, 0x20
setne bl
add ebx, 3
jmp 0x1800f8477
movzx eax, byte [rdi + 0x16]
cmp al, 0x10
jne 0x1800f83f6
mov ebx, 3
jmp 0x1800f8477
xor ebx, ebx
cmp byte [rdi + 0x16], 0x10
setne bl
add ebx, 2
jmp 0x1800f8477
movzx eax, byte [rdi + 0x17]
cmp al, 0x10
jne 0x1800f83f6
mov ebx, 2
jmp 0x1800f8477
mov ebx, 5
jmp 0x1800f8477
mov ebx, 6
jmp 0x1800f8477
mov ebx, 7
jmp 0x1800f8477
mov ebx, r10d
jmp 0x1800f8477
mov ebx, 9
jmp 0x1800f8477
mov ebx, 0xa
jmp 0x1800f8477
mov ebx, reloc.WS2_32.dll_select
jmp 0x1800f8477
mov ebx, reloc.WS2_32.dll_listen
jmp 0x1800f8477
mov ebx, reloc.WS2_32.dll_ntohs
jmp 0x1800f8477
mov ebx, reloc.WS2_32.dll_recv
jmp 0x1800f8477
mov ebx, select
movzx eax, byte [rbp + 9]
and eax, 0x3f
dec eax
cdqe
mov ecx, dword [r8 + rax*4 + 0xf88bc]
add rcx, r8
jmp rcx
mov r8d, 2
mov r9d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.1800f6690
mov dword [r14 + 4], 1
cmp ebx, 1
jne 0x1800f8501
test byte [rdi + 0x430], 4
je 0x1800f84f2
cmp al, 4
jb 0x1800f84f2
movzx eax, al
mov ecx, 0x24
add eax, 5
add rcx, r14
jmp 0x1800f8514
mov r8d, 4
jmp 0x1800f8495
movzx eax, al
mov ecx, 0x24
inc eax
add rcx, r14
jmp 0x1800f8514
movzx edx, al
mov ecx, ebx
call fcn.1800f62c0
mov rbp, qword [rsp + 0x58]
lea rcx, [r14 + 0x24]
mov dword [rcx], eax
mov ebx, 0x80000000
test byte [rbp + 0xc], 1
je 0x1800f86b2
or byte [rsi + 0x40], 1
jmp 0x1800f86b2
lea eax, [rdx - 0x17]
cmp eax, 9
ja case.0x1800f8547.27
cdqe
mov ecx, dword [r8 + rax*4 + 0xf88d4]
add rcx, r8
jmp rcx
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1800f7ec0
test eax, eax
js 0x1800f8835
jmp 0x1800f8602
mov r9d, 7
jmp 0x1800f854c
mov r9d, r10d
jmp 0x1800f854c
mov r9d, 9
jmp 0x1800f854c
mov dword [rsi + 0x24], 3
mov eax, dword [rdi + 0x5b8]
mov dword [rsi + 0x74], eax
movzx eax, word [rdi + 0x5d0]
mov word [rsi + 0x70], ax
jmp case.0x1800f8547.27
xor r9d, r9d
mov byte [rsi + 0x2c], 0
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1800f7ec0
test eax, eax
js 0x1800f8835
mov dword [rsi + 0x48], 2
jmp 0x1800f8602
mov dword [rsi + 0x24], 2
mov dword [rsi + 0x48], 1
mov byte [rsi + 0x60], 1
mov rax, qword [rdi + 0x5a0]
mov qword [rsi + 0x68], rax
jmp case.0x1800f8547.27
xor r9d, r9d
mov byte [rsi + 0x2c], 0
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1800f7ec0
test eax, eax
js 0x1800f8835
mov dword [rsi + 0x48], 3
mov rbp, qword [rsp + 0x58]
cmp dword [rsi + 0x24], 0
je 0x1800f863c
mov eax, dword [rdi + 0xc]
cmp eax, 4
je 0x1800f861e
cmp eax, 5
jne 0x1800f86b2
cmp byte [rdi + 0x5a8], 8
jne 0x1800f86b2
movzx eax, byte [r12 + 0x40]
imul rax, qword [rsi + 0x68]
mov qword [rsi + 0x68], rax
jmp 0x1800f86b2
movzx ecx, byte [rbp]
and ecx, 0x3f
sub ecx, 0x1b
je 0x1800f864d
cmp ecx, 1
jne 0x1800f86b2
mov dword [rsi + 0x24], 4
movzx eax, byte [r12 + 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 [rsi + 0x34], cx
lea rcx, [rdi + rax*8]
movzx eax, byte [rbp + 9]
and al, 0x3f
cmp al, 5
jne 0x1800f8689
movzx eax, byte [rcx]
and eax, 0xf
jmp 0x1800f868c
mov rax, qword [rcx]
mov qword [rsi + 0x80], rax
inc r13b
lea rax, [rdx + rdx*2]
lea rcx, [rdi + rax*8]
movzx eax, byte [rcx + 0x5b0]
mov byte [rsi + 0x78], al
movzx eax, byte [rcx + 0x5b1]
mov byte [rsi + 0x79], al
cmp dword [rsi + 0x24], 2
jne 0x1800f87cf
movzx edx, byte [rbp + 0xc]
lea rcx, [rdi + 0x430]
test dl, 2
jne 0x1800f8781
mov eax, dword [rcx]
bt rax, 0x1c
jae 0x1800f86e5
mov dword [rsi + 0x4c], 0xc7
jmp 0x1800f87cf
test dl, 2
jne 0x1800f8781
mov eax, dword [rcx]
bt rax, 0x1d
jb 0x1800f87bf
bt rax, 0x1e
jae 0x1800f8717
movzx eax, r15b
imul rcx, rax, 0x68
mov dword [rcx + rdi + 0x4c], 0xc9
jmp 0x1800f87cf
test dl, 2
jne 0x1800f8781
mov eax, dword [rcx]
test rbx, rax
je 0x1800f8738
movzx eax, r15b
imul rcx, rax, 0x68
mov dword [rcx + rdi + 0x4c], 0xc6
jmp 0x1800f87cf
lea rcx, [rdi + 0x430]
movabs rax, 0x100000000
test qword [rcx], rax
je 0x1800f8760
movzx eax, r15b
imul rcx, rax, 0x68
mov dword [rcx + rdi + 0x4c], 0xca
jmp 0x1800f87cf
movabs rax, 0x200000000
test qword [rcx], rax
je 0x1800f8781
movzx eax, r15b
imul rcx, rax, 0x68
mov dword [rcx + rdi + 0x4c], 0xcb
jmp 0x1800f87cf
movzx eax, r15b
imul rcx, rax, 0x68
cmp dword [rcx + rdi + 0x4c], 0
jne 0x1800f87cf
movzx eax, r15b
imul rcx, rax, 0x68
movsxd rax, dword [rcx + rdi + 0x50]
cmp eax, 0x39
je 0x1800f87bf
cmp eax, 0x3a
ja 0x1800f8702
movabs rcx, 0x400060006000000
bt rcx, rax
jae 0x1800f8702
movzx eax, r15b
imul rcx, rax, 0x68
mov dword [rcx + rdi + 0x4c], 0xc8
movzx eax, r15b
mov r9, rbp
imul r8, rax, 0x68
mov rdx, rdi
mov rcx, r12
add r8, 0x20
add r8, rdi
call fcn.1800fa440
mov rbp, qword [rsp + 0x58]
inc r15b
add rbp, 0xd
mov qword [rsp + 0x58], rbp
cmp r15b, byte [rdi + 0x18]
jb 0x1800f820a
cmp dword [rdi + 0x4b0], 2
jne 0x1800f8830
movzx ecx, byte [rdi + 0x2c]
sub ecx, 2
je 0x1800f8824
cmp ecx, 1
jne 0x1800f8830
mov byte [rdi + 0x2c], 9
jmp 0x1800f8830
cmp dword [rdi + 0x24], 2
setne al
add al, 8
mov byte [rdi + 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