Function at 0x140004c85
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
lea r15, [rsp + 0x38]
mov qword [r15 - 0x10], r14
mov qword [r15 - 8], r8
mov qword [r15], rdx
mov qword [r15 + 8], r8
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], r8
mov eax, 1
mov qword [r15 + 0x20], rax
movabs rcx, 0x3a0000003a
mov qword [r15 + 0x28], rcx
mov word [r15 + 0x30], 1
mov qword [r15 - 0x18], rax
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov rdx, r15
call fcn.140012a81
cmp qword [rbx], r14
je 0x140004d13
mov rbx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
add rdi, rcx
sub rbx, rcx
mov qword [rsp + 0x28], rax
jmp 0x140004d3f
cmp byte [rsp + 0x69], 0
jne 0x140004d3d
mov byte [rsp + 0x69], 1
cmp byte [rsp + 0x68], 0
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
jne 0x140004e19
cmp rbx, rdi
jne 0x140004e19
xor edi, edi
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140004d96
cmp rax, 1
jne 0x140004d87
mov qword [rsp + 0x20], 0
cmp byte [rsp + 0x69], 0
jne 0x140004d96
mov byte [rsp + 0x69], 1
cmp byte [rsp + 0x68], 0
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
jne 0x140004d7a
cmp r15, r14
je 0x140004d96
sub r15, r14
add r14, qword [rsp + 0x38]
jmp 0x140004e53
dec rax
mov qword [rsp + 0x20], rax
cmp byte [rsp + 0x69], 0
je 0x140004dde
mov ecx, 0x14
xor edx, edx
call fcn.1400210cb
movups xmm0, xmmword [str.password_is_requiredproxy_port_is_invalid:__invalid_proxy_protocol:]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0x64657269
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], 0x14
mov qword [rsi], 0
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsp + 0x38]
lea r12, [rsp + 0x70]
mov rcx, r12
mov rdx, r15
call fcn.140012a81
cmp qword [r12], 0
je 0x140004e26
mov r15, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
add r14, rcx
sub r15, rcx
mov qword [rsp + 0x28], rax
jmp 0x140004e53
sub rbx, rdi
add rdi, qword [rsp + 0x38]
jmp 0x140004d3f
cmp byte [rsp + 0x69], 0
jne 0x140004e50
mov byte [rsp + 0x69], 1
cmp byte [rsp + 0x68], 0
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
jne 0x140004d7a
cmp r15, r14
jne 0x140004d7a
xor r14d, r14d
test rdi, rdi
je 0x140004d96
test r14, r14
je 0x140004d96
lea rcx, [rsp + 0xe8]
mov rdx, rdi
mov r8, rbx
call fcn.14001a9d3
lea rcx, [rsp + 0x100]
mov rdx, r14
mov r8, r15
call fcn.14001a9d3
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rbx
lea rax, [0x1400b7c50]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r15
mov eax, 8
xor r12d, r12d
lea rcx, [rax + 0x10]
cmp rcx, 0x48
je 0x140004ee1
add r12, qword [rsp + rax + 0x70]
mov rax, rcx
jae 0x140004ec8
jmp 0x140005578
xor ebp, ebp
mov rcx, r12
xor edx, edx
call fcn.1400210cb
lea r14, [rsp + 0xa0]
mov qword [r14], rax
mov qword [r14 + 8], rdx
mov qword [r14 + 0x10], 0
add rbx, rdi
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.140020e6d
mov rdi, qword [r14]
mov rax, qword [r14 + 0x10]
lea rcx, [rdi + rax]
mov rbx, r12
sub rbx, rax
mov eax, 1
shl rax, 4
mov r8, qword [rsp + rax + 0x78]
sub rbx, r8
jb 0x140005578
mov rdx, qword [rsp + rax + 0x70]
lea r14, [rcx + r8]
call fcn.14009d5c0
mov eax, 2
mov rcx, r14
test bpl, 1
mov bpl, 1
je 0x140004f2b
sub r12, rbx
movabs rcx, 0xaaaaaaaaaaaaaaab
mov rax, r12
mul rcx
mov rax, r12
shr rax, 0x3e
cmp eax, 2
ja 0x140005578
mov rbx, rdx
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xe0], rax
shr rbx, 1
lea rax, [rbx + rbx*2]
mov rbp, r12
sub rbp, rax
shl rbx, 2
test rbp, rbp
je 0x140004fb2
add rbx, 4
jb 0x140005578
mov rcx, rbx
mov dl, 1
call fcn.1400210cb
mov r14, rax
mov qword [rsp + 0xd8], rdx
xor eax, eax
mov rdx, r12
mov ecx, 0
sub rdx, 0x1a
cmovb rdx, rax
jbe 0x1400052c4
mov eax, 0x20
xor ecx, ecx
lea r8, [0x1400acf9b]
lea r9, [rcx + 0x1a]
cmp r9, r12
ja 0x140005578
test rax, rax
je 0x140005578
cmp rax, rbx
ja 0x140005578
mov r9, qword [rdi + rcx]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x20], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x1f], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x1e], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x1d], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x1c], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x1b], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x1a], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r14 + rax - 0x19], r9b
mov r9, qword [rdi + rcx + 6]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x18], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x17], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x16], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x15], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x14], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x13], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x12], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r14 + rax - 0x11], r9b
mov r9, qword [rdi + rcx + 0xc]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0x10], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0xf], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0xe], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0xd], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0xc], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0xb], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 0xa], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r14 + rax - 9], r9b
mov r9, qword [rdi + rcx + 0x12]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 8], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 7], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 6], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 5], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 4], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 3], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8 + 3]
mov byte [r14 + rax - 2], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8 + 3]
mov byte [r14 + rax - 1], r9b
add rcx, 0x18
add rax, 0x20
cmp rcx, rdx
jbe 0x140004fed
add rax, 0xffffffffffffffe0
mov r8, r12
sub r8, rbp
cmp rcx, r8
jae 0x140005385
lea r9, [0x1400acf9b]
cmp rcx, 0xfffffffffffffffc
ja 0x140005578
lea r10, [rcx + 3]
cmp r10, r12
ja 0x140005578
cmp rax, 0xfffffffffffffffb
ja 0x140005578
lea rdx, [rax + 4]
cmp rdx, rbx
ja 0x140005578
movzx r11d, byte [rdi + rcx]
mov r13d, r11d
shr r13d, 2
mov r13b, byte [r13 + r9 + 3]
mov byte [r14 + rax], r13b
mov r15b, byte [rdi + rcx + 1]
shl r11b, 4
mov r13d, r15d
shr r13b, 4
or r13b, r11b
movzx r11d, r13b
and r11d, 0x3f
mov r11b, byte [r11 + r9 + 3]
mov byte [r14 + rax + 1], r11b
movzx ecx, byte [rdi + rcx + 2]
shl r15b, 2
mov r11d, ecx
shr r11b, 6
or r11b, r15b
movzx r11d, r11b
and r11d, 0x3f
mov r11b, byte [r11 + r9 + 3]
mov byte [r14 + rax + 2], r11b
and ecx, 0x3f
mov cl, byte [rcx + r9 + 3]
mov byte [r14 + rax + 3], cl
mov rcx, r10
mov rax, rdx
cmp r10, r8
jb 0x1400052da
jmp 0x140005388
mov rdx, rax
cmp rbp, 1
je 0x140005416
cmp rbp, 2
jne 0x140005467
cmp rdx, rbx
jae 0x140005578
movzx r9d, byte [rdi + r8]
mov eax, r9d
shr eax, 2
lea rcx, [0x1400acf9b]
mov al, byte [rax + rcx + 3]
mov byte [r14 + rdx], al
inc r8
cmp r8, r12
jae 0x140005578
lea rax, [rdx + 1]
cmp rax, rbx
jae 0x140005578
mov al, byte [rdi + r8]
mov r8d, eax
shr r8b, 4
shl r9b, 4
or r9b, r8b
movzx r8d, r9b
and r8d, 0x3f
mov cl, byte [r8 + rcx + 3]
mov byte [r14 + rdx + 1], cl
lea rcx, [rdx + 2]
cmp rcx, rbx
jae 0x140005578
shl al, 2
and al, 0x3c
mov r8d, 3
jmp 0x140005451
cmp rdx, rbx
jae 0x140005578
movzx eax, byte [rdi + r8]
mov ecx, eax
shr ecx, 2
lea r8, [0x1400acf9b]
mov cl, byte [rcx + r8 + 3]
mov byte [r14 + rdx], cl
lea rcx, [rdx + 1]
cmp rcx, rbx
jae 0x140005578
shl al, 4
and al, 0x30
mov r8d, 2
movzx eax, al
lea r9, [0x1400acf9b]
mov al, byte [rax + r9 + 3]
mov byte [r14 + rcx], al
add rdx, r8
mov rax, rbx
sub rax, rdx
jb 0x140005578
mov ecx, edx
neg ecx
and ecx, 3
je 0x14000549b
mov r8, r14
add r8, rdx
xor r9d, r9d
cmp rax, r9
je 0x140005578
mov byte [r8 + r9], 0x3d
inc r9
cmp rcx, r9
jne 0x140005485
add rdx, rcx
jb 0x140005578
lea r12, [rsp + 0xa0]
mov rcx, r12
mov rdx, r14
mov r8, rbx
call fcn.14002267f
cmp qword [r12], 0
je 0x1400054cf
cmp byte [rsp + 0xb0], 2
jne 0x140005578
cmp qword [rsp + 0xe0], 0
je 0x1400054ec
mov rcx, qword [0x1400f5ae0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rsp + 0xe8]
movaps xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rsp + 0x100]
movups xmmword [rsp + 0xb8], xmm1
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsi + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsi + 0x18], rax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x30], r14
mov rax, qword [rsp + 0xd8]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], rbx
jmp 0x140004dca
ud2