Function at 0x1800365b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea eax, [r8 + 0x10a]
xor ebx, ebx
mov dword [rsp + 0x80], eax
mov r10, r9
mov r13d, r8d
mov r12, rdx
mov r15, rcx
cmp r8d, eax
jae 0x180036639
mov r14, qword [rsp + 0x20]
lea rsi, [0x180000000]
mov edi, dword [rsp + 0x80]
movabs r11, 0xaaaaaaaaaaaaaaab
nop word [rax + rax]
cmp r13d, 0xb2
ja 0x180036731
je 0x180036711
mov eax, r13d
sub eax, 1
je 0x1800366aa
sub eax, 0x26
je 0x180036653
cmp eax, 0x26
jne 0x1800368bf
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor sil, sil
cmp rbx, qword [r15 + 0x20]
je 0x18003668f
mov sil, 1
cmp r12, rbx
je 0x18003667d
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x180036671
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, r12
call fcn.180041c20
movzx eax, word [rbx + 0x20]
mov word [r12 + 0x20], ax
mov eax, dword [rbx + 0x24]
mov dword [r12 + 0x24], eax
mov rcx, qword [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rsp + 0x20], sil
lea rsi, [0x180000000]
jmp 0x1800368ad
mov rcx, qword [r15 + 0x40]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, qword [r15 + 0x18]
mov rbp, qword [r15 + 0x20]
mov rbx, rsi
cmp rsi, rbp
je 0x180036705
add rsi, 0x28
cmp rsi, rbp
je 0x180036705
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
mov rdx, rsi
mov ecx, 0xef
call fcn.18002f530
test al, al
mov rcx, rsi
cmove rcx, rbx
add rsi, 0x28
mov rbx, rcx
cmp rsi, rbp
jne 0x1800366e0
lea rsi, [0x180000000]
jmp 0x1800368ad
mov rcx, qword [r12]
mov rax, r11
dec rcx
mul rcx
shr rdx, 1
lea rax, [rdx*4 + 4]
mov qword [r10], rax
jmp 0x1800368bf
mov eax, r13d
sub eax, 0xd8
je 0x1800367b6
sub eax, 0x26
je 0x180036759
cmp eax, 0x26
jne 0x1800368bf
mov rcx, r15
call fcn.180073cf4
mov rax, r14
jmp 0x18003663e
mov rcx, qword [r12]
mov rax, r11
mul rcx
xor r8d, r8d
xor r9d, r9d
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rcx, rax
cmp dword [rsi + rcx*4 + 0xbc040], r8d
jle 0x1800368bf
mov rax, qword [r10]
inc r8d
sub rax, r9
inc r9
mov byte [rax + r14 - 1], 0x3d
mov rax, r11
mov rcx, qword [r12]
mul rcx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rcx, rax
cmp r8d, dword [rsi + rcx*4 + 0xbc040]
jl 0x180036781
jmp 0x1800368bf
mov rcx, qword [r10]
call fcn.180073cfc
mov r14, rax
test rax, rax
je 0x1800368d6
xor edx, edx
xor r8d, r8d
xor r9d, r9d
cmp qword [r12], rdx
jbe 0x1800368ad
nop dword [rax]
mov ecx, 7
cmp ecx, 7
je 0x18003683c
cmp ecx, 0x4ec
je 0x180036834
cmp ecx, 0x9d1
je 0x18003682c
cmp ecx, 0xeb6
je 0x180036812
cmp ecx, 0x139b
jne 0x18003688e
mov eax, edi
jmp 0x180036818
mov eax, edi
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rsi + 0xbc000]
mov byte [r9 + r14], al
inc r9
jmp 0x18003688e
mov eax, edi
shr rax, 0xc
jmp 0x180036818
mov eax, edi
shr rax, 0x12
jmp 0x180036818
mov r10, qword [r12]
movsxd rax, edx
cmp rax, r10
jae 0x180036854
movzx edi, byte [r8 + r15]
inc edx
inc r8
jmp 0x180036856
xor edi, edi
movsxd rax, edx
cmp rax, r10
jae 0x18003686a
movzx r11d, byte [r8 + r15]
inc edx
inc r8
jmp 0x18003686d
xor r11d, r11d
movsxd rax, edx
cmp rax, r10
jae 0x180036881
movzx eax, byte [r8 + r15]
inc edx
inc r8
jmp 0x180036883
xor eax, eax
shl edi, 8
add edi, r11d
shl edi, 8
add edi, eax
add ecx, 0x4e5
cmp ecx, 0x1879
jbe 0x1800367e5
movsxd rax, edx
cmp rax, qword [r12]
jb 0x1800367e0
mov r10, qword [rsp + 0x88]
movabs r11, 0xaaaaaaaaaaaaaaab
add r13d, 0x26
cmp r13d, dword [rsp + 0x80]
jb 0x180036610
jmp 0x180036639
jmp 0x18003663e