Function at 0x180018bd0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x1801491e0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [0x180177448]
mov r13, qword [0x180177450]
cmp rdi, r13
je 0x180019728
xor r14d, r14d
movss xmm15, dword [0x18012ef60]
movss xmm10, dword [0x18012c4d8]
movss xmm11, dword [0x18012c4a0]
movss xmm14, dword [0x18012c5e8]
movss xmm9, dword [0x18012c538]
movss xmm13, dword [0x18012c518]
movss xmm12, dword [0x18012c5cc]
nop
cmp byte [0x1801735c9], 0
jne 0x180018cb3
cmp byte [rdi + 0x74], 0
jne 0x180019718
movss xmm1, dword [0x1801735ec]
cvtps2pd xmm1, xmm1
movsd xmm0, qword [rdi + 0x18]
comisd xmm0, xmm1
jae 0x180019718
cmp byte [0x1801735d1], 0
je 0x180018d2d
movaps xmm0, xmmword [0x180173320]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800187d0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xe0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xe0]
mov rcx, rax
call fcn.1800177c0
cmp byte [0x1801735d5], 0
je 0x180018e05
movaps xmm0, xmmword [0x180173300]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800187d0
movss xmm3, dword [rdi + 0x80]
mulss xmm3, xmm11
addss xmm3, dword [rdi + 0x7c]
movss xmm2, dword [0x1801773cc]
subss xmm2, xmm14
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movss xmm1, dword [rdi + 0x78]
unpcklps xmm1, xmm3
movsd qword [rbp + 0xe0], xmm1
movss xmm0, dword [0x1801773d0]
unpcklps xmm0, xmm2
movsd qword [rbp + 0x100], xmm0
mov rax, qword [0x180177250]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.18005d710
mov r10, rax
lea rcx, [rbp + 0xc0]
call fcn.18005a750
mov r9d, eax
movss dword [rsp + 0x20], xmm10
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0xe0]
mov rcx, r10
call fcn.18007c7f0
cmp byte [0x1801735d0], 0
je 0x180018f1b
movaps xmm0, xmmword [0x180173320]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800187d0
movss xmm0, dword [rdi + 0x80]
divss xmm0, dword [0x18012c5d0]
cvttss2si eax, xmm0
movss xmm7, dword [rdi + 0x8c]
movss xmm6, dword [rdi + 0x88]
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movd xmm8, eax
cvtdq2ps xmm8, xmm8
mov rax, qword [0x180177250]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.18005d710
mov rbx, rax
lea rcx, [rbp + 0xc0]
call fcn.18005a750
mov esi, eax
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
test eax, 0xff000000
je 0x180018f1b
comiss xmm11, xmm8
ja 0x180018f1b
subss xmm8, xmm11
mov dword [rsp + 0x28], 0x63
movss xmm0, dword [0x18012c5b4]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
movaps xmm2, xmm8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18007be60
movss dword [rsp + 0x28], xmm10
mov dword [rsp + 0x20], 1
mov r9d, esi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.18007a4b0
mov dword [rbx + 0x78], r14d
cmp byte [0x1801735ca], 0
je 0x180019018
movaps xmm0, xmmword [0x180173310]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800187d0
mov eax, dword [0x1801735cc]
test eax, eax
jne 0x180018fb8
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movaps xmm0, xmmword [0x18012e470]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180017570
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180017570
jmp 0x180019018
cmp eax, 1
jne 0x180019018
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movaps xmm0, xmmword [0x18012e470]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180016ef0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180016ef0
cmp byte [0x1801735dc], 0
je 0x180019039
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movaps xmm1, xmm9
mov rcx, rax
call fcn.1800181b0
cmp byte [0x1801735d6], 0
je 0x18001905a
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
movaps xmm1, xmm9
mov rcx, rax
call fcn.180017a20
cmp byte [0x1801735de], 0
jne 0x180019079
cmp byte [0x1801735dd], 0
jne 0x180019079
cmp byte [0x1801735d4], 0
je 0x180019718
movaps xmm0, xmmword [0x180173330]
movups xmmword [rsp + 0x40], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800197c0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800187d0
mov qword [rbp + 0x100], r14
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x100], 0
xor r8d, r8d
lea rdx, [0x180124033]
lea rcx, [rbp + 0x100]
call fcn.18003ff30
nop
cmp byte [rdi + 0x73], 0
je 0x180019105
movss xmm0, dword [0x1801732c0]
movss xmm1, dword [0x1801732c4]
movss xmm2, dword [0x1801732c8]
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
movss dword [rsp + 0x48], xmm2
movss xmm0, dword [rdi + 0x10c]
addss xmm0, dword [rdi + 0x104]
mulss xmm0, xmm11
movss xmm8, dword [rdi + 0x8c]
subss xmm8, xmm0
andps xmm8, xmm15
mulss xmm8, dword [0x18012c4e8]
mov r15, qword [rbp + 0x118]
mov rsi, qword [rbp + 0x110]
mov r12, qword [rbp + 0x100]
movzx eax, byte [0x1801735dd]
test al, al
je 0x180019357
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xd0], r14
mov qword [rbp + 0xd8], r14
lea r14, [rbp + 0x100]
cmp r15, 0x10
cmovae r14, r12
cmp rsi, 0x10
jae 0x18001919b
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001921a
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1800191ef
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800197b1
mov rcx, rax
call fcn.180107f04
mov rcx, rax
test rax, rax
je 0x180019790
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800191fd
test rcx, rcx
je 0x1800191fb
call fcn.180107f04
jmp 0x1800191fd
xor eax, eax
mov qword [rbp + 0xc0], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0xd8], rbx
mov qword [rbp + 0xd0], rsi
cmp byte [rdi + 0x74], 0
je 0x1800192c6
mov dword [rsp + 0x34], 0x77637c
mov byte [rsp + 0x38], 1
xor r14d, r14d
mov ecx, r14d
nop
lea eax, [rcx + 0x32]
xor byte [rsp + rcx + 0x34], al
inc rcx
cmp rcx, 3
jb 0x180019240
mov byte [rsp + 0x38], r14b
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xf0], r14
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov byte [rbp + 0xe0], r14b
mov r8d, 3
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0xe0]
call fcn.18003ff30
nop
lea rdx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 0x10
cmovae rdx, qword [rbp + 0xe0]
mov r8, qword [rbp + 0xf0]
lea rcx, [rbp + 0xc0]
call fcn.18003ed70
nop
lea rcx, [rbp + 0xe0]
call fcn.18003fed0
jmp 0x1800192e7
lea rdx, [rdi + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1800192d8
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003ed70
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.18005a750
mov ebx, eax
movss xmm6, dword [0x1801735e8]
movaps xmm1, xmm8
divss xmm1, xmm13
addss xmm1, dword [rdi + 0x7c]
addss xmm1, xmm9
movss xmm0, dword [rdi + 0x78]
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x5c], xmm1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.18003eeb0
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180017240
nop
lea rcx, [rbp + 0xc0]
call fcn.18003fed0
movzx eax, byte [0x1801735dd]
cmp byte [0x1801735d4], 0
je 0x1800194e2
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xd0], r14
mov qword [rbp + 0xd8], r14
lea r14, [rbp + 0x100]
cmp r15, 0x10
cmovae r14, r12
cmp rsi, 0x10
jae 0x1800193a9
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001942f
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1800193fd
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800197a5
mov rcx, rax
call fcn.180107f04
mov rcx, rax
test rax, rax
je 0x180019797
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18001940b
test rcx, rcx
je 0x180019409
call fcn.180107f04
jmp 0x18001940b
xor eax, eax
mov qword [rbp + 0xc0], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0xd8], rbx
movzx eax, byte [0x1801735dd]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801735de], 0
je 0x180019448
test al, al
jne 0x18001944c
jmp 0x180019450
test al, al
je 0x180019450
movaps xmm7, xmm12
lea rdx, [rdi + 0x50]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180019462
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003ed70
lea rcx, [rsp + 0x40]
call fcn.18005a750
mov ebx, eax
movss xmm6, dword [0x1801735e8]
movaps xmm1, xmm8
divss xmm1, xmm13
addss xmm1, dword [rdi + 0x7c]
addss xmm1, xmm7
addss xmm1, xmm9
movss xmm0, dword [rdi + 0x78]
movss dword [rsp + 0x60], xmm0
movss dword [rsp + 0x64], xmm1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.18003eeb0
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180017240
nop
lea rcx, [rbp + 0xc0]
call fcn.18003fed0
movzx eax, byte [0x1801735dd]
cmp byte [0x1801735de], 0
je 0x180019709
xor edx, edx
mov qword [rbp + 0xc0], rdx
mov qword [rbp + 0xd0], rdx
mov qword [rbp + 0xd8], rdx
lea r14, [rbp + 0x100]
cmp r15, 0x10
cmovae r14, r12
cmp rsi, 0x10
jae 0x180019536
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x1800195bd
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001958a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800197ab
mov rcx, rax
call fcn.180107f04
mov rcx, rax
test rax, rax
je 0x18001979e
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180019599
test rcx, rcx
je 0x180019596
call fcn.180107f04
jmp 0x180019599
mov rax, rdx
mov qword [rbp + 0xc0], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0xd8], rbx
movzx eax, byte [0x1801735dd]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801735d4], 0
je 0x1800195da
test al, al
je 0x1800195de
movaps xmm7, xmm14
jmp 0x1800195e2
test al, al
je 0x1800195e2
movaps xmm7, xmm12
mov dword [rsp + 0x30], 0x1005e12
xor r14d, r14d
mov ecx, r14d
lea eax, [rcx + 0x32]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 2
jb 0x1800195f0
mov byte [rsp + 0x33], r14b
cvttsd2si edx, qword [rdi + 0x18]
lea rcx, [rsp + 0x70]
call fcn.180014090
nop
lea rcx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x180019621
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003ed70
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp - 0x70]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0xc0]
call fcn.18003ed70
nop
lea rcx, [rbp - 0x70]
call fcn.18003fed0
nop
lea rcx, [rsp + 0x70]
call fcn.18003fed0
lea rcx, [rsp + 0x40]
call fcn.18005a750
mov ebx, eax
movss xmm6, dword [0x1801735e8]
divss xmm8, xmm13
addss xmm8, dword [rdi + 0x7c]
addss xmm8, xmm7
addss xmm8, xmm9
movss xmm0, dword [rdi + 0x78]
movss dword [rsp + 0x68], xmm0
movss dword [rsp + 0x6c], xmm8
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.18003eeb0
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.180017240
nop
lea rcx, [rbp + 0xc0]
call fcn.18003fed0
jmp 0x18001970c
xor r14d, r14d
lea rcx, [rbp + 0x100]
call fcn.18003fed0
add rdi, 0x110
cmp rdi, r13
jne 0x180018ca0
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180107c30
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180013f80
int3
call fcn.180013f80
int3
call fcn.180013f80
int3