Function at 0x18005d190
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea eax, [r8 - 0xc]
mov r10, r9
mov dword [rsp + 0x30], eax
mov r9d, r8d
mov rsi, rdx
mov r14, rcx
cmp r8d, eax
jbe 0x18005d609
mov r13, qword [rsp + 0x60]
lea rdi, [0x180000000]
mov r15d, dword [rsp + 0xc0]
xor ebx, ebx
mov r12d, dword [rsp + 0xc0]
lea eax, [r9 - 0x1f]
movabs rdx, 0xaaaaaaaaaaaaaaab
cmp eax, 0x36
ja case.0x18005d212.43
movzx eax, byte [rdi + rax + 0x5d65c]
mov ecx, dword [rdi + rax*4 + 0x5d628]
add rcx, rdi
jmp rcx
mov rcx, qword [r14]
mov rax, rdx
mul rcx
mov r8, rcx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r8, rax
sub rcx, r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x58], rcx
jmp case.0x18005d212.43
test r10, r10
jne case.0x18005d212.43
mov rcx, qword [r14]
mov rax, rdx
mul rcx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rcx, rax
setne bl
lea rax, [rdx + rbx]
shl rax, 2
jmp 0x18005d60e
test rsi, rsi
jne case.0x18005d212.43
mov rax, rbx
jmp 0x18005d60e
xor edx, edx
mov qword [rsp + 0x20], rbx
mov r9, rsi
xor ecx, ecx
lea r8d, [rdx + 0x3b]
call fcn.180071540
mov ebp, ebx
mov edi, 0x71
nop word [rax + rax]
cmp edi, 0x71
je 0x18005d2b5
cmp edi, 0xc5c
jne 0x18005d2e6
shl dword [r14], 4
inc dword [rsi]
jmp 0x18005d2e6
mov r9, rsi
mov dword [rsp + 0x40], 4
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, ILAppendID
call fcn.18006ab90
test eax, eax
jne 0x18005d4b7
mov eax, dword [r14]
mov rcx, qword [rsi + 0x10]
shr eax, 0x1c
or dword [rcx], eax
add edi, 0xbeb
cmp edi, 0x17d6
jbe 0x18005d2a0
inc ebp
cmp ebp, 8
jl 0x18005d295
mov r9d, dword [rsp + 0xc0]
lea rdi, [0x180000000]
mov r10, qword [rsp + 0xc8]
jmp case.0x18005d212.43
mov eax, 0x78
nop dword [rax]
cmp eax, 0x78
je 0x18005d4c0
add eax, 0x2f
cmp eax, 0xa7
jb 0x18005d320
mov rax, qword [rsp + 0x48]
neg rax
mov rax, qword [rsp + 0x48]
sbb r13, r13
and r13d, 4
add r13, qword [rsp + 0x50]
mov qword [rsp + 0x60], r13
sub rax, 1
je 0x18005d404
cmp rax, 1
jne case.0x18005d212.43
lea rdx, [r13 - 3]
mov r8d, PathMakeUniqueName
add rdx, r10
mov eax, r8d
sub eax, 0x26
je case.0x18005d212.32
sub eax, 1
je 0x18005d3eb
sub eax, 1
je 0x18005d3d5
sub eax, 1
je 0x18005d3b6
cmp eax, 1
jne 0x18005d3f7
mov rax, qword [rsp + 0x38]
movzx r15d, byte [rax + rsi]
movzx r12d, byte [rax + rsi + 1]
mov eax, r15d
shr rax, 2
movzx eax, byte [rax + rdi + 0x90110]
mov byte [rdx - 1], al
jmp 0x18005d3f7
mov ecx, r15d
mov eax, r12d
and ecx, 3
shr rax, 4
shl ecx, 4
or rcx, rax
movzx eax, byte [rcx + rdi + 0x90110]
mov byte [rdx], al
jmp 0x18005d3f7
mov eax, r12d
and eax, 0xf
shl eax, 2
movzx eax, byte [rax + rdi + 0x90110]
mov byte [rdx + 1], al
jmp 0x18005d3f7
sub r13, 4
mov byte [rdx + 2], 0x3d
sub rdx, 4
dec r8d
cmp r8d, 0x25
ja 0x18005d372
mov rbx, qword [rsp + 0x38]
lea rcx, [r13 - 3]
add rcx, r10
mov edx, 0x128
mov eax, edx
sub eax, 0x127
je 0x18005d44f
cmp eax, 1
jne 0x18005d45d
movzx r15d, byte [rbx + rsi]
mov eax, r15d
shr rax, 2
movzx eax, byte [rax + rdi + 0x90110]
mov byte [rcx - 1], al
mov eax, r15d
and eax, 3
shl eax, 4
movzx eax, byte [rax + rdi + 0x90110]
mov byte [rcx], al
jmp 0x18005d45d
sub r13, 4
mov word [rcx + 1], 0x3d3d
sub rcx, 4
dec edx
cmp edx, 0x126
ja 0x18005d415
xor ebx, ebx
jmp case.0x18005d212.43
mov r9d, 0x20
jmp case.0x18005d212.43
test rsi, rsi
je case.0x18005d212.43
movzx eax, byte [r14]
shl al, 4
xor al, byte [rsi]
and al, 0x10
xor byte [rsi], al
jmp case.0x18005d212.43
mov rax, rdx
mul qword [r14]
mov rax, rdx
shr rax, 1
shl rax, 2
mov qword [rsp + 0x50], rax
dec r9d
mov dword [rsp + 0xc0], r9d
cmp r9d, dword [rsp + 0x30]
jbe 0x18005d609
jmp 0x18005d1e9
mov dword [rsp + 0x30], eax
jmp 0x18005d609
xor edx, edx
mov qword [rsp + 0x20], rbx
mov r9, rsi
xor r8d, r8d
lea ecx, [rdx + 3]
call fcn.18003f700
mov dword [rsp + 0x30], ebx
jmp 0x18005d609
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x18005d5d1
mov r11d, dword [rsp + 0xc0]
lea r9, [rax - 2]
lea rcx, [rax - 1]
add r10, 0xfffffffffffffffc
mov rax, rdx
add r9, rsi
mul rcx
add r10, r13
shr rdx, 1
inc rdx
nop dword [rax]
nop dword [rax + rax]
mov r8d, 0xb2
mov eax, r8d
sub eax, 0xb2
je 0x18005d5a0
sub eax, 0x3b
je 0x18005d54e
cmp eax, 0x3b
jne 0x18005d5ae
mov eax, r11d
and eax, 0x3f
movzx eax, byte [rax + rdi + 0x90110]
mov byte [r10 + 3], al
jmp 0x18005d5ae
mov ecx, r15d
mov eax, r15d
shr rax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [rax + rdi + 0x90110]
mov byte [r10], al
mov eax, r12d
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + rdi + 0x90110]
mov ecx, r12d
mov byte [r10 + 1], al
and ecx, 0xf
mov eax, r11d
shr rax, 6
shl ecx, 2
or rcx, rax
movzx eax, byte [rcx + rdi + 0x90110]
mov byte [r10 + 2], al
jmp 0x18005d5ae
movzx r15d, byte [r9 - 1]
movzx r12d, byte [r9]
movzx r11d, byte [r9 + 1]
add r8d, 0x3b
cmp r8d, 0x163
jb 0x18005d526
sub r9, 3
sub r10, 4
sub rdx, 1
jne 0x18005d520
mov rax, qword [rsp + 0x60]
jmp 0x18005d60e
mov rax, qword [rsi]
not rax
cmp qword [r14], rax
seta byte [rsp + 0x30]
jmp 0x18005d609
mov rax, qword [r14]
lea rdx, [rsp + 0x60]
mov r9, rsi
mov qword [rsp + 0x60], rax
mov r8d, 0xbc
xor ecx, ecx
call fcn.1800042a0
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret