Function at 0x4d5160
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0xd8]
cmp r12, qword [r14 + 0x10]
jbe 0x4d5b2c
push rbp
mov rbp, rsp
sub rsp, 0x150
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], rcx
mov rdx, rbx
mov rsi, rax
mov rdi, rcx
nop
jmp 0x4d51c3
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 [0x006e4358]
cmp r9, 1
jb 0x4d5b1f
dec r9
mov r10, qword [str._n_____BEGIN]
mov r11, qword [0x006e4360]
dec r11
neg r11
sar r11, 0x3f
and r11d, 1
add r10, r11
cmp rbx, r9
jge 0x4d5202
xor r8d, r8d
nop
jmp 0x4d524c
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0xf8], rax
mov rbx, r10
mov rcx, r9
call fcn.004037e0
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 0x4d5289
mov r8, qword [0x006e4358]
lea r9, [r8 - 1]
nop dword [rax]
cmp rbx, r9
jb 0x4d5b14
sub rcx, r8
sub rbx, r8
lea r8, [rcx + 1]
mov r10, r8
neg r8
sar r8, 0x3f
and r8, r9
add r8, rax
lea r9, [rbx + 1]
jmp 0x4d52b7
mov rdi, qword [str._n_____BEGIN]
mov rsi, qword [0x006e4358]
mov r8, qword [0x006e4360]
nop
call fcn.00471ec0
test r9b, r9b
je 0x4d586e
mov r10, r8
mov r9, rsi
mov r8, rdi
mov rax, r8
mov rbx, r9
mov rcx, r10
call fcn.004d4f00
mov qword [rsp + 0xd8], r8
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xe8], rax
mov rdx, qword [0x006e4398]
cmp rbx, rdx
jl 0x4d5379
mov r9, rbx
sub rbx, rdx
nop dword [rax + rax]
cmp r9, rbx
jb 0x4d5b09
mov r10, r9
sub r9, rbx
mov r11, rbx
sub rbx, rcx
sar rbx, 0x3f
and rbx, r11
lea r11, [rbx + rax]
cmp rdx, r9
je 0x4d5329
xor edx, edx
jmp 0x4d5380
mov qword [rsp + 0xc8], r10
mov qword [rsp + 0x58], rcx
mov rbx, qword [0x006e4390]
mov rax, r11
mov rcx, r9
call fcn.004037e0
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x148]
mov r8, qword [rsp + 0xd8]
mov r10, qword [rsp + 0xc8]
mov edx, eax
mov rax, qword [rsp + 0xe8]
jmp 0x4d5380
mov r10, rbx
xor edx, edx
nop
test dl, dl
je 0x4d51a2
mov rbx, qword [0x006e4398]
sub r10, rbx
cmp rcx, r10
jb 0x4d5afe
mov qword [rsp + 0x50], r10
call fcn.0040dde0
mov qword [rsp + 0x140], rax
lea rax, [0x00586bc0]
call fcn.0040d360
cmp dword [0x007485c0], 0
jne 0x4d53cc
mov rdx, qword [rsp + 0x140]
jmp 0x4d53dc
call fcn.00465040
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.0044f080
mov rdx, qword [rsp + 0x138]
mov qword [rdx + 8], rbx
cmp dword [0x007485c0], 0
je 0x4d5420
call fcn.00465060
mov qword [r11], rax
mov rsi, qword [rdx]
mov qword [r11 + 8], rsi
mov qword [rdx], rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x148]
nop dword [rax + rax]
jmp 0x4d58b4
mov rdx, qword [rsp + 0x138]
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x4d545b
mov r9, qword [r9]
jmp 0x4d5460
xor r9d, r9d
nop
test r9, r9
jne 0x4d54d5
mov rcx, qword [0x006e4378]
cmp rcx, 1
jb 0x4d5af2
mov r9, qword [str._n_____END]
mov r10, qword [0x006e4380]
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 0x4d54a9
xor eax, eax
jmp 0x4d54c3
mov rax, qword [rsp + 0xf0]
call fcn.004037e0
mov rdx, qword [rsp + 0x138]
mov r9, qword [rsp + 0x60]
test al, al
je 0x4d54da
mov r10, qword [0x006e4378]
dec r10
xor eax, eax
jmp 0x4d5520
mov r9, qword [rsp + 0x60]
mov rdi, qword [str._n_____END]
mov rsi, qword [0x006e4378]
mov r8, qword [0x006e4380]
mov rax, qword [rsp + 0xf0]
mov rbx, r9
mov rcx, qword [rsp + 0x70]
nop
call fcn.00471740
mov rdx, qword [0x006e4378]
lea r10, [rdx + rax]
mov rdx, qword [rsp + 0x138]
mov r9, qword [rsp + 0x60]
nop dword [rax]
test rax, rax
jge 0x4d5540
mov r8, qword [rsp + 0x70]
mov rsi, r9
mov rdi, qword [rsp + 0xf0]
jmp 0x4d51a2
cmp r10, r9
ja 0x4d5ae7
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 r11, r10
mov r10, qword [0x006e4398]
mov r15, qword [rsp + 0x50]
add r10, r15
mov rbx, rdx
mov rdx, qword [rsp + 0xf0]
add r11, rdx
cmp rcx, r10
jge 0x4d5597
mov r8, r12
mov rsi, r9
mov rdi, rdx
jmp 0x4d51a2
jb 0x4d5adf
mov qword [rsp + 0xb8], rax
mov rsi, r13
sub r13, r10
mov qword [rsp + 0x88], r13
mov rdi, r13
neg r13
sar r13, 0x3f
and r13, r10
sub rcx, r10
mov qword [rsp + 0x80], rcx
add r13, r11
mov qword [rsp + 0x100], r13
cmp r15, r10
jle 0x4d55e5
xor r8d, r8d
nop
jmp 0x4d5665
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x118], r11
mov qword [rsp + 0xb0], r10
mov rax, r11
mov rbx, qword [rsp + 0xe8]
mov rcx, r15
call fcn.004037e0
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 + 0xb0]
mov r11, qword [rsp + 0x118]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x100]
mov r8d, eax
mov rax, qword [rsp + 0xb8]
test r8b, r8b
je 0x4d5719
mov r15, qword [0x006e4398]
cmp r15, r10
jg 0x4d570d
mov r8, r10
sub r10, r15
cmp r10, r8
ja 0x4d5ad4
mov qword [rsp + 0xd8], r10
sub r8, r10
sub r10, rsi
sar r10, 0x3f
mov rsi, r13
mov r13, qword [rsp + 0xd8]
and r13, r10
lea r10, [r13 + r11]
cmp r15, r8
je 0x4d56bc
xor r8d, r8d
jmp 0x4d5713
mov rbx, qword [0x006e4390]
mov rax, r10
mov rcx, r8
call fcn.004037e0
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 + 0xb8]
jmp 0x4d5713
mov rsi, r13
xor r8d, r8d
xor r8d, 1
jmp 0x4d5722
mov rsi, r13
mov r8d, 1
test r8b, r8b
je 0x4d5735
mov r8, r12
mov rsi, r9
mov rdi, rdx
jmp 0x4d51a2
mov rax, rsi
mov rbx, rcx
mov rcx, rdi
nop
call fcn.004d4f00
test rbx, rbx
je 0x4d5765
mov r8, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xf0]
nop dword [rax]
jmp 0x4d51a2
mov rcx, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x70]
cmp rcx, rdx
ja 0x4d5acf
mov rax, qword [rsp + 0xf0]
mov rbx, rcx
mov rcx, rdx
call fcn.004d5060
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x120], rax
mov qword [rsp + 0xc0], rcx
mov rdx, qword [0x006f2c10]
cmp dword [rdx + 0x140], 0xffffffff
jne 0x4d57d2
lea rdx, [rbx + rbx*2]
mov rsi, rdx
shl rdx, 1
sar rdx, 0x3f
shr rdx, 0x3d
lea rdx, [rdx + rsi*2]
sar rdx, 3
jmp 0x4d57da
shr rbx, 2
lea rdx, [rbx + rbx*2]
mov qword [rsp + 0x38], rdx
lea rax, [0x0056f8c0]
mov rbx, rdx
mov rcx, rbx
call fcn.0044ae80
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x138]
mov qword [rdx + 0x20], rdi
mov qword [rdx + 0x28], rdi
cmp dword [0x007485c0], 0
je 0x4d581f
call fcn.00465060
mov qword [r11], rax
mov r10, qword [rdx + 0x18]
mov qword [r11 + 8], r10
mov qword [rdx + 0x18], rax
mov rax, qword [0x006f2c10]
mov rbx, qword [rdx + 0x18]
mov rcx, rdi
mov rsi, qword [rsp + 0x120]
mov r8, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xc0]
call fcn.004d4500
test rbx, rbx
je 0x4d5a0c
mov r8, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xf0]
jmp 0x4d51a2
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 0x4d5a9f
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xf0], rbx
mov rdx, rax
mov rax, rbx
mov rbx, rdx
call fcn.004d4f00
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], r8
mov rdx, qword [0x006e43b0]
mov r9, qword [0x006e43b8]
mov r10, qword [0x006e43c0]
mov rdi, rdx
mov rsi, r9
mov r8, r10
call fcn.00471ec0
nop dword [rax + rax]
test r9b, r9b
je 0x4d5445
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0xe0], rdi
nop dword [rax + rax]
call fcn.004715c0
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xa8], rbx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x40]
call fcn.004715c0
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.0044f080
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 + 0xa8]
xor eax, eax
mov rbx, qword [rsp + 0x110]
call fcn.0044f080
mov rcx, rax
mov rdi, rbx
lea rax, [0x00577de0]
mov rbx, qword [rsp + 0x128]
call fcn.004122a0
mov rdx, qword [rsp + 0xd8]
mov qword [rax + 8], rdx
cmp dword [0x007485c0], 0
jne 0x4d59f0
mov rdx, qword [rsp + 0x130]
jmp 0x4d5891
call fcn.00465060
mov rdx, qword [rsp + 0x130]
mov qword [r11], rdx
mov rsi, qword [rax]
mov qword [r11 + 8], rsi
jmp 0x4d5891
mov rsi, qword [rsp + 0x138]
mov rdx, qword [rsi + 0x28]
nop dword [rax + rax]
cmp rax, rdx
ja 0x4d5ac7
mov qword [rsi + 0x20], rax
mov rdx, qword [0x006e4378]
mov rdi, qword [rsp + 0xb8]
lea rax, [rdi + rdx]
lea rax, [rax - 1]
add rdx, rdi
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jb 0x4d5ac2
sub rcx, rdx
mov rsi, qword [rsp + 0x70]
sub rsi, 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
nop
call fcn.004d4f00
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.00465480
mov rcx, rax
call fcn.00465440
call fcn.00465440
mov rax, r10
mov rcx, r8
call fcn.00465480
mov rax, r10
call fcn.00465480
mov rax, r10
mov rcx, r9
call fcn.00465480
mov eax, 1
xor ecx, ecx
call fcn.00465480
mov rdx, rcx
mov rcx, r10
call fcn.00465440
mov rax, rbx
mov rcx, r9
call fcn.00465480
mov rax, r9
mov rcx, rbx
call fcn.00465480
mov eax, 1
xor ecx, ecx
call fcn.00465480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
nop dword [rax + rax]
call fcn.00463140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004d5160