Function at 0x56c960
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0xd8]
cmp r12, qword [r14 + 0x10]
jbe 0x56d346
push rbp
mov rbp, rsp
sub rsp, 0x150
mov qword [rsp + 0x170], rcx
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x160], rax
mov rdx, rbx
mov rsi, rax
mov rdi, rcx
nop
jmp 0x56c9c3
mov rdx, qword [rsp + 0x168]
mov rbx, rsi
mov rax, rdi
mov rcx, r8
mov rsi, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x170]
mov r9, qword [0x007710b8]
cmp r9, 1
jb 0x56d335
dec r9
mov r10, qword [str._n_____BEGIN]
mov r11, qword [0x007710c0]
dec r11
neg r11
sar r11, 0x3f
and r11d, 1
add r10, r11
cmp rbx, r9
jge 0x56ca02
xor r8d, r8d
nop
jmp 0x56ca4c
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0xf8], rax
mov rbx, r10
mov rcx, r9
call fcn.00403600
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x170]
mov r8d, eax
mov rax, qword [rsp + 0xf8]
test r8b, r8b
je 0x56ca8a
mov r8, qword [0x007710b8]
lea r9, [r8 - 1]
nop dword [rax]
cmp rbx, r9
jb 0x56d32a
sub rcx, r8
sub rbx, r8
lea r8, [rcx + 1]
mov r10, r8
neg r8
sar r8, 0x3f
and r9, r8
lea r8, [rax + r9]
lea r9, [rbx + 1]
jmp 0x56cab7
mov rdi, qword [str._n_____BEGIN]
mov rsi, qword [0x007710b8]
mov r8, qword [0x007710c0]
nop
call fcn.004bedc0
test r9b, r9b
je 0x56d085
mov r10, r8
mov r9, rsi
mov r8, rdi
mov rax, r8
mov rbx, r9
mov rcx, r10
call fcn.0056c700
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xd0], r8
mov rdx, qword [0x007710f8]
cmp rbx, rdx
jl 0x56cb79
mov r9, rbx
sub rbx, rdx
nop dword [rax + rax]
cmp r9, rbx
jb 0x56d31f
mov r10, r9
sub r9, rbx
mov r11, rbx
sub rbx, rcx
sar rbx, 0x3f
and r11, rbx
add r11, rax
nop
cmp rdx, r9
je 0x56cb29
xor edx, edx
jmp 0x56cb80
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0xc8], r10
mov rbx, qword [0x007710f0]
mov rax, r11
mov rcx, r9
call fcn.00403600
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x148]
mov r8, qword [rsp + 0xd0]
mov r10, qword [rsp + 0xc8]
mov edx, eax
mov rax, qword [rsp + 0xe8]
jmp 0x56cb80
mov r10, rbx
xor edx, edx
nop
test dl, dl
je 0x56c9a2
mov rbx, qword [0x007710f8]
sub r10, rbx
cmp rcx, r10
jb 0x56d314
mov qword [rsp + 0x50], r10
call fcn.0040f4e0
mov qword [rsp + 0x140], rax
lea rax, [0x005d7a20]
call fcn.0040ea60
cmp dword [0x00807190], 0
jne 0x56cbcc
mov rdx, qword [rsp + 0x140]
jmp 0x56cbdc
call fcn.0046b0a0
mov rdx, qword [rsp + 0x140]
mov qword [r11], rdx
mov qword [rsp + 0x138], rax
mov qword [rax + 0x10], rdx
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x50]
xor eax, eax
call fcn.00452fa0
mov rdx, qword [rsp + 0x138]
mov qword [rdx + 8], rbx
cmp dword [0x00807190], 0
je 0x56cc20
call fcn.0046b0c0
mov qword [r11], rax
mov rsi, qword [rdx]
mov qword [r11 + 8], rsi
mov qword [rdx], rax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x148]
nop dword [rax + rax]
jmp 0x56d0cb
mov rdx, qword [rsp + 0x138]
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x56cc5b
mov r9, qword [r9]
jmp 0x56cc60
xor r9d, r9d
nop
test r9, r9
jne 0x56ccd5
mov rcx, qword [0x007710d8]
cmp rcx, 1
jb 0x56d308
mov r9, qword [str._n_____END]
mov r10, qword [0x007710e0]
dec rcx
dec r10
neg r10
sar r10, 0x3f
and r10d, 1
lea rbx, [r10 + r9]
mov r9, qword [rsp + 0x60]
nop
cmp r9, rcx
jge 0x56cca9
xor eax, eax
jmp 0x56ccc3
mov rax, qword [rsp + 0xf0]
call fcn.00403600
mov rdx, qword [rsp + 0x138]
mov r9, qword [rsp + 0x60]
test al, al
je 0x56ccda
mov r10, qword [0x007710d8]
dec r10
xor eax, eax
jmp 0x56cd20
mov r9, qword [rsp + 0x60]
mov rdi, qword [str._n_____END]
mov rsi, qword [0x007710d8]
mov r8, qword [0x007710e0]
mov rax, qword [rsp + 0xf0]
mov rbx, r9
mov rcx, qword [rsp + 0x70]
nop
call fcn.004be640
mov rdx, qword [0x007710d8]
lea r10, [rdx + rax]
mov rdx, qword [rsp + 0x138]
mov r9, qword [rsp + 0x60]
nop dword [rax]
test rax, rax
jge 0x56cd40
mov r8, qword [rsp + 0x70]
mov rsi, r9
mov rdi, qword [rsp + 0xf0]
jmp 0x56c9a2
cmp r10, r9
ja 0x56d2fd
mov rcx, r9
sub rcx, r10
mov r11, qword [rsp + 0x70]
mov r12, r11
sub r11, r10
mov r13, r11
neg r11
sar r11, 0x3f
and r10, r11
mov r11, qword [0x007710f8]
mov r15, qword [rsp + 0x50]
add r11, r15
mov rbx, rdx
mov rdx, qword [rsp + 0xf0]
add r10, rdx
cmp rcx, r11
jge 0x56cd97
mov r8, r12
mov rsi, r9
mov rdi, rdx
jmp 0x56c9a2
jb 0x56d2f5
mov qword [rsp + 0xb0], rax
mov rsi, r13
sub r13, r11
mov qword [rsp + 0x88], r13
mov rdi, r13
neg r13
sar r13, 0x3f
and r13, r11
sub rcx, r11
mov qword [rsp + 0x80], rcx
add r13, r10
mov qword [rsp + 0x100], r13
cmp r15, r11
jle 0x56cde5
xor r8d, r8d
nop
jmp 0x56ce65
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x118], r10
mov qword [rsp + 0xa8], r11
mov rax, r10
mov rbx, qword [rsp + 0xe8]
mov rcx, r15
call fcn.00403600
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x138]
mov rsi, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0x118]
mov r11, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x100]
mov r8d, eax
mov rax, qword [rsp + 0xb0]
test r8b, r8b
je 0x56cf17
mov r15, qword [0x007710f8]
cmp r15, r11
jg 0x56cf0b
mov r8, r11
sub r11, r15
cmp r11, r8
ja 0x56d2ea
mov qword [rsp + 0xd8], r11
sub r8, r11
sub r11, rsi
sar r11, 0x3f
mov rsi, r13
mov r13, qword [rsp + 0xd8]
and r13, r11
add r10, r13
cmp r15, r8
je 0x56ceba
xor r8d, r8d
jmp 0x56cf11
mov rbx, qword [0x007710f0]
mov rax, r10
mov rcx, r8
call fcn.00403600
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x138]
mov rsi, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
mov r8d, eax
mov rax, qword [rsp + 0xb0]
jmp 0x56cf11
mov rsi, r13
xor r8d, r8d
xor r8d, 1
jmp 0x56cf20
mov rsi, r13
mov r8d, 1
test r8b, r8b
je 0x56cf33
mov r8, r12
mov rsi, r9
mov rdi, rdx
jmp 0x56c9a2
mov rax, rsi
mov rbx, rcx
mov rcx, rdi
nop dword [rax]
call fcn.0056c700
test rbx, rbx
je 0x56cf65
mov r8, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xf0]
nop dword [rax]
jmp 0x56c9a2
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x70]
cmp rcx, rdx
ja 0x56d2e5
mov rax, qword [rsp + 0xf0]
mov rbx, rcx
mov rcx, rdx
call fcn.0056c860
mov qword [rsp + 0x120], rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rcx
mov rdx, qword [0x00780c50]
cmp dword [rdx + 0x140], 0xffffffff
jne 0x56cfe3
mov rdx, rbx
shr rbx, 2
lea rsi, [rbx + rbx*2]
and edx, 3
lea rdx, [rdx + rdx*2]
mov r8, rdx
shl rdx, 1
sar rdx, 0x3f
shr rdx, 0x3d
lea rdx, [rdx + r8*2]
sar rdx, 3
add rdx, rsi
jmp 0x56cfeb
shr rbx, 2
lea rdx, [rbx + rbx*2]
mov qword [rsp + 0x38], rdx
lea rax, [0x005b7da0]
mov rbx, rdx
mov rcx, rbx
nop dword [rax]
call fcn.0044edc0
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x138]
mov qword [rdx + 0x20], rdi
mov qword [rdx + 0x28], rdi
cmp dword [0x00807190], 0
je 0x56d033
call fcn.0046b0c0
mov qword [r11], rax
mov r10, qword [rdx + 0x18]
mov qword [r11 + 8], r10
mov qword [rdx + 0x18], rax
mov rax, qword [0x00780c50]
mov rbx, qword [rdx + 0x18]
mov rcx, rdi
mov rsi, qword [rsp + 0x120]
mov r8, qword [rsp + 0xb8]
mov r9, qword [rsp + 0xc0]
nop dword [rax]
call fcn.0056c020
test rbx, rbx
je 0x56d225
mov r8, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xf0]
jmp 0x56c9a2
xor eax, eax
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x170]
add rsp, 0x150
pop rbp
ret
mov qword [rax], rdx
mov rdx, qword [rsp + 0x138]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x108]
test rax, rax
je 0x56d2b2
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x70], rcx
mov rdx, rax
mov rax, rbx
mov rbx, rdx
call fcn.0056c700
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], r8
mov rdx, qword [0x00771110]
mov r9, qword [0x00771118]
mov r10, qword [0x00771120]
mov rdi, rdx
mov rsi, r9
mov r8, r10
call fcn.004bedc0
test r9b, r9b
je 0x56cc45
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0xe0], rdi
call fcn.004be4c0
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xa0], rbx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x40]
call fcn.004be4c0
mov rcx, rbx
mov rbx, rax
xor eax, eax
nop
call fcn.00452fa0
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x138]
mov rsi, qword [rdx + 0x10]
mov qword [rsp + 0x128], rsi
mov rcx, qword [rsp + 0xa0]
xor eax, eax
mov rbx, qword [rsp + 0x110]
nop dword [rax + rax]
call fcn.00452fa0
mov rcx, rax
mov rdi, rbx
lea rax, [0x005c1920]
mov rbx, qword [rsp + 0x128]
call fcn.00413980
mov rdx, qword [rsp + 0xd8]
mov qword [rax + 8], rdx
cmp dword [0x00807190], 0
jne 0x56d205
mov rdx, qword [rsp + 0x130]
nop dword [rax]
jmp 0x56d0a8
call fcn.0046b0c0
mov rdx, qword [rsp + 0x130]
mov qword [r11], rdx
mov rsi, qword [rax]
mov qword [r11 + 8], rsi
nop dword [rax]
jmp 0x56d0a8
mov rsi, qword [rsp + 0x138]
mov rdx, qword [rsi + 0x28]
cmp rax, rdx
ja 0x56d2da
mov qword [rsi + 0x20], rax
mov rdx, qword [0x007710d8]
mov rdi, qword [rsp + 0xb0]
lea rax, [rdi + rdx]
lea rax, [rax - 1]
add rdx, rdi
mov rcx, qword [rsp + 0x60]
nop dword [rax]
cmp rcx, rax
jb 0x56d2d5
mov rsi, qword [rsp + 0x70]
sub rsi, rdx
sub rcx, rdx
lea rdx, [rsi + 1]
mov rsi, rdx
neg rdx
lea rbx, [rcx + 1]
sar rdx, 0x3f
and rax, rdx
mov rdx, qword [rsp + 0xf0]
add rax, rdx
mov rcx, rsi
call fcn.0056c700
mov rax, qword [rsp + 0x138]
mov rbx, rdi
mov rcx, rsi
mov rdi, r8
add rsp, 0x150
pop rbp
ret
xor eax, eax
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x170]
add rsp, 0x150
pop rbp
ret
call fcn.0046b520
mov rcx, rax
nop dword [rax]
call fcn.0046b4e0
call fcn.0046b4e0
mov rax, r11
mov rcx, r8
call fcn.0046b520
mov rax, r11
call fcn.0046b520
mov rax, r10
mov rcx, r9
call fcn.0046b520
mov eax, 1
xor ecx, ecx
call fcn.0046b520
mov rdx, rcx
mov rcx, r10
call fcn.0046b4e0
mov rax, rbx
mov rcx, r9
call fcn.0046b520
mov rax, r9
mov rcx, rbx
call fcn.0046b520
mov eax, 1
xor ecx, ecx
nop dword [rax]
call fcn.0046b520
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00469180
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0056c960