Function at 0x140036710
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r11, r9
mov rsi, r8
mov rdi, rdx
mov r9, rcx
or r10, 0xffffffffffffffff
nop
inc r10
cmp byte [rcx + r10], 0
jne 0x140036730
xor ebx, ebx
test r10b, 3
je 0x140036773
test r11, r11
je 0x140036760
mov r10, qword [r11 + 8]
test r10, r10
je 0x140036760
mov rcx, qword [r11]
lea r9d, [rbx + 0x56]
lea edx, [rbx + 0xc]
xor r8d, r8d
call r10
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test r10, r10
jne 0x14003678d
mov qword [r8], rbx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, r10
shr rax, 2
cmp byte [r10 + r9 - 1], 0x3d
lea rcx, [rax + rax*2]
jne 0x1400367ae
dec rcx
cmp byte [r10 + r9 - 2], 0x3d
jne 0x1400367ae
dec rcx
cmp qword [r8], rcx
jae 0x1400367e6
test r11, r11
je 0x140036760
mov rax, qword [r11 + 8]
test rax, rax
je 0x140036760
mov rcx, qword [r11]
mov r9d, WSAGetLastError
xor r8d, r8d
lea edx, [r9 - 0x62]
call rax
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test r10, r10
je 0x140036973
dec r10
mov qword [rsp + 0x30], rbp
lea r11, [r9 + 1]
shr r10, 2
mov ebp, 0x3f
inc r10
nop word [rax + rax]
movzx r8d, byte [r11 - 1]
lea eax, [r8 - 0x41]
cmp al, 0x19
ja 0x140036823
sub r8b, 0x41
jmp 0x14003685a
lea eax, [r8 - 0x61]
cmp al, 0x19
ja 0x140036831
sub r8b, 0x47
jmp 0x14003685a
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14003683f
add r8b, 4
jmp 0x14003685a
cmp r8b, 0x2b
jne 0x14003684a
mov r8b, 0x3e
jmp 0x14003685a
cmp r8b, 0x2d
mov eax, 0xff
cmove eax, ebp
movzx r8d, al
movzx edx, byte [r11]
lea eax, [rdx - 0x41]
cmp al, 0x19
ja 0x14003686a
sub dl, 0x41
jmp 0x140036899
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x140036876
sub dl, 0x47
jmp 0x140036899
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140036882
add dl, 4
jmp 0x140036899
cmp dl, 0x2b
jne 0x14003688b
mov dl, 0x3e
jmp 0x140036899
cmp dl, 0x2d
mov eax, 0xff
cmove eax, ebp
movzx edx, al
movzx ecx, byte [r11 + 1]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x1400368aa
sub cl, 0x41
jmp 0x1400368d9
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x1400368b6
sub cl, 0x47
jmp 0x1400368d9
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400368c2
add cl, 4
jmp 0x1400368d9
cmp cl, 0x2b
jne 0x1400368cb
mov cl, 0x3e
jmp 0x1400368d9
cmp cl, 0x2d
mov eax, 0xff
cmove eax, ebp
movzx ecx, al
movzx r9d, byte [r11 + 2]
lea eax, [r9 - 0x41]
cmp al, 0x19
ja 0x1400368ec
sub r9b, 0x41
jmp 0x140036923
lea eax, [r9 - 0x61]
cmp al, 0x19
ja 0x1400368fa
sub r9b, 0x47
jmp 0x140036923
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x140036908
add r9b, 4
jmp 0x140036923
cmp r9b, 0x2b
jne 0x140036913
mov r9b, 0x3e
jmp 0x140036923
cmp r9b, 0x2d
mov eax, 0xff
cmove eax, ebp
movzx r9d, al
shl r8b, 2
movzx eax, dl
inc rbx
shr al, 4
add al, r8b
mov byte [rbx + rdi - 1], al
cmp cl, 0xff
je 0x140036961
shl dl, 4
movzx eax, cl
inc rbx
shr al, 2
add al, dl
mov byte [rbx + rdi - 1], al
cmp r9b, 0xff
je 0x140036961
shl cl, 6
add cl, r9b
inc rbx
mov byte [rbx + rdi - 1], cl
add r11, 4
dec r10
jne 0x140036810
mov rbp, qword [rsp + 0x30]
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret