Function at 0x180018c20
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 [0x180177458]
mov r13, qword [0x180177460]
cmp rdi, r13
je 0x180019778
xor r14d, r14d
movss xmm15, dword [0x18012cf90]
movss xmm10, dword [0x18012c4e4]
movss xmm11, dword [0x18012c4ac]
movss xmm14, dword [0x18012c5f0]
movss xmm9, dword [0x18012c540]
movss xmm13, dword [0x18012c520]
movss xmm12, dword [0x18012c5d4]
nop
cmp byte [0x1801735d9], 0
jne 0x180018d03
cmp byte [rdi + 0x74], 0
jne 0x180019768
movss xmm1, dword [0x1801735fc]
cvtps2pd xmm1, xmm1
movsd xmm0, qword [rdi + 0x18]
comisd xmm0, xmm1
jae 0x180019768
cmp byte [0x1801735e1], 0
je 0x180018d7d
movaps xmm0, xmmword [0x180173330]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180018820
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xe0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xe0]
mov rcx, rax
call fcn.180017810
cmp byte [0x1801735e5], 0
je 0x180018e55
movaps xmm0, xmmword [0x180173310]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180018820
movss xmm3, dword [rdi + 0x80]
mulss xmm3, xmm11
addss xmm3, dword [rdi + 0x7c]
movss xmm2, dword [0x1801773dc]
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 [0x1801773e0]
unpcklps xmm0, xmm2
movsd qword [rbp + 0x100], xmm0
mov rax, qword [0x180177260]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.18005d780
mov r10, rax
lea rcx, [rbp + 0xc0]
call fcn.18005a7c0
mov r9d, eax
movss dword [rsp + 0x20], xmm10
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0xe0]
mov rcx, r10
call fcn.18007c860
cmp byte [0x1801735e0], 0
je 0x180018f6b
movaps xmm0, xmmword [0x180173330]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180018820
movss xmm0, dword [rdi + 0x80]
divss xmm0, dword [0x18012c5d8]
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 [0x180177260]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.18005d780
mov rbx, rax
lea rcx, [rbp + 0xc0]
call fcn.18005a7c0
mov esi, eax
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
test eax, 0xff000000
je 0x180018f6b
comiss xmm11, xmm8
ja 0x180018f6b
subss xmm8, xmm11
mov dword [rsp + 0x28], 0x63
movss xmm0, dword [0x18012c5bc]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
movaps xmm2, xmm8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18007bed0
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.18007a520
mov dword [rbx + 0x78], r14d
cmp byte [0x1801735da], 0
je 0x180019068
movaps xmm0, xmmword [0x180173320]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180018820
mov eax, dword [0x1801735dc]
test eax, eax
jne 0x180019008
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movaps xmm0, xmmword [0x18012ccf0]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.1800175c0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.1800175c0
jmp 0x180019068
cmp eax, 1
jne 0x180019068
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movaps xmm0, xmmword [0x18012ccf0]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180016f40
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180016f40
cmp byte [0x1801735ec], 0
je 0x180019089
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movaps xmm1, xmm9
mov rcx, rax
call fcn.180018200
cmp byte [0x1801735e6], 0
je 0x1800190aa
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
movaps xmm1, xmm9
mov rcx, rax
call fcn.180017a70
cmp byte [0x1801735ee], 0
jne 0x1800190c9
cmp byte [0x1801735ed], 0
jne 0x1800190c9
cmp byte [0x1801735e4], 0
je 0x180019768
movaps xmm0, xmmword [0x180173340]
movups xmmword [rsp + 0x40], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180019810
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180018820
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.18003ffa0
nop
cmp byte [rdi + 0x73], 0
je 0x180019155
movss xmm0, dword [0x1801732d0]
movss xmm1, dword [0x1801732d4]
movss xmm2, dword [0x1801732d8]
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 [0x18012c4f4]
mov r15, qword [rbp + 0x118]
mov rsi, qword [rbp + 0x110]
mov r12, qword [rbp + 0x100]
movzx eax, byte [0x1801735ed]
test al, al
je 0x1800193a7
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 0x1800191eb
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001926a
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001923f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180019801
mov rcx, rax
call fcn.180107f74
mov rcx, rax
test rax, rax
je 0x1800197e0
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18001924d
test rcx, rcx
je 0x18001924b
call fcn.180107f74
jmp 0x18001924d
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 0x180019316
mov dword [rsp + 0x34], 0x889a87
mov byte [rsp + 0x38], 1
xor r14d, r14d
mov ecx, r14d
nop
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x34], al
inc rcx
cmp rcx, 3
jb 0x180019290
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.18003ffa0
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.18003ede0
nop
lea rcx, [rbp + 0xe0]
call fcn.18003ff40
jmp 0x180019337
lea rdx, [rdi + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180019328
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003ede0
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.18005a7c0
mov ebx, eax
movss xmm6, dword [0x1801735f8]
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.18003ef20
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180017290
nop
lea rcx, [rbp + 0xc0]
call fcn.18003ff40
movzx eax, byte [0x1801735ed]
cmp byte [0x1801735e4], 0
je 0x180019532
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 0x1800193f9
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001947f
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001944d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800197f5
mov rcx, rax
call fcn.180107f74
mov rcx, rax
test rax, rax
je 0x1800197e7
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18001945b
test rcx, rcx
je 0x180019459
call fcn.180107f74
jmp 0x18001945b
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 [0x1801735ed]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801735ee], 0
je 0x180019498
test al, al
jne 0x18001949c
jmp 0x1800194a0
test al, al
je 0x1800194a0
movaps xmm7, xmm12
lea rdx, [rdi + 0x50]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1800194b2
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003ede0
lea rcx, [rsp + 0x40]
call fcn.18005a7c0
mov ebx, eax
movss xmm6, dword [0x1801735f8]
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.18003ef20
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180017290
nop
lea rcx, [rbp + 0xc0]
call fcn.18003ff40
movzx eax, byte [0x1801735ed]
cmp byte [0x1801735ee], 0
je 0x180019759
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 0x180019586
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001960d
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1800195da
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800197fb
mov rcx, rax
call fcn.180107f74
mov rcx, rax
test rax, rax
je 0x1800197ee
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800195e9
test rcx, rcx
je 0x1800195e6
call fcn.180107f74
jmp 0x1800195e9
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 [0x1801735ed]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801735e4], 0
je 0x18001962a
test al, al
je 0x18001962e
movaps xmm7, xmm14
jmp 0x180019632
test al, al
je 0x180019632
movaps xmm7, xmm12
mov dword [rsp + 0x30], 0x100a7e9
xor r14d, r14d
mov ecx, r14d
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 2
jb 0x180019640
mov byte [rsp + 0x33], r14b
cvttsd2si edx, qword [rdi + 0x18]
lea rcx, [rsp + 0x70]
call fcn.1800140e0
nop
lea rcx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x180019671
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003ede0
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.18003ede0
nop
lea rcx, [rbp - 0x70]
call fcn.18003ff40
nop
lea rcx, [rsp + 0x70]
call fcn.18003ff40
lea rcx, [rsp + 0x40]
call fcn.18005a7c0
mov ebx, eax
movss xmm6, dword [0x1801735f8]
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.18003ef20
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.180017290
nop
lea rcx, [rbp + 0xc0]
call fcn.18003ff40
jmp 0x18001975c
xor r14d, r14d
lea rcx, [rbp + 0x100]
call fcn.18003ff40
add rdi, 0x110
cmp rdi, r13
jne 0x180018cf0
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180107ca0
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.180013fd0
int3
call fcn.180013fd0
int3
call fcn.180013fd0
int3