Function at 0x596720
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x28]
cmp r12, qword [r14 + 0x10]
jbe 0x596c56
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
mov word [rsp + 0xb0], ax
mov qword [rsp + 0xb8], rbx
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
lea rax, [0x006711c0]
mov rbx, rdx
call fcn.0040b2c0
test rax, rax
je 0x596a73
mov rcx, qword [rax + 0x18]
mov rax, rbx
call rcx
nop
test rax, rax
je 0x596a5c
mov edx, dword [rax + 0x10]
cmp edx, 0x4bcec15d
jne 0x596866
lea rdx, [0x0066c4a0]
nop
cmp rax, rdx
jne 0x596a5c
mov rdx, qword [rbx]
nop
mov rsi, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
lea rdi, [rsi - 1]
test rdi, rdi
jl 0x5967e2
mov rdx, qword [rdx + rsi*8 - 8]
bsr rdx, rdx
mov rsi, 0xffffffffffffffff
cmove rdx, rsi
shl rdi, 6
lea rdx, [rdx + rdi]
lea rdx, [rdx + 1]
nop
jmp 0x5967e4
xor edx, edx
mov qword [rsp + 0x48], rdx
mov rcx, qword [0x0089dfa8]
mov qword [rsp + 0x60], rcx
lea rax, [0x00663de0]
xor ebx, ebx
nop
call fcn.0044b520
mov rdx, qword [0x0089dfa8]
mov rsi, qword [0x0089dfa0]
mov rdi, qword [rsp + 0x48]
lea r8, [rdi + 7]
sar r8, 0x3f
shr r8, 0x3d
lea rdi, [r8 + rdi]
lea rdi, [rdi + 7]
test rdx, rdx
je 0x59685a
mov qword [rsp + 0x80], rdx
sar rdi, 3
mov qword [rsp + 0x50], rdi
movzx r8d, word [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
xor r9d, r9d
jmp 0x596bb6
mov rcx, qword [rsp + 0x60]
xor edx, edx
jmp 0x596b9e
cmp edx, 0x8c7bd38d
jne 0x596a2b
lea rdx, [0x006888a0]
nop dword [rax]
cmp rax, rdx
jne 0x596a5c
movzx edx, word [rsp + 0xb0]
cmp dx, 0x304
jne 0x596a06
mov rax, qword [rbx]
mov qword [rsp + 0x78], rax
mov rbx, qword [rbx + 8]
mov qword [rsp + 0x98], rbx
nop
mov edx, dword [0x00900000]
test edx, edx
jne 0x5968db
lea rax, [0x00900000]
lea rbx, [0x006d9d10]
call fcn.00476620
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [0x0089d1b0]
lea rdx, [0x00730ec8]
cmp rax, rdx
jne 0x596908
call fcn.00404060
test al, al
jne 0x5969e6
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
nop
mov edx, dword [0x00900000]
test edx, edx
jne 0x596933
lea rax, [0x00900000]
lea rbx, [0x006d9d10]
call fcn.00476620
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [0x0089d1b8]
lea rdx, [0x00730e38]
cmp rax, rdx
jne 0x596960
call fcn.00404060
test al, al
jne 0x5969d3
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
nop
mov edx, dword [0x00900000]
test edx, edx
jne 0x59698b
lea rax, [0x00900000]
lea rbx, [0x006d9d10]
call fcn.00476620
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [0x0089d1c0]
lea rdx, [0x00730e80]
cmp rax, rdx
jne 0x5969bc
nop
call fcn.00404060
test al, al
je 0x5969bc
lea rax, [0x0065e860]
call fcn.0040d780
mov word [rax], 0x603
jmp 0x5969f7
xor eax, eax
xor ebx, ebx
mov rcx, rbx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
lea rax, [0x0065e860]
call fcn.0040d780
mov word [rax], 0x503
jmp 0x5969f7
lea rax, [0x0065e860]
call fcn.0040d780
mov word [rax], 0x403
mov ecx, 1
mov edx, 1
jmp 0x596a8a
lea rax, [0x0065f7c0]
call fcn.0040d780
movabs rcx, 0x203060305030403
mov qword [rax], rcx
mov ecx, 4
mov edx, 4
jmp 0x596a8a
cmp edx, 0xc0d9e4a4
jne 0x596a5c
lea rdx, [0x006685a0]
cmp rax, rdx
jne 0x596a5c
lea rax, [0x0065e860]
call fcn.0040d780
mov word [rax], 0x807
mov ecx, 1
mov edx, 1
jmp 0x596a8a
xor eax, eax
xor ebx, ebx
mov rcx, rbx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
mov r8, qword [rsp + 0xb8]
cmp qword [r8 + 0x28], 0
je 0x596ab0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x58], rcx
xor edx, edx
xor ebx, ebx
xor esi, esi
xor edi, edi
jmp 0x596acc
mov rbx, rcx
mov rcx, rdx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
inc rdx
mov rsi, r10
cmp rcx, rdx
jle 0x596b6d
movzx r9d, word [rax + rdx*2]
mov r10, qword [r8 + 0x28]
mov r11, qword [r8 + 0x30]
xor r12d, r12d
jmp 0x596b89
lea r10, [rsi + 1]
cmp rbx, r10
jae 0x596b57
mov qword [rsp + 0x80], rdx
mov word [rsp + 0x44], r9w
mov qword [rsp + 0x68], rsi
lea rax, [0x00663de0]
mov rcx, rsi
mov rsi, r10
mov rdx, rbx
mov rbx, rdi
mov rdi, rdx
nop dword [rax]
call fcn.0044b680
lea r10, [rbx + 1]
mov rdx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0xb8]
movzx r9d, word [rsp + 0x44]
mov rdi, rax
mov rbx, rcx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
mov word [rdi + rsi*2], r9w
nop dword [rax]
jmp 0x596ac6
mov r10, rsi
jmp 0x596ac6
mov rax, rdi
mov rcx, rbx
mov rbx, rsi
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
inc r12
cmp r12, r11
jge 0x596b65
movzx r13d, word [r10 + r12*2]
cmp r13w, r9w
jne 0x596b86
jmp 0x596aea
mov rbx, rcx
mov rcx, rdx
mov rdx, rbx
jmp 0x596a8a
add rsi, 0x18
mov rbx, r9
mov r9, r10
movzx r10d, word [rsi + 0x10]
movzx r11d, word [rsi]
nop
cmp qword [rsi + 8], rdi
jg 0x596c3e
cmp r8w, r10w
ja 0x596c3e
lea r10, [r9 + 1]
cmp rcx, r10
jae 0x596c37
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x58], r9
mov word [rsp + 0x46], r11w
mov rbx, rax
mov rdi, rcx
mov rsi, r10
lea rax, [0x00663de0]
mov rcx, r9
call fcn.0044b680
lea r10, [rbx + 1]
mov rdx, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x50]
movzx r8d, word [rsp + 0xb0]
mov r9, qword [rsp + 0x58]
movzx r11d, word [rsp + 0x46]
mov word [rax + r9*2], r11w
jmp 0x596c41
mov r10, r9
lea r9, [rbx + 1]
cmp rdx, r9
jg 0x596bac
mov rdx, r10
jmp 0x596b9e
mov word [rsp + 8], ax
mov qword [rsp + 0x10], rbx
call fcn.004628e0
movzx eax, word [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00596720