Function at 0x1800128b0
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 [0x1801551e0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [0x1801837b8]
mov r13, qword [0x1801837c0]
cmp rdi, r13
je 0x180013408
xor r14d, r14d
movss xmm15, dword [0x180137670]
movss xmm10, dword [0x180136b14]
movss xmm11, dword [0x180136adc]
movss xmm14, dword [0x180136c1c]
movss xmm9, dword [0x180136b70]
movss xmm13, dword [0x180136b50]
movss xmm12, dword [0x180136bfc]
nop
cmp byte [0x18017f7d1], 0
jne 0x180012993
cmp byte [rdi + 0x74], 0
jne 0x1800133f8
movss xmm1, dword [0x18017f7f4]
cvtps2pd xmm1, xmm1
movsd xmm0, qword [rdi + 0x18]
comisd xmm0, xmm1
jae 0x1800133f8
cmp byte [0x18017f7d9], 0
je 0x180012a0d
movaps xmm0, xmmword [0x18017f570]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800124b0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xe0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xe0]
mov rcx, rax
call fcn.1800114a0
cmp byte [0x18017f7dd], 0
je 0x180012ae5
movaps xmm0, xmmword [0x18017f550]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800124b0
movss xmm3, dword [rdi + 0x80]
mulss xmm3, xmm11
addss xmm3, dword [rdi + 0x7c]
movss xmm2, dword [0x180183764]
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 [0x180183768]
unpcklps xmm0, xmm2
movsd qword [rbp + 0x100], xmm0
mov rax, qword [0x180183668]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180065d30
mov r10, rax
lea rcx, [rbp + 0xc0]
call fcn.180062d10
mov r9d, eax
movss dword [rsp + 0x20], xmm10
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0xe0]
mov rcx, r10
call fcn.180084e00
cmp byte [0x18017f7d8], 0
je 0x180012bfb
movaps xmm0, xmmword [0x18017f570]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800124b0
movss xmm0, dword [rdi + 0x80]
divss xmm0, dword [0x180136c00]
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 [0x180183668]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180065d30
mov rbx, rax
lea rcx, [rbp + 0xc0]
call fcn.180062d10
mov esi, eax
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
test eax, 0xff000000
je 0x180012bfb
comiss xmm11, xmm8
ja 0x180012bfb
subss xmm8, xmm11
mov dword [rsp + 0x28], 0x63
movss xmm0, dword [0x180136be4]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
movaps xmm2, xmm8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180084470
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.180082ac0
mov dword [rbx + 0x78], r14d
cmp byte [0x18017f7d2], 0
je 0x180012cf8
movaps xmm0, xmmword [0x18017f560]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1800124b0
mov eax, dword [0x18017f7d4]
test eax, eax
jne 0x180012c98
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movaps xmm0, xmmword [0x180137360]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180011250
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180011250
jmp 0x180012cf8
cmp eax, 1
jne 0x180012cf8
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movaps xmm0, xmmword [0x180137360]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180010bd0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180010bd0
cmp byte [0x18017f7e4], 0
je 0x180012d19
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movaps xmm1, xmm9
mov rcx, rax
call fcn.180011e90
cmp byte [0x18017f7de], 0
je 0x180012d3a
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
movaps xmm1, xmm9
mov rcx, rax
call fcn.180011700
cmp byte [0x18017f7e6], 0
jne 0x180012d59
cmp byte [0x18017f7e5], 0
jne 0x180012d59
cmp byte [0x18017f7dc], 0
je 0x1800133f8
movaps xmm0, xmmword [0x18017f580]
movups xmmword [rsp + 0x40], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1800134a0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800124b0
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, [0x18012e3b3]
lea rcx, [rbp + 0x100]
call fcn.180040510
nop
cmp byte [rdi + 0x73], 0
je 0x180012de5
movss xmm0, dword [0x18017f510]
movss xmm1, dword [0x18017f514]
movss xmm2, dword [0x18017f518]
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 [0x180136b24]
mov r15, qword [rbp + 0x118]
mov rsi, qword [rbp + 0x110]
mov r12, qword [rbp + 0x100]
movzx eax, byte [0x18017f7e5]
test al, al
je 0x180013037
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 0x180012e7b
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x180012efa
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180012ecf
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180013491
mov rcx, rax
call fcn.180112644
mov rcx, rax
test rax, rax
je 0x180013470
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180012edd
test rcx, rcx
je 0x180012edb
call fcn.180112644
jmp 0x180012edd
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 0x180012fa6
mov dword [rsp + 0x34], 0x94869b
mov byte [rsp + 0x38], 1
xor r14d, r14d
mov ecx, r14d
nop
lea eax, [rcx - 0x2b]
xor byte [rsp + rcx + 0x34], al
inc rcx
cmp rcx, 3
jb 0x180012f20
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.180040510
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.18003e790
nop
lea rcx, [rbp + 0xe0]
call fcn.180040410
jmp 0x180012fc7
lea rdx, [rdi + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180012fb8
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003e790
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.180062d10
mov ebx, eax
movss xmm6, dword [0x18017f7f0]
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.18003e900
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180010f20
nop
lea rcx, [rbp + 0xc0]
call fcn.180040410
movzx eax, byte [0x18017f7e5]
cmp byte [0x18017f7dc], 0
je 0x1800131c2
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 0x180013089
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001310f
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1800130dd
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180013485
mov rcx, rax
call fcn.180112644
mov rcx, rax
test rax, rax
je 0x180013477
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800130eb
test rcx, rcx
je 0x1800130e9
call fcn.180112644
jmp 0x1800130eb
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 [0x18017f7e5]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x18017f7e6], 0
je 0x180013128
test al, al
jne 0x18001312c
jmp 0x180013130
test al, al
je 0x180013130
movaps xmm7, xmm12
lea rdx, [rdi + 0x50]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180013142
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003e790
lea rcx, [rsp + 0x40]
call fcn.180062d10
mov ebx, eax
movss xmm6, dword [0x18017f7f0]
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.18003e900
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180010f20
nop
lea rcx, [rbp + 0xc0]
call fcn.180040410
movzx eax, byte [0x18017f7e5]
cmp byte [0x18017f7e6], 0
je 0x1800133e9
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 0x180013216
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001329d
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001326a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18001348b
mov rcx, rax
call fcn.180112644
mov rcx, rax
test rax, rax
je 0x18001347e
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180013279
test rcx, rcx
je 0x180013276
call fcn.180112644
jmp 0x180013279
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 [0x18017f7e5]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x18017f7dc], 0
je 0x1800132ba
test al, al
je 0x1800132be
movaps xmm7, xmm14
jmp 0x1800132c2
test al, al
je 0x1800132c2
movaps xmm7, xmm12
mov dword [rsp + 0x30], 0x100bbf5
xor r14d, r14d
mov ecx, r14d
lea eax, [rcx - 0x2b]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 2
jb 0x1800132d0
mov byte [rsp + 0x33], r14b
cvttsd2si edx, qword [rdi + 0x18]
lea rcx, [rsp + 0x70]
call fcn.18000eac0
nop
lea rcx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x180013301
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003e790
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.18003e790
nop
lea rcx, [rbp - 0x70]
call fcn.180040410
nop
lea rcx, [rsp + 0x70]
call fcn.180040410
lea rcx, [rsp + 0x40]
call fcn.180062d10
mov ebx, eax
movss xmm6, dword [0x18017f7f0]
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.18003e900
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.180010f20
nop
lea rcx, [rbp + 0xc0]
call fcn.180040410
jmp 0x1800133ec
xor r14d, r14d
lea rcx, [rbp + 0x100]
call fcn.180040410
add rdi, 0x110
cmp rdi, r13
jne 0x180012980
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180112370
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.18000c8c0
int3
call fcn.18000c8c0
int3
call fcn.18000c8c0
int3