Function at 0x18003e370
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x18005b6d8]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r10, r9
mov qword [rsp + 0x58], r9
mov edi, r8d
mov dword [rsp + 0x38], r8d
mov r9, rdx
mov qword [rsp + 0x60], rdx
mov r8, rcx
mov qword [rbp - 0x70], rcx
mov r15, qword [rbp + 0x368]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor r11d, r11d
mov qword [rsp + 0x78], r11
mov r14d, edi
lea edx, [rdi + 0x144]
mov dword [rsp + 0x34], edx
lea rcx, [0x180000000]
movzx eax, byte [rsp + 0x31]
cmp edi, edx
jae 0x18003e7df
mov rsi, qword [rsp + 0x60]
mov byte [rsp + 0x30], al
mov r12d, dword [rsp + 0x40]
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x31], al
mov r13d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov qword [rbp - 0x80], rbx
cmp r14d, 0x142
ja case.default.0x18003e45c
je 0x18003e78c
lea eax, [r14 - 0x2f]
cmp eax, 0xf8
ja case.default.0x18003e45c
movzx eax, byte [rcx + rax + 0x3ec00]
mov ecx, dword [rcx + rax*4 + 0x3ebd0]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov r9b, 1
mov byte [rsp + 0x30], r9b
lea rcx, [0x180000000]
jmp 0x18003e7af
mov rsi, r10
jmp case.0x18003e45c.58
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
mov dword [rsp + 0x3c], r12d
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x40]
call sub.IMM32.dll_ImmGetCompositionWindow
mov dword [rsp + 0x50], eax
jmp 0x18003e79e
mov byte [rsp + 0x32], 1
jmp case.0x18003e45c.58
mov ecx, r11d
movzx eax, byte [rsp + 0x32]
cmp dword [rsp + 0x50], 0
cmovne ecx, eax
mov byte [rsp + 0x32], cl
movsxd rax, r12d
mov byte [rax + r15], 0
cmp cl, 0
je case.0x18003e45c.58
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x40]
call sub.IMM32.dll_ImmSetCompositionWindow
jmp 0x18003e79e
xor r9d, r9d
mov r8, r10
lea rdx, [rsp + 0x68]
lea ecx, [r9 + 0x44]
call fcn.18000d2e0
test al, al
je 0x18003e7ce
mov edx, 0xffffffff
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18003e79e
mov r13d, r11d
mov qword [rsp + 0x40], r11
jmp case.0x18003e45c.58
cmp edi, 0x3d
jne 0x18003e560
mov ecx, r13d
and ecx, 0x80000003
jge 0x18003e541
dec ecx
or ecx, 0xfffffffc
inc ecx
sub ecx, 1
je 0x18003e7ce
sub ecx, 1
je 0x18003e57e
cmp ecx, 1
jne 0x18003e560
mov ebx, dword [rsp + 0x3c]
movsxd rax, ebx
mov byte [rax + r15], 0
movzx r9d, byte [rsp + 0x30]
lea rcx, [0x180000000]
test r8, r8
je 0x18003e7af
mov dword [r8], r12d
jmp 0x18003e7af
mov ebx, dword [rsp + 0x3c]
inc ebx
mov dword [rsp + 0x3c], ebx
jmp 0x18003e558
mov rcx, r10
lea rdx, [r10 + 6]
mov r8d, 2
nop word [rax + rax]
mov eax, 0x51
cmp eax, 0x51
je 0x18003e5ba
cmp eax, 0xf81
jne 0x18003e5c1
mov byte [rcx], 0xff
mov byte [rcx + 2], 0
jmp 0x18003e5c1
mov dword [rdx - 2], 0
add eax, 0xf30
cmp eax, 0x1e60
jbe 0x18003e5a5
inc rcx
add rdx, 4
sub r8, 1
jne 0x18003e5a0
jmp 0x18003e79e
mov qword [rbp - 0x80], r11
movzx eax, word [r15]
mov word [rsp + 0x48], ax
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], 0x11d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
xor ecx, ecx
call fcn.1800209c0
jmp 0x18003e79e
mov r12d, r11d
mov rbx, r11
movzx edi, byte [rsi]
test edi, edi
je 0x18003e787
inc rsi
mov eax, dword [r9]
lea edx, [rax - 1]
mov dword [r9], edx
test eax, eax
je 0x18003e79e
cmp edi, 0x3d
jne 0x18003e6a4
movzx ecx, byte [rsi]
cmp cl, dil
je 0x18003e778
mov eax, r13d
and eax, 0x80000003
jge 0x18003e657
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 1
je 0x18003e7ce
mov rax, qword [rbp + 0x360]
cmp byte [rax], 0
je 0x18003e778
test edx, edx
je 0x18003e778
nop dword [rax + rax]
inc rsi
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x18003e680
cmp byte [rsi], al
jne 0x18003e7ce
xor cl, cl
mov r9, qword [rsp + 0x60]
jmp 0x18003e778
lea rcx, [0x180000000]
movsx edx, byte [rdi + rcx + 0x48660]
mov r8d, edx
mov rax, qword [rbp + 0x360]
cmp byte [rax], 0
jne 0x18003e6ca
test dl, dl
js 0x18003e775
cmp r8d, 0xffffffff
je 0x18003e775
cmp r8d, 0xfffffffe
je 0x18003e7ce
mov ecx, r13d
and ecx, 0x80000003
jge 0x18003e6f0
dec ecx
or ecx, 0xfffffffc
inc ecx
test ecx, ecx
je 0x18003e765
sub ecx, 1
je 0x18003e752
sub ecx, 1
je 0x18003e705
cmp ecx, 1
je 0x18003e746
jmp 0x18003e76c
mov ecx, 0x30
nop word [rax + rax]
mov eax, ecx
sub eax, 0x30
je 0x18003e72f
sub eax, 1
je 0x18003e723
cmp eax, 1
je 0x18003e76c
jmp 0x18003e73f
movzx eax, dl
shl al, 6
mov byte [r15 + rbx], al
jmp 0x18003e73f
mov eax, r8d
sar eax, 2
or byte [r15 + rbx], al
inc r12d
inc rbx
inc ecx
cmp ecx, 0x33
jb 0x18003e710
or byte [r15 + rbx], dl
inc r12d
inc rbx
jmp 0x18003e76c
sar r8d, 4
or byte [r15 + rbx], r8b
inc r12d
inc rbx
shl dl, 4
jmp 0x18003e768
shl dl, 2
mov byte [r15 + rbx], dl
mov r14d, 0x80
inc r13d
movzx ecx, byte [rsi]
movzx edi, cl
test cl, cl
jne 0x18003e621
mov edx, dword [rsp + 0x34]
inc rsi
jmp case.0x18003e45c.58
lea rcx, [r10 + 0x18]
lea rdx, [rsp + 0x68]
call fcn.180003370
mov byte [rsp + 0x31], al
mov edx, dword [rsp + 0x34]
lea rcx, [0x180000000]
movzx r9d, byte [rsp + 0x30]
add r14d, 0x1b
mov r10, qword [rsp + 0x58]
xor r11d, r11d
cmp r14d, edx
jae 0x18003e7d5
mov r8, qword [rbp - 0x70]
mov r9, qword [rsp + 0x60]
jmp 0x18003e421
xor bl, bl
jmp 0x18003ea7d
mov edi, dword [rsp + 0x38]
mov r15, qword [rbp - 0x80]
jmp 0x18003e7f7
movzx r9d, byte [rsp + 0x31]
mov byte [rsp + 0x30], r9b
mov byte [rsp + 0x31], al
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
lea r13d, [rdi + 0xc]
movzx ebx, byte [rsp + 0x31]
cmp edi, r13d
jae 0x18003ea7d
lea r12d, [rdi - 0x2f]
lea rdx, [0x180017430]
mov r14, qword [rsp + 0x60]
mov esi, dword [rsp + 0x40]
nop dword [rax]
cmp r12d, 0xe3
ja case.0x18003e847.12
movzx eax, byte [rcx + r12 + 0x3ed30]
mov ecx, dword [rcx + rax*4 + 0x3ecfc]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov dword [rsp + 0x50], r11d
jmp case.0x18003e847.12
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_ColorAdjustLuma]
mov r9d, dword [rbp - 0x78]
lea r8, [rbp + 0xe0]
mov edx, dword [rsp + 0x3c]
mov rcx, r15
call sub.IMM32.dll_ImmGetGuideLineW
mov rcx, qword [rsp + 0x58]
add rcx, 0xa
mov rax, qword [rsp + 0x60]
cmp rcx, rax
je 0x18003eb61
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x18003e8a1
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.180018390
jmp 0x18003eb61
mov dword [rsp + 0x3c], 3
mov dword [rsp + 0x34], 0x32
jmp case.0x18003e847.12
mov qword [r10], rdx
mov dword [rsp + 0x48], 1
mov dword [rbp - 0x78], 0x104
jmp case.0x18003e847.12
mov rcx, qword [r10 + 0x40]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor r11d, r11d
mov ecx, r11d
movzx eax, byte [rsp + 0x30]
cmp dword [rsp + 0x40], r11d
cmovne ecx, eax
movzx r9d, cl
mov byte [rsp + 0x30], cl
jmp 0x18003eb6a
lea rax, [rsp + 0x32]
mov qword [rbp - 0x68], rax
mov ecx, 0x40
mov rax, 0xffffffffffffffff
nop word [rax + rax]
dec rcx
shr rax, 1
cmp rax, 0x7fff
ja 0x18003e920
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], rcx
lea r8, [rbp - 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.180001b30
jmp 0x18003eb61
mov edx, 0xffffffff
mov rcx, qword [r10 + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0x58]
add rdi, 0x18
lea rax, [rsp + 0x68]
cmp rdi, rax
je 0x18003e9ac
mov rcx, rdi
call fcn.180017db0
mov rax, qword [rsp + 0x68]
mov qword [rdi], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor r11d, r11d
mov qword [rsp + 0x78], r11
mov edi, dword [rsp + 0x38]
jmp 0x18003eb64
mov edi, dword [rsp + 0x38]
jmp 0x18003eb61
mov r15d, 0x115
nop dword [rax + rax]
mov eax, r15d
sub eax, 0x113
je 0x18003ea7d
sub eax, 1
je 0x18003ea45
cmp eax, 1
jne 0x18003ea47
test r9b, r9b
je 0x18003ea47
mov edi, 4
mov eax, edi
sub eax, 2
je 0x18003ea19
sub eax, 1
je 0x18003e9fc
cmp eax, 1
jne 0x18003ea36
mov dword [rbp - 0x70], r11d
mov r14, r11
jmp 0x18003ea36
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.WINMM.dll_waveInGetID]
mov esi, eax
test eax, eax
jne 0x18003ea30
xor r9b, r9b
mov byte [rsp + 0x30], r9b
jmp 0x18003ea36
test r9b, r9b
je 0x18003ea36
mov r8d, 0x104
lea rdx, [rbp - 0x30]
mov ecx, esi
call qword [sym.imp.WINMM.dll_waveInGetErrorTextA]
movzx r9d, byte [rsp + 0x30]
dec edi
cmp edi, 1
mov r11d, 0
ja 0x18003e9e2
jmp 0x18003ea47
mov bl, 1
dec r15d
cmp r15d, 0x112
mov r11d, 0
ja 0x18003e9c0
mov edi, dword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [rsp + 0x31], 0
je 0x18003eb61
mov bl, 1
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x18003eba0
mov rsi, qword [rsp + 0x70]
cmp rdi, rsi
je 0x18003eaf3
xor r14d, r14d
nop dword [rax + rax]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18003ead6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18003ead1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003eb3f
mov rcx, r8
call fcn.1800466c8
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
add rdi, 0x28
cmp rdi, rsi
jne 0x18003eaa0
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rdi
cmp rdx, 0x1000
jb 0x18003eb98
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003eb98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [r10 + 0x30]
test rax, rax
je case.0x18003e847.12
mov rcx, qword [r10 + 0x38]
call rax
jmp 0x18003eb61
call qword [sym.imp.WINMM.dll_waveInGetNumDevs]
mov dword [rsp + 0x40], eax
xor r11d, r11d
movzx r9d, byte [rsp + 0x30]
lea rdx, [0x180017430]
inc edi
mov dword [rsp + 0x38], edi
inc r12d
cmp edi, r13d
jae 0x18003ea7d
mov r10, qword [rsp + 0x58]
mov r15, qword [rbp - 0x80]
lea rcx, [0x180000000]
jmp 0x18003e820
mov rcx, rdi
call fcn.1800466c8
movzx eax, bl
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.180046be0
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret