Function at 0x406790
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 0x49ce7b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x4bf100]
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 - 0x14c], edi
mov dword [ebp - 0x158], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x14c], edi
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x30], 7
movq qword [ebp - 0x4c], xmm0
mov word [ebp - 0x44], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0x5c
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00473b60
lea eax, [ebp - 0x148]
mov dword [ebp - 0x150], str.uOo
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov edx, 0xd1bd0ac0
xor esi, esi
mov ecx, edx
shl ecx, 0xd
xor ecx, edx
mov eax, ecx
shr eax, 0x11
xor ecx, eax
mov eax, ecx
shl eax, 5
xor ecx, eax
mov eax, dword [ebp - 0x150]
mov edx, ecx
shl ecx, 4
shr edx, 0x1c
or edx, ecx
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x14c]
xor ecx, edx
mov dword [eax + esi], ecx
add esi, 4
cmp esi, 0x5c
jb 0x406871
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
push eax
sub esp, 8
lea edx, [ebp - 0x148]
call fcn.00411980
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, 0x5c
lea eax, [ebp - 0x148]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4068d6
test edx, edx
jne 0x406db2
xorps xmm0, xmm0
mov word [ebp - 0xc8], dx
movups xmmword [ebp - 0xe8], xmm0
lea eax, [ebp - 0xe8]
mov edx, 0x2183680a
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0x14c], 0x4b4328
xor esi, esi
mov dword [ebp - 0x150], eax
nop
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x150]
xor ecx, edx
mov dword [eax + esi], ecx
add esi, 4
imul eax, edx, 0x41c64e6d
add eax, 0x3039
mov edx, eax
shr eax, 3
shl edx, 0x1d
or edx, eax
cmp esi, 0x20
jb 0x406920
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x14c], 0x4b4328
mov dword [ebp - 0x160], eax
mov esi, 0x20
nop dword [eax]
mov eax, dword [ebp - 0x14c]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x160]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0x22
jb 0x406970
mov byte [ebp - 4], 3
lea edx, [ebp - 0xe8]
mov eax, 1
mov dword [ebp - 0x168], 4
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x160], 4
push eax
lea eax, [ebp - 0x168]
push eax
push ecx
mov ecx, dword [ebp - 0x15c]
call fcn.00411b40
test eax, eax
jne 0x406c5d
cmp dword [ebp - 0x168], 4
jne 0x406c5d
cmp dword [ebp - 0x160], 4
jne 0x406c5d
mov dword [ebp - 0x9c], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x14c], 0x4b4378
mov edx, 0xb6c6539f
mov dword [ebp - 0x164], eax
xor esi, esi
nop dword [eax]
mov eax, edx
shl eax, 0xd
xor edx, eax
mov eax, edx
shr eax, 0x11
xor edx, eax
mov eax, edx
shl eax, 5
xor edx, eax
mov eax, dword [ebp - 0x14c]
neg edx
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x164]
xor ecx, edx
mov dword [eax + esi], ecx
add esi, 4
cmp esi, 0x14
jb 0x406a30
mov dword [ebp - 4], 4
lea edx, [ebp - 0xac]
mov eax, 3
mov dword [ebp - 0x16c], 4
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x164], 4
push eax
lea eax, [ebp - 0x16c]
push eax
push ecx
mov ecx, dword [ebp - 0x15c]
call fcn.00411b40
test eax, eax
jne 0x406c54
cmp dword [ebp - 0x16c], 4
jne 0x406c54
cmp dword [ebp - 0x164], 4
jne 0x406c54
mov word [ebp - 0x88], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14c], 0x4b434c
mov dword [ebp - 0x150], eax
mov edx, 0xf3309df
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x150]
xor ecx, edx
mov dword [eax + esi], ecx
add esi, 4
imul eax, edx, 0x41c64e6d
add eax, 0x3039
mov edx, eax
shr eax, 4
shl edx, 0x1c
or edx, eax
cmp esi, 0x10
jb 0x406b10
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14c], 0x4b434c
mov dword [ebp - 0x150], eax
mov esi, 0x10
nop dword [eax]
mov eax, dword [ebp - 0x14c]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x150]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0x12
jb 0x406b60
mov dword [ebp - 4], 5
lea edx, [ebp - 0x98]
mov ecx, dword [ebp - 0x15c]
mov eax, 7
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405ab0
add esp, 4
test al, al
je 0x406c67
xorps xmm0, xmm0
lea eax, [ebp - 0xc4]
movups xmmword [ebp - 0xc4], xmm0
mov edx, 0xf2232f97
xor esi, esi
movq qword [ebp - 0xb4], xmm0
mov dword [ebp - 0x14c], 0x4b4310
mov dword [ebp - 0x150], eax
mov eax, edx
shl eax, 0xd
xor edx, eax
mov eax, edx
shr eax, 0x11
xor edx, eax
mov eax, edx
shl eax, 5
xor edx, eax
mov eax, dword [ebp - 0x14c]
not edx
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x150]
xor ecx, edx
mov dword [eax + esi], ecx
add esi, 4
cmp esi, 0x18
jb 0x406be4
mov dword [ebp - 4], 6
lea edx, [ebp - 0xc4]
mov ecx, dword [ebp - 0x15c]
mov eax, 0xf
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00405ab0
add esp, 4
test al, al
je 0x406c67
mov byte [ebp - 0x151], 1
jmp 0x406c6e
mov dword [ebp - 0x80], 0
jmp 0x406c67
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x151], 0
mov eax, dword [ebp - 0x150]
test al, 8
je 0x406c9b
and eax, 0xfffffff7
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x158], eax
mov edx, 0x18
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x406c90
test al, 4
je 0x406cbe
and eax, 0xfffffffb
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x158], eax
mov edx, 0x12
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x406cb3
test al, 2
je 0x406ce1
and eax, 0xfffffffd
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x158], eax
mov edx, 0x14
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x406cd6
mov dword [ebp - 4], 1
test al, 1
je 0x406d0b
and eax, 0xfffffffe
mov ecx, 0x22
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0xe8]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406d00
cmp byte [ebp - 0x151], 0
je 0x406da7
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
cmp ecx, 7
jbe 0x406d61
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406d57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406e52
push ecx
push edx
call fcn.00471b8b
add esp, 8
movups xmm0, xmmword [ebp - 0x7c]
xor eax, eax
mov word [ebp - 0x7c], ax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x6c]
movq qword [ebp - 0x34], xmm0
movups xmm0, xmmword [ebp - 0x64]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x64], ax
movq xmm0, qword [ebp - 0x54]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 7
mov ecx, dword [ebp - 0x15c]
call fcn.00411a70
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
mov dword [edi], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x48]
mov dword [edi + 4], eax
xor eax, eax
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
movups xmm0, xmmword [ebp - 0x44]
mov dword [edi + 0x1c], 0
mov word [ebp - 0x44], ax
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x18], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x20], xmm0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x2c], ax
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x30], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
call fcn.00406e60
lea ecx, [ebp - 0x84]
call fcn.00406e60
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.00471b48
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00477334
int3