Function at 0x180012930
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 [0x1801847f8]
mov r13, qword [0x180184800]
cmp rdi, r13
je 0x180013488
xor r14d, r14d
movss xmm15, dword [0x1801385b0]
movss xmm10, dword [0x180137b14]
movss xmm11, dword [0x180137adc]
movss xmm14, dword [0x180137c1c]
movss xmm9, dword [0x180137b70]
movss xmm13, dword [0x180137b50]
movss xmm12, dword [0x180137bfc]
nop
cmp byte [0x1801807e1], 0
jne 0x180012a13
cmp byte [rdi + 0x74], 0
jne 0x180013478
movss xmm1, dword [0x180180804]
cvtps2pd xmm1, xmm1
movsd xmm0, qword [rdi + 0x18]
comisd xmm0, xmm1
jae 0x180013478
cmp byte [0x1801807e9], 0
je 0x180012a8d
movaps xmm0, xmmword [0x180180570]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012530
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xe0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xe0]
mov rcx, rax
call fcn.180011520
cmp byte [0x1801807ed], 0
je 0x180012b65
movaps xmm0, xmmword [0x180180550]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012530
movss xmm3, dword [rdi + 0x80]
mulss xmm3, xmm11
addss xmm3, dword [rdi + 0x7c]
movss xmm2, dword [0x1801847bc]
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 [0x1801847c0]
unpcklps xmm0, xmm2
movsd qword [rbp + 0x100], xmm0
mov rax, qword [0x180184690]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180066330
mov r10, rax
lea rcx, [rbp + 0xc0]
call fcn.180063310
mov r9d, eax
movss dword [rsp + 0x20], xmm10
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0xe0]
mov rcx, r10
call fcn.180085400
cmp byte [0x1801807e8], 0
je 0x180012c7b
movaps xmm0, xmmword [0x180180570]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012530
movss xmm0, dword [rdi + 0x80]
divss xmm0, dword [0x180137c00]
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 [0x180184690]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180066330
mov rbx, rax
lea rcx, [rbp + 0xc0]
call fcn.180063310
mov esi, eax
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
test eax, 0xff000000
je 0x180012c7b
comiss xmm11, xmm8
ja 0x180012c7b
subss xmm8, xmm11
mov dword [rsp + 0x28], 0x63
movss xmm0, dword [0x180137be4]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
movaps xmm2, xmm8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180084a70
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.1800830c0
mov dword [rbx + 0x78], r14d
cmp byte [0x1801807e2], 0
je 0x180012d78
movaps xmm0, xmmword [0x180180560]
movups xmmword [rbp + 0x100], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.180012530
mov eax, dword [0x1801807e4]
test eax, eax
jne 0x180012d18
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movaps xmm0, xmmword [0x180138340]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.1800112d0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.1800112d0
jmp 0x180012d78
cmp eax, 1
jne 0x180012d78
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movaps xmm0, xmmword [0x180138340]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm9
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180010c50
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movups xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0xc0], xmm0
movaps xmm2, xmm10
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.180010c50
cmp byte [0x1801807f4], 0
je 0x180012d99
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movaps xmm1, xmm9
mov rcx, rax
call fcn.180011f10
cmp byte [0x1801807ee], 0
je 0x180012dba
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
movaps xmm1, xmm9
mov rcx, rax
call fcn.180011780
cmp byte [0x1801807f6], 0
jne 0x180012dd9
cmp byte [0x1801807f5], 0
jne 0x180012dd9
cmp byte [0x1801807ec], 0
je 0x180013478
movaps xmm0, xmmword [0x180180580]
movups xmmword [rsp + 0x40], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180013520
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180012530
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, [0x18012f3b3]
lea rcx, [rbp + 0x100]
call fcn.180040b10
nop
cmp byte [rdi + 0x73], 0
je 0x180012e65
movss xmm0, dword [0x180180510]
movss xmm1, dword [0x180180514]
movss xmm2, dword [0x180180518]
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 [0x180137b24]
mov r15, qword [rbp + 0x118]
mov rsi, qword [rbp + 0x110]
mov r12, qword [rbp + 0x100]
movzx eax, byte [0x1801807f5]
test al, al
je 0x1800130b7
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 0x180012efb
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x180012f7a
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180012f4f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180013511
mov rcx, rax
call fcn.180112c44
mov rcx, rax
test rax, rax
je 0x1800134f0
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180012f5d
test rcx, rcx
je 0x180012f5b
call fcn.180112c44
jmp 0x180012f5d
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 0x180013026
mov dword [rsp + 0x34], 0xd1c1de
mov byte [rsp + 0x38], 1
xor r14d, r14d
mov ecx, r14d
nop
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x34], al
inc rcx
cmp rcx, 3
jb 0x180012fa0
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.180040b10
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.18003ed90
nop
lea rcx, [rbp + 0xe0]
call fcn.180040a10
jmp 0x180013047
lea rdx, [rdi + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180013038
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003ed90
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.180063310
mov ebx, eax
movss xmm6, dword [0x180180800]
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.18003ef00
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180010fa0
nop
lea rcx, [rbp + 0xc0]
call fcn.180040a10
movzx eax, byte [0x1801807f5]
cmp byte [0x1801807ec], 0
je 0x180013242
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 0x180013109
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001318f
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18001315d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180013505
mov rcx, rax
call fcn.180112c44
mov rcx, rax
test rax, rax
je 0x1800134f7
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18001316b
test rcx, rcx
je 0x180013169
call fcn.180112c44
jmp 0x18001316b
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 [0x1801807f5]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801807f6], 0
je 0x1800131a8
test al, al
jne 0x1800131ac
jmp 0x1800131b0
test al, al
je 0x1800131b0
movaps xmm7, xmm12
lea rdx, [rdi + 0x50]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1800131c2
mov rdx, qword [rdx]
lea rcx, [rbp + 0xc0]
call fcn.18003ed90
lea rcx, [rsp + 0x40]
call fcn.180063310
mov ebx, eax
movss xmm6, dword [0x180180800]
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.18003ef00
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180010fa0
nop
lea rcx, [rbp + 0xc0]
call fcn.180040a10
movzx eax, byte [0x1801807f5]
cmp byte [0x1801807f6], 0
je 0x180013469
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 0x180013296
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
jmp 0x18001331d
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1800132ea
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18001350b
mov rcx, rax
call fcn.180112c44
mov rcx, rax
test rax, rax
je 0x1800134fe
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800132f9
test rcx, rcx
je 0x1800132f6
call fcn.180112c44
jmp 0x1800132f9
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 [0x1801807f5]
mov qword [rbp + 0xd0], rsi
xorps xmm7, xmm7
cmp byte [0x1801807ec], 0
je 0x18001333a
test al, al
je 0x18001333e
movaps xmm7, xmm14
jmp 0x180013342
test al, al
je 0x180013342
movaps xmm7, xmm12
mov dword [rsp + 0x30], 0x100fcb0
xor r14d, r14d
mov ecx, r14d
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 2
jb 0x180013350
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 0x180013381
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003ed90
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.18003ed90
nop
lea rcx, [rbp - 0x70]
call fcn.180040a10
nop
lea rcx, [rsp + 0x70]
call fcn.180040a10
lea rcx, [rsp + 0x40]
call fcn.180063310
mov ebx, eax
movss xmm6, dword [0x180180800]
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.18003ef00
mov r9d, ebx
movaps xmm2, xmm6
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.180010fa0
nop
lea rcx, [rbp + 0xc0]
call fcn.180040a10
jmp 0x18001346c
xor r14d, r14d
lea rcx, [rbp + 0x100]
call fcn.180040a10
add rdi, 0x110
cmp rdi, r13
jne 0x180012a00
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180112970
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