Function at 0x140064a40
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, r9
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rcx], 0
lea rcx, [0x1403ae7c8]
lea rdx, [0x1400545a0]
call fcn.1400a75c0
lea rdx, [0x1403ae7d0]
mov rcx, rdi
call fcn.140055140
mov ebx, 1
test eax, eax
jle 0x1400652d0
mov r12d, dword [rdi + 8]
test r12d, r12d
jle 0x140064b04
mov r13, qword [rdi]
mov rsi, qword [r13]
test sil, 1
jne 0x140064b18
xor rsi, 2
cmp r12d, 1
je 0x1400652bd
mov r8d, 1
cmp r12d, 5
jb 0x140064c40
lea rax, [r12 - 1]
movq xmm0, rsi
lea rdx, [r12 - 5]
mov r8, rdx
shr r8, 2
inc r8
mov ecx, r8d
and ecx, 3
cmp rdx, 0xc
jae 0x140064b74
pxor xmm1, xmm1
xor edx, edx
jmp 0x140064be2
test r12, r12
je 0x140064b6d
mov rax, qword [rdi]
mov rsi, qword [rax]
xor rsi, 2
jmp 0x1400652bd
mov rcx, rsi
xor rcx, 3
cmp r12d, 1
je 0x140064d2d
mov r8d, 1
cmp r12d, 5
jb 0x140064d20
lea rax, [r12 - 1]
movq xmm0, rcx
lea rdx, [r12 - 5]
mov r8, rdx
shr r8, 2
inc r8
mov ecx, r8d
and ecx, 3
cmp rdx, 0xc
jae 0x140064c52
pxor xmm1, xmm1
xor edx, edx
jmp 0x140064cc2
xor eax, eax
jmp 0x1400652cd
and r8, 0xfffffffffffffffc
pxor xmm1, xmm1
xor edx, edx
nop
movdqu xmm2, xmmword [r13 + rdx*8 + 8]
por xmm2, xmm0
movdqu xmm0, xmmword [r13 + rdx*8 + 0x18]
por xmm0, xmm1
movdqu xmm1, xmmword [r13 + rdx*8 + 0x28]
movdqu xmm3, xmmword [r13 + rdx*8 + 0x38]
movdqu xmm4, xmmword [r13 + rdx*8 + 0x48]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [r13 + rdx*8 + 0x58]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [r13 + rdx*8 + 0x68]
por xmm0, xmm4
movdqu xmm1, xmmword [r13 + rdx*8 + 0x78]
por xmm1, xmm2
add rdx, 0x10
add r8, 0xfffffffffffffffc
jne 0x140064b80
mov r8, rax
and r8, 0xfffffffffffffffc
test rcx, rcx
je 0x140064c1b
nop
lea r9, [rdx*8]
or r9, 8
movdqu xmm2, xmmword [r13 + r9]
por xmm0, xmm2
movdqu xmm2, xmmword [r13 + r9 + 0x10]
por xmm1, xmm2
add rdx, 4
dec rcx
jne 0x140064bf0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rsi, xmm1
cmp rax, r8
je 0x1400652bd
or r8, 1
nop word [rax + rax]
or rsi, qword [r13 + r8*8]
inc r8
cmp r12, r8
jne 0x140064c40
jmp 0x1400652bd
and r8, 0xfffffffffffffffc
pxor xmm1, xmm1
xor edx, edx
nop dword [rax]
movdqu xmm2, xmmword [r13 + rdx*8 + 8]
por xmm2, xmm0
movdqu xmm0, xmmword [r13 + rdx*8 + 0x18]
por xmm0, xmm1
movdqu xmm1, xmmword [r13 + rdx*8 + 0x28]
movdqu xmm3, xmmword [r13 + rdx*8 + 0x38]
movdqu xmm4, xmmword [r13 + rdx*8 + 0x48]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [r13 + rdx*8 + 0x58]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [r13 + rdx*8 + 0x68]
por xmm0, xmm4
movdqu xmm1, xmmword [r13 + rdx*8 + 0x78]
por xmm1, xmm2
add rdx, 0x10
add r8, 0xfffffffffffffffc
jne 0x140064c60
mov r8, rax
and r8, 0xfffffffffffffffc
test rcx, rcx
je 0x140064cfb
nop
lea r9, [rdx*8]
or r9, 8
movdqu xmm2, xmmword [r13 + r9]
por xmm0, xmm2
movdqu xmm2, xmmword [r13 + r9 + 0x10]
por xmm1, xmm2
add rdx, 4
dec rcx
jne 0x140064cd0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp rax, r8
je 0x140064d2d
or r8, 1
nop word cs:[rax + rax]
or rcx, qword [r13 + r8*8]
inc r8
cmp r12, r8
jne 0x140064d20
test rcx, rcx
jne 0x140064d3c
cmp dword [rdi + 0x10], 0
je 0x140064f42
cmp dword [rsp + 0xe0], 0
je 0x140064e53
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x28], r15
xor ebp, ebp
cmp r12d, 0x11
setge bl
mov r15w, 3
mov rcx, rdi
mov dx, 3
call fcn.140058950
test ax, ax
je 0x140064dc7
mov qword [rsp + 0x30], r14
mov bpl, bl
shl rbp, 9
add rbp, 0x200
mov r14d, 2
lea rbx, [0x1402f3f70]
nop word cs:[rax + rax]
movzx r15d, word [rbx + r14*2]
mov rcx, rdi
mov edx, r15d
call fcn.140058950
test ax, ax
je 0x140064dbd
inc r14
cmp rbp, r14
jne 0x140064da0
cmp r14, rbp
mov r14, qword [rsp + 0x30]
jae 0x140064e27
movzx eax, r15w
xor rsi, rax
cmp r12d, 2
jl 0x140064e1d
mov r8d, 1
cmp r12d, 5
mov ebx, 1
jb 0x1400652b0
lea rax, [r12 - 1]
movq xmm0, rsi
lea rdx, [r12 - 5]
mov r8, rdx
shr r8, 2
inc r8
mov ecx, r8d
and ecx, 3
cmp rdx, 0xc
jae 0x1400651da
pxor xmm1, xmm1
xor edx, edx
jmp 0x140065252
mov ebx, 1
jmp 0x1400652bd
mov r8, qword [rsp + 0xe8]
test r8, r8
mov r15, qword [rsp + 0x28]
mov ebp, dword [rsp + 0x38]
je 0x140064e53
mov ecx, 1
mov edx, 0xffffffff
call qword [rioctlsocket + 8]
test eax, eax
je 0x1400652f0
test ebp, ebp
je 0x140064e6c
test r15, r15
je 0x140064ea6
xor r12d, r12d
cmp byte [r15 + 0x28], 0
jne 0x1400650b0
jmp 0x140064edc
mov eax, dword [rdi + 8]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
mov r8, rax
nop dword [rax]
test r8d, r8d
jle 0x140064f4e
mov rdx, qword [rdi]
lea r9, [r8 - 1]
cmp qword [rdx + r8*8 - 8], 0
mov r8, r9
je 0x140064e80
inc r9d
mov ecx, r9d
jmp 0x140064f5e
mov ecx, 0x30
call fcn.14009ea60
test rax, rax
je 0x140065081
mov r12, rax
pxor xmm0, xmm0
movdqu xmmword [rax + 0x1a], xmm0
movdqu xmmword [rax + 0x10], xmm0
movdqu xmmword [rax], xmm0
mov r15, rax
cmp byte [r15 + 0x28], 0
jne 0x1400650b0
mov rcx, qword [r15 + 0x10]
mov rsi, qword [r15 + 0x20]
cmp rcx, qword [r15 + 0x18]
jne 0x140065073
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov ebx, 0x20
cmovne rbx, rax
cmp rbx, rcx
jbe 0x1400650a9
mov rax, rbx
shr rax, 0x3d
jne 0x1400650a9
lea rdx, [rbx*8]
mov rcx, qword [r15 + 8]
call fcn.14009eae0
test rax, rax
je 0x1400650a9
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rbx
mov rcx, qword [r15 + 0x10]
jmp 0x140065077
mov dword [r14], 1
jmp 0x1400652d0
mov ebp, 0x22
test eax, eax
jns 0x140064e57
mov rdx, qword [rdi]
movsxd rax, ecx
shl ecx, 6
mov rdx, qword [rdx + rax*8 - 8]
xor eax, eax
test rdx, rdx
setne al
or eax, ecx
xor ecx, ecx
mov r8, rdx
shr r8, 0x20
setne cl
cmove r8, rdx
shl ecx, 5
mov r9, r8
shr r9, 0x10
xor edx, edx
cmp r8, 0x10000
setae dl
cmovb r9, r8
shl edx, 4
mov r10, r9
shr r10, 8
xor r8d, r8d
cmp r9, 0x100
setae r8b
cmovb r10, r9
mov r9, r10
shr r9, 4
xor r11d, r11d
cmp r10, 0x10
setae r11b
cmovb r9, r10
mov r10, r9
shr r10, 2
xor esi, esi
cmp r9, 4
cmovb r10, r9
setae sil
add esi, esi
or ecx, eax
or ecx, edx
lea eax, [rcx + r8*8]
lea eax, [rax + r11*4]
add eax, 0xffffffc0
or eax, esi
cmp r10, 2
sbb eax, 0xffffffff
mov ebp, 3
cmp eax, 0xea2
jg 0x140064e57
mov ebp, 4
cmp eax, 0x540
jg 0x140064e57
mov ebp, 5
cmp eax, 0x1db
jg 0x140064e57
mov ebp, 6
cmp eax, 0x18f
jg 0x140064e57
mov ebp, 7
cmp eax, 0x15a
jg 0x140064e57
mov ebp, 8
cmp eax, 0x133
jg 0x140064e57
cmp eax, 0x37
mov eax, 0x1b
mov ebp, 0x22
cmovge ebp, eax
jmp 0x140064e57
mov rax, qword [r15 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r15 + 0x10]
jmp 0x1400650b0
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAGetLastError
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_ctx.c
xor ebx, ebx
mov ecx, 3
xor edx, edx
mov r8d, 0x41
call fcn.140049240
jmp 0x1400652d0
mov word [r15 + 0x28], 0x101
mov rcx, r15
call fcn.140055ae0
mov r13, rax
mov rcx, rdi
mov rdx, r15
call fcn.1400596e0
mov rdi, rax
xor ebx, ebx
test r13, r13
je 0x140065317
test rdi, rdi
je 0x140065317
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r8, r15
call fcn.140063580
test eax, eax
je 0x140065317
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
movsxd rsi, ebp
mov r12d, 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
xor r15d, r15d
xor ebx, ebx
jmp 0x14006514f
add r15, rbp
xor eax, eax
cmp r12d, 0x10
lea ecx, [r12 + 1]
setb al
mov rdx, r15
xor rdx, rsi
mov r8, r15
sub r8, rsi
xor r8, r15
or r8, rdx
xor r8, r15
sar r8, 0x3f
or r8, rax
mov r12d, ecx
je 0x140065301
mov r8d, 2
mov rcx, r13
lea rdx, [rsp + 0x44]
mov r9, qword [rsp + 0x38]
call fcn.140065380
test eax, eax
je 0x1400652f4
movsxd rbp, dword [rsp + 0x44]
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8, r13
mov r9, rdi
call fcn.140063960
test eax, eax
je 0x14006530d
cmp dword [rsp + 0x40], 0
je 0x1400652f8
mov r8, qword [rsp + 0xe8]
test r8, r8
je 0x140065119
lea edx, [r12 - 1]
mov ecx, 1
call qword [rioctlsocket + 8]
test eax, eax
jne 0x140065119
jmp 0x14006530d
and r8, 0xfffffffffffffffc
pxor xmm1, xmm1
xor edx, edx
nop word cs:[rax + rax]
movdqu xmm2, xmmword [r13 + rdx*8 + 8]
por xmm2, xmm0
movdqu xmm0, xmmword [r13 + rdx*8 + 0x18]
por xmm0, xmm1
movdqu xmm1, xmmword [r13 + rdx*8 + 0x28]
movdqu xmm3, xmmword [r13 + rdx*8 + 0x38]
movdqu xmm4, xmmword [r13 + rdx*8 + 0x48]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [r13 + rdx*8 + 0x58]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [r13 + rdx*8 + 0x68]
por xmm0, xmm4
movdqu xmm1, xmmword [r13 + rdx*8 + 0x78]
por xmm1, xmm2
add rdx, 0x10
add r8, 0xfffffffffffffffc
jne 0x1400651f0
mov r8, rax
and r8, 0xfffffffffffffffc
test rcx, rcx
je 0x14006528b
nop
lea r9, [rdx*8]
or r9, 8
movdqu xmm2, xmmword [r13 + r9]
por xmm0, xmm2
movdqu xmm2, xmmword [r13 + r9 + 0x10]
por xmm1, xmm2
add rdx, 4
dec rcx
jne 0x140065260
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rsi, xmm1
cmp rax, r8
je 0x1400652bd
or r8, 1
nop word cs:[rax + rax]
or rsi, qword [r13 + r8*8]
inc r8
cmp r12, r8
jne 0x1400652b0
xor eax, eax
test rsi, rsi
jne 0x1400652cd
xor eax, eax
cmp dword [rdi + 0x10], 0
sete al
mov dword [r14], eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140279500
mov eax, ebx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400652d0
xor ebx, ebx
jmp 0x14006530d
mov dword [r14], 0
jmp 0x140065308
mov dword [r14], 1
mov ebx, 1
mov r15, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140059bc0
cmp byte [r15 + 0x28], 0
jne 0x14006533f
mov rax, qword [r15 + 8]
mov rcx, qword [r15 + 0x10]
lea rdx, [rcx - 1]
mov qword [r15 + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [r15 + 0x20], rax
test r12, r12
je 0x1400652d0
mov rcx, qword [r12]
lea rdx, [0x14008a750]
lea r8, [fcn.140054420]
call fcn.1400a6e00
mov rcx, qword [r12 + 8]
call fcn.14009ea90
mov rcx, r12
call fcn.14009ea90
jmp 0x1400652d0