Function at 0x140076deb
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r8, rdx
mov r14, qword [rdx + 0x10]
mov r9d, 3
mov rax, r14
xor edx, edx
div r9
mov rbp, rax
mov rax, r14
shr rax, 0x3e
cmp eax, 2
ja 0x1400778e2
mov rax, qword [r8 + 8]
mov qword [rsp + 0x30], rax
shl rbp, 2
test rdx, rdx
je 0x140076e42
add rbp, 4
jb 0x1400778e2
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r8
mov rcx, rbp
mov dl, 1
call fcn.14004efeb
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], rbp
xor r13d, r13d
mov rax, r14
mov edi, 0
sub rax, 0x1a
cmovb rax, r13
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], r14
jbe 0x1400772f3
xor r13d, r13d
lea r12, [0x140106d78]
xor esi, esi
mov qword [rsp + 0x60], rbp
mov rdi, rsi
mov rbx, r13
add rsi, 0x1a
lea rax, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rsi
mov r8, qword [rsp + 0x30]
mov r9, r14
call fcn.1400287cd
mov r15, rax
mov r14, rdx
add r13, 0x20
lea rax, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r13
mov r8, qword [rsp + 0x38]
mov r9, rbp
call fcn.1400287cd
mov rbp, rax
mov rbx, rdx
mov rcx, r15
mov rdx, r14
xor r8d, r8d
lea r9, str.base64_0.22.1_srcenginegeneral_purposemod.rs
call fcn.1400176a2
mov rcx, rax
call fcn.14000693a
test rbx, rbx
je 0x1400775e0
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12 + 3]
mov byte [rbp], cl
cmp rbx, 1
je 0x1400775f0
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 1], cl
cmp rbx, 2
jbe 0x140077606
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 2], cl
cmp rbx, 3
je 0x14007761c
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 3], cl
cmp rbx, 4
jbe 0x140077632
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 4], cl
cmp rbx, 5
je 0x140077648
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 5], cl
cmp rbx, 6
jbe 0x14007765e
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 6], cl
cmp rbx, 7
je 0x140077674
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12 + 3]
mov byte [rbp + 7], al
mov r8d, 6
mov rcx, r15
mov rdx, r14
lea r9, str.base64_0.22.1_srcenginegeneral_purposemod.rs
call fcn.1400176a2
mov rcx, rax
call fcn.14000693a
cmp rbx, 8
jbe 0x14007768a
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 8], cl
cmp rbx, 9
je 0x1400776a0
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 9], cl
cmp rbx, 0xa
jbe 0x1400776b6
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0xa], cl
cmp rbx, 0xb
je 0x1400776cc
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0xb], cl
cmp rbx, 0xc
jbe 0x1400776e2
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0xc], cl
cmp rbx, 0xd
je 0x1400776f8
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0xd], cl
cmp rbx, 0xe
jbe 0x14007770e
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0xe], cl
cmp rbx, 0xf
je 0x140077724
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12 + 3]
mov byte [rbp + 0xf], al
mov r8d, recv
mov rcx, r15
mov rdx, r14
lea r9, str.base64_0.22.1_srcenginegeneral_purposemod.rs
call fcn.1400176a2
mov rcx, rax
call fcn.14000693a
cmp rbx, 0x10
jbe 0x14007773a
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x10], cl
cmp rbx, 0x11
je 0x140077750
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x11], cl
cmp rbx, 0x12
jbe 0x140077766
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x12], cl
cmp rbx, 0x13
je 0x14007777c
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x13], cl
cmp rbx, 0x14
jbe 0x140077792
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x14], cl
cmp rbx, 0x15
je 0x1400777a8
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x15], cl
cmp rbx, 0x16
jbe 0x1400777be
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x16], cl
cmp rbx, 0x17
je 0x1400777d4
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12 + 3]
mov byte [rbp + 0x17], al
mov r8d, reloc.WS2_32.dll_select
mov rcx, r15
mov rdx, r14
lea r9, str.base64_0.22.1_srcenginegeneral_purposemod.rs
call fcn.1400176a2
mov rcx, rax
call fcn.14000693a
cmp rbx, 0x18
jbe 0x1400777ea
mov rcx, rax
shr rcx, 0x3a
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x18], cl
cmp rbx, 0x19
je 0x140077800
mov rcx, rax
shr rcx, 0x34
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x19], cl
cmp rbx, 0x1a
jbe 0x140077816
mov rcx, rax
shr rcx, 0x2e
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x1a], cl
cmp rbx, 0x1b
je 0x14007782c
mov rcx, rax
shr rcx, 0x28
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x1b], cl
cmp rbx, 0x1c
jbe 0x140077842
mov rcx, rax
shr rcx, 0x22
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x1c], cl
cmp rbx, 0x1d
je 0x140077858
mov rcx, rax
shr rcx, 0x1c
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x1d], cl
cmp rbx, 0x1e
jbe 0x14007786e
mov ecx, eax
shr ecx, 0x16
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rbp + 0x1e], cl
cmp rbx, 0x1f
je 0x140077884
shr eax, 0x10
and eax, 0x3f
mov al, byte [rax + r12 + 3]
mov byte [rbp + 0x1f], al
add rsi, 0xfffffffffffffffe
cmp rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x48]
jbe 0x140076ea6
add rdi, 0x18
mov rsi, r14
sub rsi, qword [rsp + 0x40]
lea r12, [0x140106d78]
cmp rdi, rsi
jae 0x140077408
lea rbx, [rdi + 3]
lea rax, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rbx
mov r8, qword [rsp + 0x30]
mov r9, r14
call fcn.1400287cd
mov r14, rax
mov r15, rdx
lea rdi, [r13 + 4]
lea rax, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, rdi
mov r8, qword [rsp + 0x38]
mov r9, rbp
call fcn.1400287cd
test r15, r15
je 0x140077592
test rdx, rdx
je 0x14007759b
movzx ecx, byte [r14]
shr ecx, 2
mov cl, byte [rcx + r12 + 3]
mov byte [rax], cl
cmp r15, 1
jbe 0x1400775a4
cmp rdx, 1
jbe 0x1400775ad
mov cl, byte [r14]
mov r8b, byte [r14 + 1]
shr r8b, 4
shl cl, 4
or cl, r8b
movzx ecx, cl
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rax + 1], cl
cmp r15, 2
jbe 0x1400775b6
cmp rdx, 2
jbe 0x1400775bf
mov cl, byte [r14 + 1]
mov r8b, byte [r14 + 2]
shr r8b, 6
shl cl, 2
or cl, r8b
movzx ecx, cl
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rax + 2], cl
cmp rdx, 3
je 0x1400775c8
movzx ecx, byte [r14 + 2]
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rax + 3], cl
mov r13, rdi
mov rdi, rbx
mov r14, qword [rsp + 0x48]
jmp 0x140077302
mov rax, qword [rsp + 0x40]
cmp rax, 1
je 0x1400774a0
cmp rax, 2
mov rdx, qword [rsp + 0x38]
jne 0x1400774eb
cmp r13, rbp
jae 0x14007789a
mov rax, qword [rsp + 0x30]
movzx r8d, byte [rax + rsi]
mov eax, r8d
shr eax, 2
mov al, byte [rax + r12 + 3]
mov byte [rdx + r13], al
inc rsi
cmp rsi, r14
jae 0x1400778af
lea rcx, [r13 + 1]
cmp rcx, rbp
jae 0x1400778c1
mov rax, qword [rsp + 0x30]
mov al, byte [rax + rsi]
mov ecx, eax
shr cl, 4
shl r8b, 4
or r8b, cl
movzx ecx, r8b
and ecx, 0x3f
mov cl, byte [rcx + r12 + 3]
mov byte [rdx + r13 + 1], cl
lea rcx, [r13 + 2]
cmp rcx, rbp
jae 0x1400778d3
shl al, 2
and al, 0x3c
mov r8d, 3
jmp 0x1400774dd
cmp r13, rbp
mov rdx, qword [rsp + 0x38]
jae 0x1400778a3
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + rsi]
mov ecx, eax
shr ecx, 2
mov cl, byte [rcx + r12 + 3]
mov byte [rdx + r13], cl
lea rcx, [r13 + 1]
cmp rcx, rbp
jae 0x1400778ca
shl al, 4
and al, 0x30
mov r8d, 2
movzx eax, al
mov al, byte [rax + r12 + 3]
mov byte [rdx + rcx], al
add r13, r8
lea r9, [0x140105ed0]
mov rcx, r13
mov r8, rbp
call fcn.140029136
mov ecx, r13d
neg ecx
and ecx, 3
xor r8d, r8d
cmp rcx, r8
je 0x140077520
cmp rdx, r8
je 0x1400775d1
mov byte [rax + r8], 0x3d
inc r8
jmp 0x140077508
add r13, rcx
jb 0x1400778fa
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140067b75
movabs rax, 0x8000000000000000
cmp qword [rsi], rax
jne 0x140077912
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x30]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14005c95f
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400775e7
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400775e7
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400775f7
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400775f7
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x14007760d
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x14007760d
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x140077623
lea r8, [0x1400bf108]
mov rcx, rdx
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
xor ecx, ecx
xor edx, edx
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 1
mov edx, 1
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 2
mov edx, 2
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 3
mov edx, 3
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 4
mov edx, 4
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 5
mov edx, 5
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 6
mov edx, 6
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 7
mov edx, 7
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 8
mov edx, 8
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 9
mov edx, 9
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0xa
mov edx, 0xa
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0xb
mov edx, 0xb
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, recv
mov edx, recv
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, recv
mov edx, recv
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, select
mov edx, select
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, select
mov edx, select
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, reloc.WS2_32.dll_recv
mov edx, reloc.WS2_32.dll_recv
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, select
mov edx, select
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, reloc.WS2_32.dll_select
mov edx, reloc.WS2_32.dll_select
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, reloc.WS2_32.dll_send
mov edx, reloc.WS2_32.dll_send
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, setsockopt
mov edx, setsockopt
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, reloc.WS2_32.dll_setsockopt
mov edx, reloc.WS2_32.dll_setsockopt
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x16
mov edx, 0x16
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x17
mov edx, 0x17
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x18
mov edx, 0x18
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x19
mov edx, 0x19
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x1a
mov edx, 0x1a
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x1b
mov edx, 0x1b
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x1c
mov edx, 0x1c
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x1d
mov edx, 0x1d
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x1e
mov edx, 0x1e
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov ecx, 0x1f
mov edx, 0x1f
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400778aa
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov rcx, r13
jmp 0x1400778da
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov rcx, rsi
mov rdx, r14
call fcn.1400ba920
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400778da
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
jmp 0x1400778da
lea r8, str.base64_0.22.1_srcenginegeneral_purposemod.rs
mov rdx, rbp
call fcn.1400ba920
lea rcx, str.integer_overflow_when_calculating_buffer_sizebase64_0.22.1_srcenginemod.rs
lea r8, [0x140105f80]
mov edx, 0x2d
call fcn.1400bada0
lea rcx, str.usize_overflow_when_calculating_b64_length
lea r8, [0x140105f18]
mov edx, 0x2a
call fcn.1400bada0
mov rax, qword [rsp + 0xa8]
lea r8, [rsp + 0xb0]
mov qword [r8 + 0x20], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [r8 + 0x10], xmm1
movaps xmmword [r8], xmm0
lea rax, [0x140105fa8]
mov qword [rsp + 0x20], rax
lea rcx, str.Invalid_UTF8
lea r9, [0x140105460]
mov edx, recv
call fcn.1400bad00
int3