Function at 0x140037960
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14d, r8d
mov r15, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov edi, ebp
test r8d, r8d
je 0x140037c33
mov ecx, ebp
movzx ebx, byte [rsp + 0x80]
nop word [rax + rax]
dec r14d
movzx eax, byte [r15]
lea r15, [r15 + 1]
mov byte [rsp + rcx + 0x80], al
inc edi
inc rcx
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x140037ac7
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x8b], al
mov rdi, rbp
nop dword [rax + rax]
lea rcx, [0x1401fb010]
cmp qword [0x1401fb028], 0x10
cmovae rcx, qword [0x1401fb010]
movzx eax, byte [rsp + rdi + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140037aa0
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140037a95
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140037ab1
movzx r8d, bl
mov edx, 1
mov rcx, rsi
call fcn.140020a50
inc rdi
cmp rdi, 4
jl 0x140037a50
mov edi, ebp
mov rcx, rbp
movzx edx, byte [rsp + 0x82]
test r14d, r14d
jne 0x1400379c0
test edi, edi
je 0x140037c33
movsxd rax, edi
cmp rax, 3
jge 0x140037b12
jae 0x140037c4b
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x140037ae1
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x89], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x8a], r12b
and dl, 0x3f
mov byte [rsp + 0x8b], dl
lea eax, [rdi + 1]
movsxd r14, eax
test eax, eax
jle 0x140037bd9
movzx ebx, byte [rsp + 0x80]
nop
lea rcx, [0x1401fb010]
cmp qword [0x1401fb028], 0x10
cmovae rcx, qword [0x1401fb010]
movzx eax, byte [rsp + rbp + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140037bc0
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140037bb5
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140037bd1
movzx r8d, bl
mov edx, 1
mov rcx, rsi
call fcn.140020a50
inc rbp
cmp rbp, r14
jl 0x140037b70
cmp edi, 3
jge 0x140037c33
mov eax, 3
sub eax, edi
mov edi, eax
movzx ebx, byte [rsp + 0x80]
nop
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140037c19
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140037c11
mov rax, qword [rsi]
mov word [rax + rcx], 0x3d
jmp 0x140037c2d
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rsi
call fcn.140020a50
sub rdi, 1
jne 0x140037bf0
mov rax, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400fcc24
int3