Function at 0x164c71030
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbc8]
sub rsp, 0xcc8
mov rax, qword [0x164cb3008]
xor rax, rsp
mov qword [rbp + 0xbb0], rax
mov ebx, dword [rbp + 0xc30]
mov rsi, qword [rbp + 0xc10]
mov r13, qword [rbp + 0xc18]
mov rdi, qword [rbp + 0xc20]
mov r12, qword [rbp + 0xc28]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rdi
test ebx, ebx
je case.0x164c710cb.0
mov eax, dword [r12]
and eax, 7
cmp rax, 7
ja case.default.0x164c710cb
lea rcx, [0x164c40000]
mov eax, dword [rcx + rax*4 + 0x31860]
add rax, rcx
jmp rax
xor r14d, r14d
lea eax, [rbx - 1]
movsxd r8, eax
mov edx, r14d
test eax, eax
js 0x164c71101
nop dword [rax]
mov rax, qword [r12 + r8*8]
shr rax, 2
or rax, rdx
mov rdx, qword [r12 + r8*8]
shl rdx, 0x3e
mov qword [rbp + r8*8 + 0x590], rax
sub r8, 1
jns 0x164c710e0
test ebx, ebx
je 0x164c7112b
lea r8, [rbp + 0x590]
nop dword [rax]
mov rax, qword [r8]
inc rax
mov qword [r8], rax
cmp rax, 1
jae 0x164c7112b
inc r14d
add r8, 8
cmp r14d, ebx
jb 0x164c71110
mov rax, qword [rsi + 8]
lea r8, [rbp + 0x590]
mov qword [rsp + 0x30], rax
mov r9d, ebx
mov dword [rsp + 0x28], ebx
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.164c6f9f0
mov al, 1
jmp 0x164c7183c
lea edx, [rbx - 1]
xor r14d, r14d
movsxd rsi, edx
mov r8d, r14d
mov r9, rsi
test edx, edx
js 0x164c71191
nop dword [rax]
mov rax, qword [r12 + r9*8]
shr rax, 3
or rax, r8
mov r8, qword [r12 + r9*8]
shl r8, 0x3d
mov qword [rbp + r9*8 + 0x590], rax
sub r9, 1
jns 0x164c71170
mov r9, r14
mov r10, rbx
test ebx, ebx
je 0x164c711d0
lea rax, [rbp + 0x380]
mov r11, rbx
sub rdi, rax
lea r8, [rbp + 0x380]
nop
mov rcx, qword [rdi + r8]
lea r8, [r8 + 8]
lea rax, [rcx + rcx]
or rax, r9
mov r9, rcx
shr r9, 0x3f
mov qword [r8 - 8], rax
sub r11, 1
jne 0x164c711b0
test edx, edx
js 0x164c711fb
lea r9, [rbp + 0x380]
sub r9, r12
lea rax, [r12 + rsi*8]
mov rcx, qword [r9 + rax]
cmp rcx, qword [rax]
ja 0x164c711f8
jb 0x164c71249
sub rax, 8
sub edx, 1
jns 0x164c711e2
jmp 0x164c711fb
mov r10, rbx
mov rdx, r14
test ebx, ebx
je 0x164c71249
lea rax, [rbp + 0x380]
mov r9, r12
sub r9, rax
lea rcx, [rbp + 0x380]
nop word [rax + rax]
mov rax, qword [rcx]
mov r8, qword [r9 + rcx]
sub rax, rdx
cmp rax, 0xffffffffffffffff
je 0x164c71239
cmp rax, r8
mov rdx, r14
setb dl
sub rax, r8
mov qword [rcx], rax
add rcx, 8
sub r10, 1
jne 0x164c71220
mov r15, qword [rsp + 0x50]
lea r8, [rbp + 0x590]
mov r9d, ebx
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x170]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
call fcn.164c6f9f0
mov rcx, qword [r15]
test rcx, rcx
jne 0x164c712f8
mov rsi, qword [r15 + 8]
lea edi, [rbx + rbx]
lea eax, [rdi - 1]
mov r8d, ebx
lea ecx, [rdi - 2]
mov qword [rbp + rax*8 + 0x7a0], r14
mov qword [rbp + rcx*8 + 0x7a0], r14
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x7a0]
call fcn.164c6f4d0
test rsi, rsi
je 0x164c712d7
mov r8d, ebx
lea rdx, [rbp + 0x7a0]
lea rcx, [rsp + 0x60]
mov rax, rsi
call qword [0x164c92120]
jmp 0x164c71310
mov dword [rsp + 0x28], ebx
lea r8, [rbp + 0x7a0]
mov r9d, edi
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.164c6f130
jmp 0x164c71310
mov r9, r12
mov dword [rsp + 0x20], ebx
lea r8, [rbp + 0x170]
lea rdx, [rsp + 0x60]
call fcn.164c70460
mov rcx, qword [r15]
lea rdx, [rsp + 0x60]
test rcx, rcx
jne 0x164c71340
mov rax, qword [r15 + 8]
lea r8, [rbp + 0x380]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x60]
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.164c6f8e0
jmp 0x164c7135a
mov dword [rsp + 0x28], ebx
lea r9, [rbp + 0x380]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r12
call fcn.164c70230
mov r8d, r14d
test ebx, ebx
je 0x164c713ec
lea rdx, [rsp + 0x60]
nop word [rax + rax]
mov rcx, qword [rdx]
lea rax, [rcx - 1]
mov qword [rdx], rax
cmp rcx, 1
jae 0x164c713ec
inc r8d
add rdx, 8
cmp r8d, ebx
jb 0x164c71370
lea rax, [rsp + 0x60]
mov r8, r12
sub r8, rax
lea rdx, [rsp + 0x60]
nop dword [rax]
mov rcx, qword [r8 + rdx]
lea rax, [rcx - 1]
mov qword [rdx], rax
cmp rcx, 1
jae 0x164c713bf
inc r14d
add rdx, 8
cmp r14d, ebx
jb 0x164c713a0
jmp 0x164c713ec
lea rax, [rsp + 0x60]
cmp rax, r12
je 0x164c713ec
mov eax, ebx
lea ecx, [r14 + 1]
sub eax, r14d
lea rdx, [r12 + rcx*8]
lea r8d, [rax*8 - 8]
lea rax, [rsp + 0x60]
lea rcx, [rax + rcx*8]
call fcn.164c8fe50
mov rcx, qword [r15]
test rcx, rcx
jne 0x164c7141a
mov rax, qword [r15 + 8]
lea r8, [rbp + 0x170]
mov rdx, qword [rsp + 0x40]
mov r9, r12
mov qword [rsp + 0x28], rax
mov rcx, r13
mov dword [rsp + 0x20], ebx
call fcn.164c6f8e0
jmp 0x164c71437
mov r8, qword [rsp + 0x40]
lea r9, [rbp + 0x170]
mov dword [rsp + 0x28], ebx
mov rdx, r13
mov qword [rsp + 0x20], r12
call fcn.164c70230
mov rcx, qword [r15]
mov rdx, r13
test rcx, rcx
jne 0x164c71466
mov rax, qword [r15 + 8]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9, r12
mov rcx, r13
mov dword [rsp + 0x20], ebx
call fcn.164c6f8e0
mov al, 1
jmp 0x164c7183c
mov dword [rsp + 0x28], ebx
lea r9, [rsp + 0x60]
mov r8, r13
mov qword [rsp + 0x20], r12
call fcn.164c70230
mov al, 1
jmp 0x164c7183c
lea r15d, [rbx - 1]
xor edx, edx
lea r8d, [r15*8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
mov qword [rsp + 0x60], 1
mov edx, r14d
test ebx, ebx
je 0x164c7151b
lea rax, [rbp + 0x590]
mov r8, r12
sub r8, rax
lea rcx, [rbp + 0x590]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx + r8]
inc rax
mov qword [rcx], rax
cmp rax, 1
jae 0x164c714ec
inc edx
add rcx, 8
cmp edx, ebx
jb 0x164c714d0
jmp 0x164c7151b
lea rax, [rbp + 0x590]
cmp rax, r12
je 0x164c7151b
lea ecx, [rdx + 1]
mov eax, ebx
sub eax, edx
lea rdx, [r12 + rcx*8]
lea r8d, [rax*8 - 8]
lea rax, [rbp + 0x590]
lea rcx, [rax + rcx*8]
call fcn.164c8fe50
lea r10d, [rbx - 1]
mov rdx, r14
movsxd r8, r10d
test r10d, r10d
js 0x164c71556
nop word [rax + rax]
mov rcx, qword [rbp + r8*8 + 0x590]
mov rax, rcx
shr rax, 1
or rax, rdx
mov rdx, rcx
shl rdx, 0x3f
mov qword [rbp + r8*8 + 0x590], rax
sub r8, 1
jns 0x164c71530
movsxd r13, ebx
nop dword [rax]
mov ecx, r14d
test r15d, r15d
je 0x164c71584
lea rax, [rsp + 0x68]
nop dword [rax]
cmp qword [rax], r14
jne case.0x164c710cb.0
inc ecx
add rax, 8
cmp ecx, r15d
jb 0x164c71570
cmp qword [rsp + 0x60], 0x63
ja case.0x164c710cb.0
mov dword [rsp + 0x38], ebx
lea rax, [rbp + 0x590]
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x380]
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call fcn.164c70690
test byte [rbp + 0x170], 1
je 0x164c7161e
mov r8, r14
test ebx, ebx
je 0x164c7161e
lea rax, [rbp + 0x170]
mov r10, r12
sub r10, rax
lea rdx, [rbp + 0x170]
mov r9, rbx
nop dword [rax]
mov rcx, qword [rdx]
mov rax, qword [rdx + r10]
add rcx, r8
cmp rcx, r8
jae 0x164c71604
mov rcx, rax
jmp 0x164c71611
add rcx, rax
mov r8, r14
cmp rcx, rax
setb r8b
mov qword [rdx], rcx
add rdx, 8
sub r9, 1
jne 0x164c715f0
mov r11, qword [rsp + 0x48]
lea rdx, [r13 - 1]
mov r9, r14
test rdx, rdx
js 0x164c71673
lea rdi, [rdx*8]
lea r10, [rbp + 0x170]
lea r8, [rdi + r11]
sub r10, r11
nop word [rax + rax]
mov rax, qword [r10 + r8]
lea r8, [r8 - 8]
shr rax, 1
or rax, r9
mov r9, qword [r10 + r8 + 8]
shl r9, 0x3f
sub rdx, 1
mov qword [r8 + 8], rax
jns 0x164c71650
jmp 0x164c7167b
lea rdi, [r13*8 - 8]
mov rcx, qword [rsi]
test rcx, rcx
jne 0x164c71714
mov rsi, qword [rsi + 8]
lea edi, [rbx + rbx]
lea eax, [rdi - 1]
mov r8d, ebx
lea ecx, [rdi - 2]
mov qword [rbp + rax*8 + 0x7a0], r14
mov qword [rbp + rcx*8 + 0x7a0], r14
mov rdx, r11
lea rcx, [rbp + 0x7a0]
call fcn.164c6f4d0
test rsi, rsi
je 0x164c716e4
mov r8d, ebx
lea rdx, [rbp + 0x7a0]
lea rcx, [rbp + 0x170]
mov rax, rsi
call qword [0x164c92120]
mov rsi, qword [rsp + 0x50]
lea rdi, [r13*8 - 8]
jmp 0x164c7172a
mov dword [rsp + 0x28], ebx
lea r8, [rbp + 0x7a0]
mov r9d, edi
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x170]
xor ecx, ecx
call fcn.164c6f130
mov rsi, qword [rsp + 0x50]
lea rdi, [r13*8 - 8]
jmp 0x164c7172a
mov r9, r12
mov dword [rsp + 0x20], ebx
mov r8, r11
lea rdx, [rbp + 0x170]
call fcn.164c70460
lea r10d, [rbx - 1]
mov ecx, r10d
test r10d, r10d
js 0x164c71152
mov r9, qword [rsp + 0x40]
lea rax, [rbp + 0x170]
add rax, rdi
lea rdx, [rbp + 0x170]
sub r9, rdx
mov rdx, qword [rax]
cmp rdx, qword [r9 + rax]
ja 0x164c7176e
jb 0x164c7176e
sub rax, 8
sub ecx, 1
jns 0x164c71753
mov al, 1
jmp 0x164c7183c
mov ecx, r14d
test r15d, r15d
je 0x164c71790
lea rax, [rbp + 0x388]
nop dword [rax]
cmp qword [rax], r14
jne 0x164c717ab
inc ecx
add rax, 8
cmp ecx, r15d
jb 0x164c71780
cmp qword [rbp + 0x380], 1
je 0x164c71804
mov eax, 1
mov ecx, 0xffffffff
cmovb eax, ecx
test eax, eax
jle 0x164c71804
mov edx, r14d
test ebx, ebx
je 0x164c717d9
lea rcx, [rbp + 0x380]
nop dword [rax]
mov rax, qword [rcx]
inc rax
mov qword [rcx], rax
cmp rax, 1
jae 0x164c717d9
inc edx
add rcx, 8
cmp edx, ebx
jb 0x164c717c0
lea r9, [rbp + 0x380]
mov ecx, r10d
sub r9, r12
lea rax, [r12 + rdi]
nop word [rax + rax]
mov rdx, qword [rax + r9]
cmp rdx, qword [rax]
ja 0x164c71804
jb case.0x164c710cb.0
sub rax, 8
sub ecx, 1
jns 0x164c717f0
mov edx, r14d
test ebx, ebx
je 0x164c71829
lea rcx, [rsp + 0x60]
mov rax, qword [rcx]
inc rax
mov qword [rcx], rax
cmp rax, 1
jae 0x164c71829
inc edx
add rcx, 8
cmp edx, ebx
jb 0x164c71810
mov rdi, qword [rsp + 0x40]
jmp 0x164c71560
mov ecx, 0x25
int 0x29
xor al, al
mov rcx, qword [rbp + 0xbb0]
xor rcx, rsp
call fcn.164c8ef00
add rsp, 0xcc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret