Function at 0x1800303e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180067240]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov qword [rbp + 0xf], rdx
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp qword [rax + 0x18], 0xf
jbe 0x180030423
mov rax, qword [rax]
mov rcx, rax
call fcn.18002ee20
movss xmm1, dword [0x180053fa4]
xorps xmm0, xmm0
call fcn.180015560
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x30]
cmp eax, 3
jne 0x18003070f
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, rax
mov ecx, dword [0x180058d58]
mov dword [rbp - 0x29], ecx
movzx edx, word [0x180058d5c]
mov word [rbp - 0x25], dx
movzx ecx, byte [0x180058d5e]
mov byte [rbp - 0x29], 0x53
xor byte [rbp - 0x28], 0x31
xor byte [rbp - 0x27], 0x32
xor byte [rbp - 0x26], 0x33
xor dl, 0x34
mov byte [rbp - 0x25], dl
xor byte [rbp - 0x24], 0x35
xor cl, 0x36
mov byte [rbp - 0x23], cl
lea rcx, [rbp - 0x29]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1800304a0
mov rdx, qword [r8 + 0x10]
movabs rcx, 0x7fffffffffffffff
sub rcx, rdx
cmp rcx, rax
jb 0x180030b2e
mov rcx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1800304d0
mov rcx, qword [r8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
movzx edx, byte [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.18002fda0
nop
mov qword [rbp - 0x29], 0
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rcx, qword [rbp + 0x17]
lea rdx, [rbp - 0x29]
call fcn.18002cb60
test al, al
je 0x18003051d
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x48]
xor ecx, ecx
call fcn.18000bf70
test al, al
je 0x1800306ca
movups xmm0, xmmword [str.cE_C]
movups xmmword [rbp - 0x11], xmm0
movzx eax, byte [0x180058d70]
mov byte [rbp - 1], al
xor r8d, r8d
cmp dword [0x1800672a8], 2
jl 0x180030677
movdqa xmm4, xmmword [0x180057d20]
movdqa xmm3, xmmword [0x180059530]
movdqa xmm5, xmmword [0x180059490]
movdqa xmm0, xmmword [0x1800594b0]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0xd]
movdqa xmm6, xmmword [0x1800594a0]
mov edx, dword [rbp - 0x29]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x180030590
cmp r8d, 0x11
jge 0x1800306c0
movsxd rax, r8d
lea r9, [rbp - 0x11]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x11
jl 0x180030690
lea rcx, [rbp - 0x11]
call fcn.180016360
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x180030ae9
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030ae3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030ae3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 1
jne 0x180030ae9
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r10, rax
mov rcx, qword [str.cESA_]
mov qword [rbp - 0x29], rcx
movdqa xmm6, xmmword [0x1800594a0]
mov edi, dword [0x1800672a8]
cmp byte [str.7cESA_], 0
je 0x180030870
cmp edi, 2
jl 0x18003082d
movdqa xmm4, xmmword [0x180059530]
movdqa xmm3, xmmword [0x180057d20]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180059490]
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x1800594b0]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm1, dword [rbp - 0x29]
xorps xmm3, xmm1
movd dword [rbp - 0x29], xmm3
movdqa xmm2, xmmword [0x180059480]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180059490]
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x25]
xorps xmm2, xmm1
movd dword [rbp - 0x25], xmm2
jmp 0x180030870
lea r9, [rbp - 0x29]
xor r8d, r8d
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180030840
lea rcx, [rbp - 0x29]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180030880
mov rdx, qword [r10 + 0x10]
movabs rcx, 0x7fffffffffffffff
sub rcx, rdx
cmp rcx, rax
jb 0x180030b28
mov rcx, r10
cmp qword [r10 + 0x18], 0xf
jbe 0x1800308b0
mov rcx, qword [r10]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
mov r8, r10
movzx edx, byte [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.18002fda0
nop
mov qword [rbp - 0x29], 0
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rcx, qword [rbp + 0x17]
lea rdx, [rbp - 0x29]
call fcn.18002cb60
test al, al
je 0x180030900
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x40]
xor ecx, ecx
call fcn.18000bf70
test al, al
je 0x180030aaa
movups xmm0, xmmword [0x180058d80]
movups xmmword [rbp - 0x11], xmm0
movsd xmm0, qword [str.__b__5fH]
movsd qword [rbp - 1], xmm0
movzx eax, byte [0x180058d98]
mov byte [rbp + 7], al
xor r8d, r8d
cmp edi, 2
jl 0x180030a57
movdqa xmm4, xmmword [0x180057d20]
movdqa xmm3, xmmword [0x180059530]
movdqa xmm5, xmmword [0x180059490]
movdqa xmm0, xmmword [0x1800594b0]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0xd]
mov edx, dword [rbp - 0x29]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x180030970
cmp r8d, 0x19
jge 0x180030aa0
movsxd rax, r8d
lea r9, [rbp - 0x11]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x19
jl 0x180030a70
lea rcx, [rbp - 0x11]
call fcn.180016360
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x180030ae9
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030ae3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030ae3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004ffe4
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x180030b02
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x180030b02
mov qword [rbx], 0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180050100
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
call fcn.180032c60
nop
call fcn.180032c60
int3