Function at 0x180012b40
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 [0x1801561e0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [0x1801848b8]
mov r13, qword [0x1801848c0]
cmp rdi, r13
je 0x180013698
xor r14d, r14d
movss xmm15, dword [0x1801385e0]
movss xmm10, dword [0x180137b54]
movss xmm11, dword [0x180137b1c]
movss xmm14, dword [0x180137c64]
movss xmm9, dword [0x180137bb0]
movss xmm13, dword [0x180137b90]
movss xmm12, dword [0x180137c44]
nop
cmp byte [0x1801807f1], 0
jne 0x180012c23
cmp byte [rdi + 0x74], 0
jne 0x180013688
movss xmm1, dword [0x180180814]
cvtps2pd xmm1, xmm1
movsd xmm0, qword [rdi + 0x18]
comisd xmm0, xmm1
jae 0x180013688
cmp byte [0x1801807f9], 0
je 0x180012c9d
movaps xmm0, xmmword [0x180180550]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012740
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xe0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xe0]
mov rcx, rax
call fcn.180011730
cmp byte [0x1801807fd], 0
je 0x180012d75
movaps xmm0, xmmword [0x180180530]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012740
movss xmm3, dword [rdi + 0x80]
mulss xmm3, xmm11
addss xmm3, dword [rdi + 0x7c]
movss xmm2, dword [0x18018487c]
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 [0x180184880]
unpcklps xmm0, xmm2
movsd qword [rbp + 0x100], xmm0
mov rax, qword [0x180184730]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180066950
mov r10, rax
lea rcx, [rbp + 0xc0]
call fcn.180063930
mov r9d, eax
movss dword [rsp + 0x20], xmm10
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0xe0]
mov rcx, r10
call fcn.180085a20
cmp byte [0x1801807f8], 0
je 0x180012e8b
movaps xmm0, xmmword [0x180180550]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012740
movss xmm0, dword [rdi + 0x80]
divss xmm0, dword [0x180137c48]
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 [0x180184730]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180066950
mov rbx, rax
lea rcx, [rbp + 0xc0]
call fcn.180063930
mov esi, eax
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
test eax, 0xff000000
je 0x180012e8b
comiss xmm11, xmm8
ja 0x180012e8b
subss xmm8, xmm11
mov dword [rsp + 0x28], 0x63
movss xmm0, dword [0x180137c2c]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
movaps xmm2, xmm8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180085090
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.1800836e0
mov dword [rbx + 0x78], r14d
cmp byte [0x1801807f2], 0
je 0x180012f88
movaps xmm0, xmmword [0x180180540]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012740
mov eax, dword [0x1801807f4]
test eax, eax
jne 0x180012f28
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movaps xmm0, xmmword [0x180138370]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.1800114e0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.1800114e0
jmp 0x180012f88
cmp eax, 1
jne 0x180012f88
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movaps xmm0, xmmword [0x180138370]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180010e60
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180010e60
cmp byte [0x180180804], 0
je 0x180012fa9
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movaps xmm1, xmm9
mov rcx, rax
call fcn.180012120
cmp byte [0x1801807fe], 0
je 0x180012fca
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
movaps xmm1, xmm9
mov rcx, rax
call fcn.180011990
cmp byte [0x180180806], 0
jne 0x180012fe9
cmp byte [0x180180805], 0
jne 0x180012fe9
cmp byte [0x1801807fc], 0
je 0x180013688
movaps xmm0, xmmword [0x180180560]
movups xmmword [rsp + 0x40], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013730
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180012740
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, [0x18012f3d3]
lea rcx, [rbp + 0x100]
call fcn.180040f40
nop
cmp byte [rdi + 0x73], 0
je 0x180013075
movss xmm0, dword [0x1801804f0]
movss xmm1, dword [0x1801804f4]
movss xmm2, dword [0x1801804f8]
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 [0x180137b64]
mov r15, qword [rbp + 0x118]
mov rsi, qword [rbp + 0x110]
mov r12, qword [rbp + 0x100]
movzx eax, byte [0x180180805]
test al, al
je 0x1800132c7
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 0x18001310b
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001318a
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001315f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180013721
mov rcx, rax
call fcn.180113264
mov rcx, rax
test rax, rax
je 0x180013700
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18001316d
test rcx, rcx
je 0x18001316b
call fcn.180113264
jmp 0x18001316d
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 0x180013236
mov dword [rsp + 0x34], 0xffebf4
mov byte [rsp + 0x38], 1
xor r14d, r14d
mov ecx, r14d
nop
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x34], al
inc rcx
cmp rcx, 3
jb 0x1800131b0
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.180040f40
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.18003f1c0
nop
lea rcx, [rbp + 0xe0]
call fcn.180040e40
jmp 0x180013257
lea rdx, [rdi + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180013248
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003f1c0
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.180063930
mov ebx, eax
movss xmm6, dword [0x180180810]
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.18003f330
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1800111b0
nop
lea rcx, [rbp + 0xc0]
call fcn.180040e40
movzx eax, byte [0x180180805]
cmp byte [0x1801807fc], 0
je 0x180013452
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 0x180013319
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001339f
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001336d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180013715
mov rcx, rax
call fcn.180113264
mov rcx, rax
test rax, rax
je 0x180013707
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18001337b
test rcx, rcx
je 0x180013379
call fcn.180113264
jmp 0x18001337b
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 [0x180180805]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x180180806], 0
je 0x1800133b8
test al, al
jne 0x1800133bc
jmp 0x1800133c0
test al, al
je 0x1800133c0
movaps xmm7, xmm12
lea rdx, [rdi + 0x50]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1800133d2
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003f1c0
lea rcx, [rsp + 0x40]
call fcn.180063930
mov ebx, eax
movss xmm6, dword [0x180180810]
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.18003f330
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1800111b0
nop
lea rcx, [rbp + 0xc0]
call fcn.180040e40
movzx eax, byte [0x180180805]
cmp byte [0x180180806], 0
je 0x180013679
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 0x1800134a6
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001352d
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1800134fa
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18001371b
mov rcx, rax
call fcn.180113264
mov rcx, rax
test rax, rax
je 0x18001370e
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180013509
test rcx, rcx
je 0x180013506
call fcn.180113264
jmp 0x180013509
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 [0x180180805]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801807fc], 0
je 0x18001354a
test al, al
je 0x18001354e
movaps xmm7, xmm14
jmp 0x180013552
test al, al
je 0x180013552
movaps xmm7, xmm12
mov dword [rsp + 0x30], 0x100d69a
xor r14d, r14d
mov ecx, r14d
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 2
jb 0x180013560
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 0x180013591
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003f1c0
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.18003f1c0
nop
lea rcx, [rbp - 0x70]
call fcn.180040e40
nop
lea rcx, [rsp + 0x70]
call fcn.180040e40
lea rcx, [rsp + 0x40]
call fcn.180063930
mov ebx, eax
movss xmm6, dword [0x180180810]
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.18003f330
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1800111b0
nop
lea rcx, [rbp + 0xc0]
call fcn.180040e40
jmp 0x18001367c
xor r14d, r14d
lea rcx, [rbp + 0x100]
call fcn.180040e40
add rdi, 0x110
cmp rdi, r13
jne 0x180012c10
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180112f90
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