Function at 0x4067d0
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 0x49dc0b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x4c0100]
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.004748f0
lea eax, [ebp - 0x148]
mov dword [ebp - 0x150], 0x4b52a8
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov edx, 0xd78157fd
xor esi, esi
mov ecx, edx
shr ecx, 7
xor ecx, edx
mov eax, ecx
shl eax, 9
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x150]
mov edx, ecx
shr ecx, 3
shl edx, 0x1d
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 0x4068b1
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
push eax
sub esp, 8
lea edx, [ebp - 0x148]
call fcn.00411db0
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 0x406916
test edx, edx
jne 0x406e12
xorps xmm0, xmm0
mov word [ebp - 0xc8], dx
movups xmmword [ebp - 0xe8], xmm0
lea eax, [ebp - 0xe8]
mov edx, 0x1c5079a9
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0x14c], 0x4b5210
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
mov ecx, edx
shr ecx, 7
add esi, 4
xor ecx, edx
mov eax, ecx
shl eax, 9
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor ecx, eax
mov edx, ecx
shr ecx, 4
shl edx, 0x1c
or edx, ecx
cmp esi, 0x20
jb 0x406960
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x14c], 0x4b5210
mov dword [ebp - 0x160], eax
mov esi, 0x20
nop word [eax + 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 0x4069c0
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.00411f80
test eax, eax
jne 0x406cb7
cmp dword [ebp - 0x168], 4
jne 0x406cb7
cmp dword [ebp - 0x160], 4
jne 0x406cb7
mov dword [ebp - 0x9c], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x14c], 0x4b51b0
mov esi, 0xe9908d9
mov dword [ebp - 0x164], eax
xor edx, edx
nop dword [eax]
imul eax, esi, 0x343fd
mov esi, 0xffd9613d
sub esi, eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + edx]
mov eax, dword [ebp - 0x164]
xor ecx, esi
mov dword [eax + edx], ecx
add edx, 4
cmp edx, 0x14
jb 0x406a80
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.00411f80
test eax, eax
jne 0x406cae
cmp dword [ebp - 0x16c], 4
jne 0x406cae
cmp dword [ebp - 0x164], 4
jne 0x406cae
mov word [ebp - 0x88], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14c], 0x4b516c
mov dword [ebp - 0x150], eax
mov edx, 0x3e4635e3
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x150]
xor ecx, edx
mov dword [eax + esi], ecx
mov ecx, edx
shr ecx, 7
add esi, 4
xor ecx, edx
mov eax, ecx
shl eax, 9
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor ecx, eax
mov edx, ecx
shr ecx, 3
shl edx, 0x1d
or edx, ecx
cmp esi, 0x10
jb 0x406b50
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14c], 0x4b516c
mov dword [ebp - 0x150], eax
mov esi, 0x10
nop word [eax + 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 0x406bb0
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 0x406cc1
xorps xmm0, xmm0
lea eax, [ebp - 0xc4]
movups xmmword [ebp - 0xc4], xmm0
mov edx, 0x517752c1
xor esi, esi
movq qword [ebp - 0xb4], xmm0
mov dword [ebp - 0x14c], 0x4b51e8
mov dword [ebp - 0x150], eax
nop dword [eax]
nop dword [eax + eax]
imul eax, edx, 0x5177
add eax, 0x7752c1
mov edx, eax
shl eax, 2
shr edx, 0x1e
or edx, 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
cmp esi, 0x18
jb 0x406c40
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 0x406cc1
mov byte [ebp - 0x151], 1
jmp 0x406cc8
mov dword [ebp - 0x80], 0
jmp 0x406cc1
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x151], 0
mov eax, dword [ebp - 0x150]
test al, 8
je 0x406cf1
and eax, 0xfffffff7
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x158], eax
mov edx, 0x18
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x406ce6
test al, 4
je 0x406d1b
and eax, 0xfffffffb
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x158], eax
mov edx, 0x12
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x406d10
test al, 2
je 0x406d3e
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 0x406d33
mov dword [ebp - 4], 1
test al, 1
je 0x406d6b
and eax, 0xfffffffe
mov ecx, 0x22
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0xe8]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406d60
cmp byte [ebp - 0x151], 0
je 0x406e07
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 0x406dc1
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406db7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406eb2
push ecx
push edx
call fcn.0047292b
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.00411ea0
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.00406ec0
lea ecx, [ebp - 0x84]
call fcn.00406ec0
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.004728e8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004780c4
int3