Function at 0x180041a90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0xe8]
sub rsp, 0x1e0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x1802269e8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x70]
call fcn.180042150
nop
mov dword [rbp - 0x30], 0x50
mov dword [rbp - 0x2c], 3
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rbp - 0x28], rax
xor ebx, ebx
mov qword [rbp - 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rax, qword [rbp + 0x70]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rbx
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_RegisterClassExA]
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae r8, qword [rbp + 0x70]
mov qword [rsp + 0x58], rbx
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0xcf0000
mov rdx, qword [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rdi, rax
movsd xmm0, qword [0x1800f0210]
movsd qword [rsp + 0x60], xmm0
movzx ecx, word [0x1800f0218]
mov word [rsp + 0x68], cx
cmp byte [0x1800f0219], bl
je 0x180041bda
mov byte [rsp + 0x60], 0x64
xor byte [rsp + 0x61], 0x36
xor byte [rsp + 0x62], 0x37
xor byte [rsp + 0x63], 0x38
xor byte [rsp + 0x64], 0x39
xor byte [rsp + 0x65], 0x3a
xor byte [rsp + 0x66], 0x3b
xor byte [rsp + 0x67], 0x3c
xor byte [rsp + 0x68], 0x3d
xor byte [rsp + 0x69], 0x3e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
test rax, rax
je 0x180041ebb
movups xmm0, xmmword [0x1800f0220]
movups xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [0x1800f0230]
movsd qword [rbp - 0x60], xmm1
mov eax, dword [0x1800f0238]
mov dword [rbp - 0x58], eax
movzx eax, word [0x1800f023c]
mov word [rbp - 0x54], ax
cmp byte [0x1800f023d], bl
je 0x180041dd0
mov r8d, ebx
cmp dword [0x180226a00], 2
jl 0x180041d87
movdqa xmm5, xmmword [0x1800bd8f0]
movdqa xmm4, xmmword [0x1800f0250]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [str.2222]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.5555555555555555]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800bd950]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800bd950]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x180041c80
cmp r8d, 0x1e
jge 0x180041dd0
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1e
jl 0x180041da0
lea rdx, [rbp - 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180041ebb
mov dword [rbp + 0x98], 0xa100
mov dword [rbp + 0x9c], 0xb000
mov dword [rsp + 0x70], 0x64
mov dword [rsp + 0x74], 0x64
mov dword [rsp + 0x78], 0x3c
mov dword [rsp + 0x7c], 1
mov qword [rbp - 0x80], 0x1c
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp + 0x20], xmm0
movsd xmm1, qword [rbp - 0x80]
movsd qword [rbp + 0x30], xmm1
mov dword [rbp + 0x38], ebx
mov qword [rbp + 0x3c], 1
mov dword [rbp + 0x44], 0x20
mov dword [rbp + 0x48], 1
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], 1
mov ebx, 2
mov dword [rbp + 0x60], ebx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x58], rcx
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx - 1]
xor ecx, ecx
call rax
test eax, eax
jns 0x180041ed9
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor bl, bl
jmp 0x18004207f
mov edx, 8
mov ecx, 0xcd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r8, rax
mov qword [0x180227948], rax
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rax + 0x70], xmm1
movups xmm0, xmmword [rdx + 0x80]
movups xmmword [rax + 0x80], xmm0
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
lea rax, [r8 + 0x90]
nop dword [rax]
nop dword [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rbx, 1
jne 0x180041f60
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
mov rcx, qword [rcx + 0x50]
mov qword [rax + 0x50], rcx
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax]
lea rax, [r8 + 0x1e8]
lea edx, [rbx + 9]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x180041ff1
call fcn.18007de00
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov bl, 1
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x1800420c0
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800420bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800420bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007e6ac
movzx eax, bl
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.18007ede0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret