Function at 0x409140
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48587b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x4a1400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 1
call fcn.0042bf90
mov esi, eax
test esi, esi
jne 0x409264
movaps xmm1, xmmword [0x49a0b0]
mov dword [ebp - 0x50], 0xe6e5fde9
movd xmm0, dword [ebp - 0x50]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4c]
xorps xmm1, xmm0
andps xmm1, xmmword [0x499e00]
push ecx
push eax
packuswb xmm1, xmm1
lea eax, [ebp - 0x50]
packuswb xmm1, xmm1
mov ecx, edi
push eax
movd dword [ebp - 0x50], xmm1
call fcn.00411d30
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x40921a
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409210
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40925e
push ecx
push edx
call fcn.00483cf3
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0xf
jbe 0x409702
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4096f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4096f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea eax, [ebx + 0x20]
cmp dword [ebx + 0x34], 0xf
cmova eax, dword [ebx + 0x20]
push eax
push 0x2712
push esi
call fcn.0042fff0
add esp, 0xc
push 1
push 0x51
push esi
call fcn.0042fff0
add esp, 0xc
push str.skyproject.cc
push 0x27c1
push esi
call fcn.0042fff0
add esp, 0xc
push str.TH3KEN
push 0x2722
push esi
call fcn.0042fff0
add esp, 0xc
push 1
push 0x40
push esi
call fcn.0042fff0
add esp, 0xc
push 1
push 0xac
push esi
call fcn.0042fff0
add esp, 0xc
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0xf
cmova eax, dword [ebx + 8]
push eax
push 0x271f
push esi
call fcn.0042fff0
add esp, 0xc
push 0x407de0
push 0x4e2b
push esi
call fcn.0042fff0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x2711
push esi
call fcn.0042fff0
add esp, 0xc
push 0x407e40
push 0x4e6f
push esi
call fcn.0042fff0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0x272d
push esi
call fcn.0042fff0
add esp, 0xc
push esi
call fcn.0042bff0
add esp, 4
test eax, eax
je 0x4093be
push eax
call fcn.0042c9e0
mov edi, eax
sub esp, 0x14
mov edx, esp
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
lea eax, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 0x50], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4093a0
sub ecx, dword [ebp - 0x50]
push ecx
push edi
mov ecx, edx
call fcn.00412900
call fcn.00409730
mov edi, dword [ebp - 0x54]
add esp, 0x18
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.0040f070
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebx + 0x20]
mov dword [ebp - 0x5c], esp
mov ecx, esp
push eax
call fcn.0040f070
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebx + 8]
mov ecx, esp
push eax
call fcn.0040f070
mov byte [ebp - 4], 3
call fcn.0040a0e0
lea eax, [ebp - 0x48]
push eax
push 0x400022
push esi
call fcn.0042bf70
add esp, 0x54
test eax, eax
jne 0x4095fc
mov edx, dword [ebp - 0x48]
xor cl, cl
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
cmp dword [edx], eax
jle 0x4095a5
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
xor esi, esi
movaps xmm2, xmmword [0x499e00]
movaps xmm0, xmmword [0x49a060]
mov dword [ebp - 0x50], esi
mov eax, dword [edx + 4]
mov esi, dword [esi + eax]
test esi, esi
je 0x409589
nop dword [eax]
nop word [eax + eax]
movd eax, xmm0
movaps xmm1, xmmword [0x49a0b0]
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0xfffaf1e1
mov word [ebp - 0x64], 0xe8
mov byte [ebp - 0x62], 1
movd xmm0, eax
mov eax, 0x10
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x74]
andps xmm1, xmm2
punpcklbw xmm0, xmm0
packuswb xmm1, xmm1
punpcklwd xmm0, xmm0
packuswb xmm1, xmm1
psrad xmm0, 0x18
movd dword [ebp - 0x78], xmm1
movaps xmm1, xmmword [0x49a0c0]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x70]
punpcklbw xmm0, xmm0
andps xmm1, xmm2
punpcklwd xmm0, xmm0
packuswb xmm1, xmm1
psrad xmm0, 0x18
packuswb xmm1, xmm1
movd dword [ebp - 0x74], xmm1
movaps xmm1, xmmword [0x49a0d0]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x6c]
punpcklbw xmm0, xmm0
andps xmm1, xmm2
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
packuswb xmm1, xmm1
xorps xmm0, xmmword [0x49a0e0]
andps xmm0, xmm2
packuswb xmm1, xmm1
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd dword [ebp - 0x70], xmm1
movd dword [ebp - 0x6c], xmm0
nop word [eax + eax]
lea ecx, [eax - 0x79]
xor byte [ebp + eax - 0x78], cl
inc eax
cmp eax, 0x15
jb 0x409530
lea eax, [ebp - 0x78]
mov byte [ebp - 0x62], 0
push eax
push dword [esi]
call edi
mov ecx, dword [ebp - 0x58]
add esp, 8
mov esi, dword [esi + 4]
test eax, eax
movaps xmm2, xmmword [0x499e00]
mov eax, 1
movaps xmm0, xmmword [0x49a060]
movzx ecx, cl
cmovne ecx, eax
mov dword [ebp - 0x58], ecx
test esi, esi
jne 0x409460
mov edx, dword [ebp - 0x48]
movaps xmm2, xmmword [0x499e00]
movaps xmm0, xmmword [0x49a060]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x50]
inc eax
add esi, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], esi
cmp eax, dword [edx]
jl 0x409445
test cl, cl
jne 0x4095f9
movaps xmm0, xmmword [0x499f90]
lea ecx, [ebp - 0x84]
sub esp, 0x18
mov dword [ebp - 0x64], 0xceccc1c1
movups xmmword [ebp - 0x84], xmm0
mov esi, esp
mov word [ebp - 0x60], pe_nt_image_headers32
movaps xmm0, xmmword [0x49a010]
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x50], esi
call fcn.0040c8a0
push ecx
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00411d30
call fcn.00409730
add esp, 0x18
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x30]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, 0xf
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
cmp ecx, eax
jbe 0x40966a
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40965d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40925e
push ecx
push edx
call fcn.00483cf3
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp eax, 0xf
jbe 0x4096af
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4096a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40925e
push ecx
push edx
call fcn.00483cf3
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x40921a
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409210
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40925e
jmp 0x409210
push ecx
push edx
call fcn.00483cf3
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004839af
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret