Function at 0x140041660
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140159680]
xor rax, rsp
mov qword [rbp + 0x1c8], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
lea r15, [rbp + 0x208]
movabs r12, 0xff00ff00ff00ff00
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r15
mov rsi, qword [r15]
xor rsi, r12
mov qword [rbp - 0x70], rsi
xor r14d, r14d
mov qword [r15], r14
mov qword [rbp - 0x3c], r14
mov qword [rbp - 0x28], 2
mov qword [rbp - 0x10], 2
mov qword [rbp - 0x50], r14
mov dword [rbp - 0x40], 0x1c
mov dword [rbp - 0x48], 0x3c
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x2c], 0x20
mov rax, qword [0x140159e90]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x34], 1
mov qword [rbp - 0x18], 1
mov dword [rbp + 0x1c0], 0xb000
mov dword [rbp + 0x1c4], 0xa000
lea rax, [0x140159ea0]
mov qword [rsp + 0x58], rax
lea rax, [rbp]
mov qword [rsp + 0x50], rax
lea rax, [0x140159e98]
mov qword [rsp + 0x48], rax
lea rax, [0x140159ea8]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call sub.d3d11.dll_D3D11CreateDeviceAndSwapChain
mov rcx, qword [0x140159ea8]
mov rax, qword [rcx]
lea r9, [rbp - 0x58]
lea r8, [0x1400ad2a0]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x140159e98]
mov rax, qword [rcx]
lea r9, [0x140159eb0]
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], 0x10
mov edx, 0x37c8
mov r9d, 8
mov r8d, 0x42c
lea rcx, str.1.89.6
call fcn.140008070
xor ecx, ecx
call fcn.140007ce0
call fcn.14000a910
mov rdi, rax
or dword [rax], 3
lea rcx, [rbp + 0x10]
call fcn.14001c760
lea rcx, [rbp + 0x130]
call fcn.14001c760
mov byte [rbp + 0x13c], r14b
mov byte [rbp + 0x58], 1
mov byte [rbp + 0x30], 1
mov dword [rbp + 0x28], 2
mov dword [rbp + 0x2c], 2
mov rcx, qword [0x140159e90]
call fcn.14002d1b0
mov rdx, qword [0x140159ea0]
mov rcx, qword [0x140159e98]
call fcn.14002c1f0
lea rcx, [rbp + 0xa0]
call fcn.14001c760
mov dword [rbp + 0xb8], 1
mov dword [rbp + 0xbc], 1
mov byte [rbp + 0xc0], 1
movups xmm0, xmmword [str.v_fkoPT_SJMc]
movups xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [0x1400ad2d8]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [0x1400ad2e0]
mov dword [rbp - 0x78], eax
movzx eax, byte [0x1400ad2e4]
mov byte [rbp - 0x74], al
mov r8d, r14d
movdqa xmm6, xmmword [0x1400adb30]
mov ebx, dword [0x1401596d8]
cmp ebx, 2
jl 0x1400419ff
movdqa xmm4, xmmword [0x14005c1b0]
movdqa xmm3, xmmword [0x1400adbe0]
movdqa xmm5, xmmword [str.9999]
movdqa xmm0, xmmword [0x1400adb40]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x74]
mov edx, dword [rsp + 0x60]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x140041910
cmp r8d, 0x1d
jge 0x140041a43
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1d
jl 0x140041a10
mov qword [rsp + 0x20], r14
xor r9d, r9d
movss xmm2, dword [0x140058358]
lea rdx, [rsp + 0x70]
mov rcx, qword [rdi + 0x50]
call fcn.14001d5e0
mov qword [0x140159f30], rax
lea rax, [0x1400ad2b0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
movss xmm3, dword [0x1400ada2c]
mov r8d, 0x1e695
lea rdx, [0x14008e8e0]
mov rcx, qword [rdi + 0x50]
call fcn.14001d880
mov qword [0x140159f40], rax
movups xmm7, xmmword [str.v_fkVHORTJZn.6_Dv_fkVHORTJZn.6_DxSSYUuMYOR9]
movups xmmword [rsp + 0x60], xmm7
movdqa xmm0, xmm7
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140041cc2
mov r8d, r14d
cmp ebx, 2
jl 0x140041c85
movdqa xmm4, xmmword [0x1400adbe0]
movdqa xmm5, xmmword [str.9999]
movdqa xmm3, xmmword [0x14005c1b0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov ecx, dword [0x1400adb40]
movd xmm0, ecx
paddb xmm3, xmm0
movd eax, xmm7
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x60], xmm3
movdqa xmm2, xmmword [0x1400adad0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x64]
xorps xmm2, xmm1
movd dword [rsp + 0x64], xmm2
movdqa xmm3, xmmword [0x1400adae0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm1, dword [rsp + 0x68]
xorps xmm3, xmm1
movd dword [rsp + 0x68], xmm3
movdqa xmm2, xmmword [0x1400adaf0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x6c]
xorps xmm2, xmm1
movd dword [rsp + 0x6c], xmm2
jmp 0x140041cc2
lea r9, [rsp + 0x60]
nop word [rax + rax]
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x140041c90
mov qword [rsp + 0x20], r14
xor r9d, r9d
movss xmm2, dword [0x14005cdf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x50]
call fcn.14001d5e0
mov qword [0x140159f38], rax
movups xmm7, xmmword [0x1400ad2f8]
movups xmmword [rsp + 0x60], xmm7
movdqa xmm0, xmm7
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140041f02
mov r8d, r14d
cmp ebx, 2
jl 0x140041eca
movdqa xmm4, xmmword [0x1400adbe0]
movdqa xmm5, xmmword [str.9999]
movdqa xmm3, xmmword [0x14005c1b0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov ecx, dword [0x1400adb40]
movd xmm0, ecx
paddb xmm3, xmm0
movd eax, xmm7
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x60], xmm3
movdqa xmm2, xmmword [0x1400adad0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x64]
xorps xmm2, xmm1
movd dword [rsp + 0x64], xmm2
movdqa xmm3, xmmword [0x1400adae0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm1, dword [rsp + 0x68]
xorps xmm3, xmm1
movd dword [rsp + 0x68], xmm3
movdqa xmm2, xmmword [0x1400adaf0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x6c]
xorps xmm2, xmm1
movd dword [rsp + 0x6c], xmm2
jmp 0x140041f02
lea r9, [rsp + 0x60]
nop
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x140041ed0
mov qword [rsp + 0x20], r14
xor r9d, r9d
movss xmm2, dword [0x140058358]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x50]
call fcn.14001d5e0
mov qword [0x140159f28], rax
mov rbx, qword [rdi + 0x50]
mov rcx, rbx
call fcn.140020250
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
movss xmm3, dword [0x140058354]
mov r8d, 0xf428
lea rdx, str.OTTO
mov rcx, rbx
call fcn.14001db00
mov qword [0x140159f20], rax
lea rbx, [0x1400ad2b8]
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
movss xmm3, dword [0x1400ada28]
mov r8d, 0x1f90
lea rdx, [0x1400c5680]
mov rcx, qword [rdi + 0x50]
call fcn.14001db00
mov qword [0x140159f10], rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
movss xmm3, dword [0x1400ada30]
mov r8d, 0x1f90
lea rdx, [0x1400c5680]
mov rcx, qword [rdi + 0x50]
call fcn.14001db00
mov qword [0x140159f18], rax
mov rcx, qword [0x140159e90]
call fcn.14002d1b0
mov rdx, qword [0x140159ea0]
mov rcx, qword [0x140159e98]
call fcn.14002c1f0
mov rcx, qword [0x140159e98]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor rsi, r12
mov qword [r15], rsi
mov al, 1
mov rcx, qword [rbp + 0x1c8]
xor rcx, rsp
call fcn.1400521e0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret