Function at 0x140001df2
Capabilities:
Encode data using base64

Disassembly:
jmp 0x14008f830
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
mov dword [rax - 0x48], 0
cmp qword [rdx + 0x18], 0x10
jb 0x14008f868
mov r15, qword [rdx]
jmp 0x14008f86b
mov r15, rdx
mov r14, qword [rdx + 0x10]
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x10], 0
mov byte [rcx], 0
mov dword [rsp + 0x20], 1
xor esi, esi
test r14, r14
je 0x14008fc1d
xor ecx, ecx
lea r8, [0x1400cf880]
nop
dec r14
movzx eax, byte [r15]
mov byte [rsp + rcx + 0x78], al
inc esi
inc rcx
inc r15
movzx edx, byte [rsp + 0x7a]
movzx r12d, byte [rsp + 0x79]
movzx r13d, byte [rsp + 0x78]
cmp rcx, 3
jne 0x14008f9d9
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x80], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x81], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x82], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x83], al
xor esi, esi
nop dword [rax]
movzx eax, byte [rsp + rsi + 0x80]
movzx ebp, byte [rax + r8]
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14008f9f1
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14008f9e3
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14008f966
mov rdx, rbx
mov rcx, rdi
call fcn.140001aaa
jmp 0x14008f982
test rbx, rbx
jne 0x14008f987
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14008f97a
mov rax, qword [rdi]
jmp 0x14008f97d
mov rax, rdi
mov byte [rax], 0
jmp 0x14008f9b5
test rbx, rbx
je 0x14008f9b5
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14008f997
mov rax, qword [rdi]
jmp 0x14008f99a
mov rax, rdi
mov byte [rax + rcx], bpl
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14008f9ae
mov rax, qword [rdi]
jmp 0x14008f9b1
mov rax, rdi
mov byte [rax + rbx], 0
inc rsi
cmp rsi, 4
lea r8, [0x1400cf880]
jl 0x14008f920
xor esi, esi
xor ecx, ecx
movzx edx, byte [rsp + 0x7a]
lea r8, [0x1400cf880]
test r14, r14
je 0x14008f9ff
jmp 0x14008f8a0
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
test esi, esi
je 0x14008fc1d
movsxd rax, esi
cmp rax, 3
jge 0x14008fa39
jae 0x14008fa33
mov byte [rsp + rax + 0x78], 0
inc rax
cmp rax, 3
jl 0x14008fa10
movzx edx, byte [rsp + 0x7a]
movzx r12d, byte [rsp + 0x79]
movzx r13d, byte [rsp + 0x78]
jmp 0x14008fa39
call fcn.1400bd2f0
int3
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x80], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x81], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x82], r12b
and dl, 0x3f
mov byte [rsp + 0x83], dl
xor r14d, r14d
lea r12d, [rsi + 1]
test r12d, r12d
jle 0x14008fb61
lea rbp, [rsp + 0x80]
nop dword [rax]
movzx eax, byte [rbp]
movzx r15d, byte [rax + r8]
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14008fb53
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14008fb45
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14008fade
mov rdx, rbx
mov rcx, rdi
call fcn.140001aaa
jmp 0x14008fafa
test rbx, rbx
jne 0x14008faff
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14008faf2
mov rax, qword [rdi]
jmp 0x14008faf5
mov rax, rdi
mov byte [rax], 0
jmp 0x14008fb2d
test rbx, rbx
je 0x14008fb2d
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14008fb0f
mov rax, qword [rdi]
jmp 0x14008fb12
mov rax, rdi
mov byte [rax + rcx], r15b
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14008fb26
mov rax, qword [rdi]
jmp 0x14008fb29
mov rax, rdi
mov byte [rax + rbx], 0
inc r14d
inc rbp
cmp r14d, r12d
lea r8, [0x1400cf880]
jl 0x14008faa0
jmp 0x14008fb61
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
cmp esi, 3
jge 0x14008fc1d
nop word [rax + rax]
inc esi
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14008fc0f
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14008fc01
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14008fba7
mov rdx, rbx
mov rcx, rdi
call fcn.140001aaa
jmp 0x14008fbc3
test rbx, rbx
jne 0x14008fbc8
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14008fbbb
mov rax, qword [rdi]
jmp 0x14008fbbe
mov rax, rdi
mov byte [rax], 0
jmp 0x14008fbf6
test rbx, rbx
je 0x14008fbf6
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14008fbd8
mov rax, qword [rdi]
jmp 0x14008fbdb
mov rax, rdi
mov byte [rcx + rax], 0x3d
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14008fbef
mov rax, qword [rdi]
jmp 0x14008fbf2
mov rax, rdi
mov byte [rbx + rax], 0
cmp esi, 3
jl 0x14008fb70
jmp 0x14008fc1d
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rax, rdi
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret