Function at 0x5c89e0
Capabilities:
Encode data using base64

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x80]
and eax, 0x3f
mov rbx, rcx
mov rsi, rdx
lea ecx, [rax + 1]
mov byte [rbx + rax], pe_nt_image_headers64
lea r12, [rbx + 0x40]
mov eax, ecx
add rax, rbx
cmp ecx, 0x20
jbe 0x5c8b30
mov edx, 0x40
xor r8d, r8d
sub edx, ecx
cmp edx, 0x20
jb 0x5c8bf0
mov ecx, edx
mov qword [rax], 0
lea rcx, [rax + rcx + 8]
mov qword [rcx - 0x28], 0
mov qword [rcx - 0x20], 0
mov qword [rcx - 0x18], 0
mov qword [rcx - 0x10], 0
lea rcx, [rax + 8]
and rcx, 0xfffffffffffffff8
sub rax, rcx
add edx, eax
and edx, 0xffffffe0
cmp edx, 0x20
jb 0x5c8a8b
and edx, 0xffffffe0
xor r9d, r9d
mov eax, r9d
add r9d, 0x20
mov qword [rcx + rax], r8
mov qword [rcx + rax + 8], r8
mov qword [rcx + rax + 0x10], r8
mov qword [rcx + rax + 0x18], r8
cmp r9d, edx
jb 0x5c8a6c
mov rdx, r12
mov rcx, rbx
call fcn.005c7030
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov rax, qword [rbx + 0x80]
mov rdx, rax
shr rdx, 0x3d
bswap rdx
mov qword [rbx + 0x30], rdx
shl rax, 3
bswap rax
mov qword [rbx + 0x38], rax
mov rdx, r12
mov rcx, rbx
call fcn.005c7030
lea rax, [rbx + 0x48]
cmp rsi, rax
je 0x5c8c30
vmovdqu xmm1, xmmword [rbx + 0x40]
vmovdqu xmmword [rsi], xmm1
vmovdqu xmm2, xmmword [rbx + 0x50]
vmovdqu xmmword [rsi + 0x10], xmm2
vmovdqu xmm3, xmmword [rbx + 0x60]
vmovdqu xmmword [rsi + 0x20], xmm3
vmovdqu xmm0, xmmword [rbx + 0x70]
vmovdqu xmmword [rsi + 0x30], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov edx, 0x20
xor r8d, r8d
sub edx, ecx
cmp edx, 0x20
jb 0x5c8bb0
mov ecx, edx
mov qword [rax], 0
lea rcx, [rax + rcx + 8]
mov qword [rcx - 0x28], 0
mov qword [rcx - 0x20], 0
mov qword [rcx - 0x18], 0
mov qword [rcx - 0x10], 0
lea rcx, [rax + 8]
and rcx, 0xfffffffffffffff8
sub rax, rcx
add edx, eax
and edx, 0xffffffe0
cmp edx, 0x20
jb 0x5c8ab5
and edx, 0xffffffe0
xor r9d, r9d
mov eax, r9d
add r9d, 0x20
mov qword [rcx + rax], r8
mov qword [rcx + rax + 8], r8
mov qword [rcx + rax + 0x10], r8
mov qword [rcx + rax + 0x18], r8
cmp r9d, edx
jb 0x5c8b8c
jmp 0x5c8ab5
test dl, 0x10
jne 0x5c8cc7
test dl, 8
jne 0x5c8cf0
test dl, 4
jne 0x5c8c78
test edx, edx
je 0x5c8ab5
mov byte [rax], 0
test dl, 2
je 0x5c8ab5
mov word [rax + rdx - 2], 0
jmp 0x5c8ab5
test dl, 0x10
jne 0x5c8c9e
test dl, 8
jne 0x5c8d05
test dl, 4
jne 0x5c8c8b
test edx, edx
je 0x5c8a8b
mov byte [rax], 0
test dl, 2
je 0x5c8a8b
mov word [rax + rdx - 2], 0
jmp 0x5c8a8b
mov rax, qword [rbx + 0x40]
mov qword [rsi], rax
mov rax, qword [rbx + 0x48]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x50]
mov qword [rsi + 0x10], rax
mov rax, qword [rbx + 0x58]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx + 0x60]
mov qword [rsi + 0x20], rax
mov rax, qword [rbx + 0x68]
mov qword [rsi + 0x28], rax
mov rax, qword [rbx + 0x70]
mov qword [rsi + 0x30], rax
mov rax, qword [rbx + 0x78]
mov qword [rsi + 0x38], rax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x5c8ab5
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x5c8a8b
mov qword [rax], 0
mov qword [rax + 8], 0
lea rax, [rax + rdx + 0x10]
mov qword [rax - 0x20], 0
mov qword [rax - 0x18], 0
jmp 0x5c8a8b
mov qword [rax], 0
mov qword [rax + 8], 0
lea rax, [rax + rdx + 0x10]
mov qword [rax - 0x20], 0
mov qword [rax - 0x18], 0
jmp 0x5c8ab5
mov qword [rax], 0
mov qword [rax + rdx - 8], 0
jmp 0x5c8ab5
mov qword [rax], 0
mov qword [rax + rdx - 8], 0
jmp 0x5c8a8b