Function at 0x140162d10
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rdx
lea r10d, [r8 - 1]
mov eax, 0x55555556
movzx r14d, r9b
mov ebp, r8d
mov rdi, rcx
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
test r9b, r9b
lea esi, [rdx*4 + 5]
je 0x140162d6d
mov eax, 0x4bda12f7
imul ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
add esi, edx
mov rcx, qword [rcx]
mov eax, 0xaaaaaaab
mov ebx, reloc.COMCTL32.dll_InitCommonControls
mul ebp
mov r12d, edx
shr r12d, 1
test rcx, rcx
jne 0x140162d95
test esi, esi
je 0x140162d95
movsxd rcx, esi
call fcn.140124300
jmp 0x140162da2
cmp esi, dword [rdi + 8]
jle 0x140162da8
movsxd rdx, esi
call fcn.14013b990
mov dword [rdi + 8], esi
mov qword [rdi], rax
test r12d, r12d
mov r9, qword [rdi]
jle 0x140162e63
mov r8d, r12d
nop
nop
nop
movzx eax, byte [r13 + 1]
movzx ecx, byte [r13]
add r9, 4
shl ecx, 8
add r13, 3
or ecx, eax
movzx eax, byte [r13 - 1]
shl ecx, 8
or ecx, eax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movsxd rdx, ecx
mov rcx, rdx
sar rcx, 0x12
movzx ecx, byte [rcx + rax]
mov byte [r9 - 4], cl
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov rcx, rdx
sar rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + rax]
mov byte [r9 - 3], cl
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov rcx, rdx
sar rcx, 6
and ecx, 0x3f
movzx ecx, byte [rcx + rax]
mov byte [r9 - 2], cl
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, dl
and ecx, 0x3f
test r14b, r14b
movzx ecx, byte [rcx + rax]
mov byte [r9 - 1], cl
je 0x140162e59
test ebx, ebx
jne 0x140162e56
mov byte [r9], 0xa
add r9, 1
mov ebx, reloc.WS2_32.dll_select
sub ebx, 1
sub r8, 1
jne 0x140162dc0
lea eax, [r12 + r12*2]
sub ebp, eax
cmp ebp, 1
jne 0x140162eb2
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [r13]
shr rcx, 2
movzx ecx, byte [rcx + rax]
mov byte [r9], cl
mov al, byte [r13]
and eax, 3
shl eax, 4
movsxd rcx, eax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rcx + rax]
mov byte [r9 + 1], cl
mov byte [r9 + 2], 0x3d
mov byte [r9 + 3], 0x3d
mov byte [r9 + 4], 0
jmp 0x140162f20
cmp ebp, 2
jne 0x140162f1c
movzx eax, byte [r13 + 1]
movzx r8d, byte [r13]
shl r8d, 8
or r8d, eax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movsxd rdx, r8d
and r8d, 0xf
mov rcx, rdx
sar rdx, 4
sar rcx, 0xa
and edx, 0x3f
shl r8d, 2
movzx ecx, byte [rcx + rax]
mov byte [r9], cl
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rdx + rax]
mov byte [r9 + 1], cl
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movsxd rcx, r8d
movzx ecx, byte [rcx + rax]
mov byte [r9 + 2], cl
mov byte [r9 + 3], 0x3d
mov byte [r9 + 4], 0
jmp 0x140162f20
mov byte [r9], 0
mov rax, qword [rdi]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop r12
ret