Function at 0x406160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469685
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x480040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 1
call fcn.0041fc50
mov edi, eax
xorps xmm0, xmm0
test edi, edi
jne 0x406259
push 4
movups xmmword [esi], xmm0
push str.null
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00409180
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4061f6
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a3
push ecx
push edx
call fcn.0041eb1b
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40623c
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406232
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a3
push ecx
push edx
call fcn.0041eb1b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ec12
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
movups xmmword [ebp - 0x28], xmm0
cmovae eax, dword [ebp + 0x20]
push eax
push 0x2712
movups xmmword [ebp - 0x40], xmm0
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00424100
push 1
push 0x51
push edi
call fcn.00424100
add esp, 0x18
mov dword [ebp - 0x50], 0x91e030e
mov dword [ebp - 0x4c], 0x42031e1c
xor ecx, ecx
mov dword [ebp - 0x48], 0x1071a
mov byte [ebp - 0x44], 1
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, 0xb
jb 0x4062c4
lea eax, [ebp - 0x50]
mov byte [ebp - 0x44], 0
push eax
push 0x27c1
push edi
call fcn.00424100
push 1
push 0x40
push edi
call fcn.00424100
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x271f
push edi
call fcn.00424100
push 0x4047b0
push 0x4e2b
push edi
call fcn.00424100
lea eax, [ebp - 0x28]
push eax
push 0x2711
push edi
call fcn.00424100
push 0x404810
push 0x4e6f
push edi
call fcn.00424100
add esp, 0x48
lea eax, [ebp - 0x40]
push eax
push 0x272d
push edi
call fcn.00424100
push edi
call fcn.0041fc90
add esp, 0x10
test eax, eax
je 0x406369
push 0x10
push 0
push eax
call fcn.004206f0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov eax, 0xf
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x28]
mov byte [ebp - 0x28], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x4063d8
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4063cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a3
push ecx
push edx
call fcn.0041eb1b
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x40641d
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x406413
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a3
push ecx
push edx
call fcn.0041eb1b
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x40645f
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406455
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064a3
push ecx
push edx
call fcn.0041eb1b
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40623c
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406232
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406232
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3