Function at 0x1400045b0
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, 0x40
mov r14d, r9d
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x2c], esi
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdx], sil
mov dword [rsp + 0x2c], 1
mov ebp, esi
test r9d, r9d
je 0x140004953
mov ecx, esi
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
dec r14d
movzx eax, byte [r8]
inc r8
mov qword [rsp + 0x30], r8
mov byte [rsp + rcx + 0x24], al
inc ebp
inc rcx
movzx edx, byte [rsp + 0x26]
movzx r15d, byte [rsp + 0x25]
movzx r12d, byte [rsp + 0x24]
cmp rcx, 3
jne 0x140004804
movzx eax, r12b
shr al, 2
movzx ecx, al
mov byte [rsp + 0x28], cl
movzx ebp, r12b
and bpl, 3
shl bpl, 4
movzx eax, r15b
shr al, 4
add bpl, al
movzx r13d, r15b
and r13b, 0xf
shl r13b, 2
movzx eax, dl
shr al, 6
add r13b, al
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x20], al
lea rax, [0x1402dc008]
cmp qword [0x1402dc020], 0xf
cmova rax, qword [0x1402dc008]
movzx r9d, byte [rcx + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400046cd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400046c2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400046de
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000aea0
lea rcx, [0x1402dc008]
cmp qword [0x1402dc020], 0xf
cmova rcx, qword [0x1402dc008]
movzx eax, bpl
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14000472a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14000471f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000473b
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000aea0
lea rbp, [0x1402dc008]
mov rcx, rbp
cmp qword [0x1402dc020], 0xf
cmova rcx, qword [0x1402dc008]
movzx eax, r13b
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14000478a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14000477f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000479b
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000aea0
mov rcx, rbp
cmp qword [0x1402dc020], 0xf
cmova rcx, qword [0x1402dc008]
movzx eax, byte [rsp + 0x20]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400047e4
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400047d9
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400047f5
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000aea0
mov ebp, esi
mov rcx, rsi
mov r8, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x26]
test r14d, r14d
jne 0x140004610
test ebp, ebp
je 0x140004953
movsxd rax, ebp
cmp rax, 3
jge 0x140004843
jae 0x140004974
mov byte [rsp + rax + 0x24], 0
inc rax
cmp rax, 3
jl 0x14000481e
movzx edx, byte [rsp + 0x26]
movzx r15d, byte [rsp + 0x25]
movzx r12d, byte [rsp + 0x24]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x28], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x29], r12b
and r15b, 0xf
shl r15b, 2
movzx eax, dl
shr al, 6
add r15b, al
mov byte [rsp + 0x2a], r15b
and dl, 0x3f
mov byte [rsp + 0x2b], dl
lea eax, [rbp + 1]
movsxd r14, eax
test eax, eax
jle 0x1400048f7
movzx ebx, byte [rsp + 0x20]
lea rcx, [0x1402dc008]
cmp qword [0x1402dc020], 0xf
cmova rcx, qword [0x1402dc008]
movzx eax, byte [rsp + rsi + 0x28]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400048de
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400048d3
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400048ef
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000aea0
inc rsi
cmp rsi, r14
jl 0x140004891
cmp ebp, 3
jge 0x140004953
mov esi, 3
sub esi, ebp
movzx ebx, byte [rsp + 0x20]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140004939
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140004931
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x14000494d
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000aea0
sub rsi, 1
jne 0x140004910
mov rax, rdi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1401ca740
int3