Function at 0x597900
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x597f5a
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0xc0], rbx
lea rax, [0x006315e0]
call fcn.0040d900
mov qword [rsp + 0x90], rax
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x006067a0]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
call fcn.0055d300
test rdi, rdi
jne 0x597c7d
mov rdx, qword [rsp + 0x90]
cmp qword [rdx], 1
nop dword [rax]
jne 0x597c1b
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x5979c7
mov rax, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
nop
call fcn.0059e260
jmp 0x5979e0
mov rax, qword [rdx + 0x20]
mov rbx, qword [rdx + 0x28]
mov rcx, qword [rdx + 0x30]
call fcn.0059e260
nop dword [rax + rax]
test rax, rax
je 0x597be1
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x80], rbx
lea rax, [0x00624b20]
nop dword [rax]
call fcn.0040d900
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
mov rdx, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, rdx
mov rcx, r9
call fcn.00544ba0
mov rdi, qword [rsp + 0x68]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x00844540], 0
jne 0x597a51
mov qword [rdi + 8], rax
jmp 0x597a68
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax + rax]
call fcn.00464400
mov rdi, rdx
mov byte [rdi], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + 0x30]
mov rax, qword [rsp + 0x80]
call rdx
mov rbx, qword [rax + 8]
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x68]
call fcn.0053a7a0
test rax, rax
jge 0x597ba7
lea rax, [0x00636900]
call fcn.0040d900
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
cmp dword [0x00844540], 0
jne 0x597ace
mov rdx, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov rsi, qword [rsp + 0x68]
mov qword [rax + 0x20], rsi
jmp 0x597aed
lea rdi, [rax + 8]
mov rdx, qword [rsp + 0x80]
call fcn.00464520
lea rdi, [rax + 0x20]
mov rsi, qword [rsp + 0x68]
call fcn.00464560
mov qword [rsp + 0x60], rax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
lea r8, [rdi - 1]
test r8, r8
jl 0x597b63
mov rsi, qword [rsi + rdi*8 - 8]
mov rdi, rsi
shr rsi, 1
or rdi, rsi
mov rsi, rdi
shr rdi, 2
or rdi, rsi
mov rsi, rdi
shr rdi, 4
or rdi, rsi
mov rsi, rdi
shr rdi, 8
or rdi, rsi
mov rsi, rdi
shr rdi, 0x10
or rdi, rsi
mov rsi, rdi
shr rdi, 0x20
or rdi, rsi
bsr rsi, rdi
mov rdi, 0xffffffffffffffff
cmove rsi, rdi
shl r8, 6
inc rsi
add rsi, r8
jmp 0x597b65
xor esi, esi
lea rdx, [rsi + 7]
sar rdx, 0x3f
shr rdx, 0x3d
add rdx, 7
lea rcx, [rsi + rdx]
sar rcx, 3
mov qword [rsp + 0x40], rcx
lea rax, [0x0060d820]
mov rbx, rcx
call fcn.0044a160
mov rdi, qword [rsp + 0x90]
lea rdx, [rdi + 8]
mov rsi, qword [rsp + 0x40]
jmp 0x597e0d
lea rax, [0x0061ee40]
call fcn.0040d900
mov qword [rax + 8], 0x2e
lea rcx, [0x00656aa5]
mov qword [rax], rcx
lea rbx, [0x006b6e20]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x0061ee40]
call fcn.0040d900
mov qword [rax + 8], 0x1c
lea rcx, [0x00650383]
mov qword [rax], rcx
lea rbx, [0x006b6e20]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
movups xmmword [rsp + 0x98], xmm15
mov rax, qword [rdx]
call fcn.0040aee0
lea rcx, [0x0060cfa0]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
lea rax, [0x00654aa2]
mov ebx, 0x27
lea rcx, [rsp + 0x98]
mov edi, 1
mov rsi, rdi
nop
call fcn.004b6380
mov rcx, rbx
mov rbx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], rdi
lea rax, [0x0062a3e0]
call fcn.0040d900
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x006068e0]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
nop dword [rax + rax]
call fcn.0055d300
test rdi, rdi
je 0x597dd3
lea rax, [0x0063b840]
call fcn.0040d900
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x00606860]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
call fcn.0055d300
test rdi, rdi
je 0x597d96
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x70]
nop
call rcx
mov ecx, 0x26
mov rdi, rax
mov rsi, rbx
xor eax, eax
lea rbx, [0x00654550]
call fcn.0044e080
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rbx
lea rax, [0x0061ee40]
call fcn.0040d900
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
cmp dword [0x00844540], 0
jne 0x597d6d
mov rdx, qword [rsp + 0x58]
mov qword [rax], rdx
jmp 0x597d7a
mov rdi, rax
mov rdx, qword [rsp + 0x58]
call fcn.00464520
lea rbx, [0x006b6e20]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x0061ee40]
nop dword [rax]
call fcn.0040d900
mov qword [rax + 8], 0x58
lea rcx, [0x0065aa44]
mov qword [rax], rcx
lea rbx, [0x006b6e20]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x0061ee40]
call fcn.0040d900
mov qword [rax + 8], 0x58
lea rcx, [0x0065aa9c]
mov qword [rax], rcx
lea rbx, [0x006b6e20]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov r8, qword [rdi + 0x10]
mov rbx, qword [rdi + 8]
mov r9, qword [rdi + 0x18]
cmp r8, rsi
jle 0x597e99
cmp byte [rbx], 0
jne 0x597e5f
dec r8
mov qword [rdi + 0x10], r8
lea r8, [r9 - 1]
mov qword [rdi + 0x18], r8
neg r8
sar r8, 0x3f
and r8d, 1
add r8, rbx
cmp dword [0x00844540], 0
jne 0x597e4f
mov qword [rdi + 8], r8
jmp 0x597e0d
mov rcx, rdi
mov rdi, rdx
call fcn.00464580
mov rdi, rcx
jmp 0x597e0d
lea rax, [0x0061ee40]
call fcn.0040d900
mov qword [rax + 8], 0x20
lea rcx, [0x00651ed6]
mov qword [rax], rcx
lea rbx, [0x006b6e20]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rcx, rsi
sub rsi, r8
nop
cmp rcx, rsi
jb 0x597f51
mov rdi, rcx
sub rcx, rsi
cmp r8, rcx
cmovl rcx, r8
mov rdx, rsi
sub rsi, rdi
sar rsi, 0x3f
and rsi, rdx
lea rdx, [rsi + rax]
cmp rbx, rdx
je 0x597ee9
mov qword [rsp + 0x88], rax
mov rax, rdx
call fcn.00465240
mov rax, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x38]
mov rbx, rax
mov rcx, rdi
mov rax, qword [rsp + 0x80]
call rdx
cmp dword [0x00844540], 0
jne 0x597f1a
mov rdx, qword [rsp + 0x60]
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rbx
jmp 0x597f3a
mov rdi, qword [rsp + 0x60]
lea rdx, [rdi + 0x10]
mov rcx, rdi
mov rdi, rdx
call fcn.00464400
lea rdi, [rcx + 0x18]
call fcn.00464540
mov rdx, rcx
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, rsi
call fcn.00464960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462240
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00597900