Function at 0x406f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cec5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x406fe0
mov byte [ebp - 0x49], 0
jmp 0x407421
mov edx, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
cmp edx, 0xf
movups xmmword [eax], xmm0
push 0x60
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
lea eax, [ebp + 8]
cmova eax, ecx
movq qword [ebp - 0x74], xmm0
add eax, esi
cmp edx, 0xf
mov dword [ebp - 0x58], eax
lea eax, [ebp + 8]
cmova eax, ecx
add esi, eax
lea eax, [ebp + 8]
cmp edx, 0xf
push esi
cmova eax, ecx
push eax
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
call fcn.00457f70
mov edi, eax
cmp eax, esi
je 0x40704f
inc eax
cmp eax, esi
je 0x40704f
nop
mov cl, byte [eax]
cmp cl, 0x60
je 0x40704a
mov byte [edi], cl
inc edi
inc eax
cmp eax, esi
jne 0x407040
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
mov esi, edi
cmova eax, dword [ebp + 8]
sub dword [ebp - 0x58], edi
sub esi, eax
mov edi, dword [ebp + 0x18]
mov eax, edi
mov edx, dword [ebp - 0x58]
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp + 0x1c], 0xf
mov dword [ebp - 0x58], edx
lea edx, [ebp + 8]
cmova edx, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
add edx, esi
sub edi, eax
add eax, edx
mov ecx, edi
sub ecx, esi
inc ecx
push ecx
push eax
push edx
call fcn.004735e0
xorps xmm0, xmm0
mov dword [ebp + 0x18], edi
movups xmmword [ebp - 0x48], xmm0
mov eax, 0x200a
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0xf
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.0040fa80
mov ecx, dword [ebp - 0x34]
add esp, 0x10
cmp ecx, 0xf
jbe 0x407103
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4070f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40746f
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov edx, dword [ebp - 0x68]
mov eax, edx
mov esi, dword [ebp - 0x6c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp eax, 8
jb 0x407415
lea edi, [esi + 0x18]
mov dword [ebp - 0x58], edi
cmp esi, edx
je 0x4073df
sbb al, al
and al, 0xfe
add al, 1
jns 0x4073df
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x50], 0x4b438c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
or dword [ebp - 0x5c], 1
mov ecx, dword [eax]
mov eax, dword [ebp - 0x54]
xor ecx, 0x21be296c
mov dword [eax], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x54], 0x4b438c
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
mov cl, byte [eax + 4]
mov eax, dword [ebp - 0x50]
xor cl, 0x80
cmp dword [edi - 4], 0xf
mov byte [eax + 4], cl
mov ecx, esi
jbe 0x40719d
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
call fcn.0040fa00
test al, al
je 0x407256
mov eax, dword [ebp - 0x6c]
cmp esi, eax
je 0x407256
sbb al, al
and al, 0xfe
inc al
test al, al
jle 0x407256
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x54], 0x4b436c
mov edx, 0xc7fd5806
mov dword [ebp - 0x50], eax
xor edi, edi
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + edi]
mov eax, dword [ebp - 0x50]
xor ecx, edx
imul edx, edx, 0x43fd43fd
mov dword [eax + edi], ecx
add edi, 4
add edx, 0xc39ec3
not edx
cmp edi, 8
jb 0x4071e6
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x24]
or dword [ebp - 0x5c], 2
mov dword [ebp - 0x54], 0x4b436c
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
mov cl, byte [eax + 8]
mov eax, dword [ebp - 0x50]
xor cl, dl
mov byte [eax + 8], cl
lea ecx, [edi - 0x30]
cmp dword [ecx + 0x14], 0xf
jbe 0x407237
mov ecx, dword [ecx]
lea edx, [ebp - 0x24]
call fcn.0040fa00
test al, al
je 0x407256
mov eax, dword [ebp - 0x68]
cmp edi, eax
je 0x407256
sbb al, al
mov byte [ebp - 0x49], 1
and al, 0xfe
add al, 1
js 0x40725a
mov byte [ebp - 0x49], 0
mov ecx, dword [ebp - 0x5c]
test cl, 2
je 0x40727b
and ecx, 0xfffffffd
lea eax, [ebp - 0x24]
mov edx, 9
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x407270
and ecx, 0xfffffffe
lea eax, [ebp - 0x18]
mov dword [ebp - 0x5c], ecx
mov ecx, 5
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407290
cmp byte [ebp - 0x49], cl
je 0x4072c1
push ecx
mov ecx, edi
call fcn.004105e0
mov ecx, dword [ebp - 0x60]
add esp, 4
add esi, 0x18
add edi, 0x18
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x68]
mov dword [ecx], eax
jmp 0x407134
xorps xmm0, xmm0
mov word [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x54], 0x4b4360
xor edi, edi
mov dword [ebp - 0x50], eax
mov eax, 0x1da9ac8a
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + edi]
mov ecx, dword [ebp - 0x50]
xor edx, eax
mov dword [ecx + edi], edx
add edi, 4
imul ecx, eax, 0x343fd
mov eax, 0xffd9613c
sub eax, ecx
cmp edi, 8
jb 0x4072e3
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x54], 0x4b4360
mov dword [ebp - 0x50], ecx
mov edi, 8
nop dword [eax + eax]
mov ecx, dword [ebp - 0x54]
mov dl, byte [ecx + edi]
mov ecx, dword [ebp - 0x50]
xor dl, al
shr eax, 8
mov byte [ecx + edi], dl
inc edi
cmp edi, 0xa
jb 0x407320
mov edi, dword [ebp - 0x58]
mov ecx, esi
cmp dword [edi - 4], 0xf
jbe 0x407344
mov ecx, dword [esi]
lea edx, [ebp - 0x30]
call fcn.0040fa00
mov edx, dword [ebp - 0x68]
test al, al
je 0x407370
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x407370
lea eax, [edi + 0x48]
cmp eax, edx
je 0x407370
sbb al, al
mov byte [ebp - 0x49], 1
and al, 0xfe
add al, 1
js 0x407374
mov byte [ebp - 0x49], 0
mov eax, dword [ebp - 0x5c]
mov ecx, 0xa
and eax, 0xfffffffb
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x30]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x407385
cmp byte [ebp - 0x49], cl
jne 0x40739e
add esi, 0x18
add edi, 0x18
jmp 0x407134
lea ecx, [esi + 0x18]
push ecx
call fcn.004105e0
mov edi, dword [ebp - 0x60]
lea ecx, [esi + 0x30]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.004105e0
lea ecx, [esi + 0x48]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.004105e0
lea ecx, [esi + 0x60]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
call fcn.004105e0
add esp, 4
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
jmp 0x4073e2
mov edi, dword [ebp - 0x60]
mov ecx, dword [edi + 8]
mov eax, ecx
mov edx, dword [edi + 0xc]
or eax, edx
je 0x4073f9
and ecx, edx
cmp ecx, 0xffffffff
je 0x4073f9
mov dl, 1
jmp 0x4073fb
xor dl, dl
mov ecx, dword [edi]
mov eax, ecx
mov esi, dword [edi + 4]
or eax, esi
je 0x407415
and ecx, esi
cmp ecx, 0xffffffff
je 0x407415
mov byte [ebp - 0x49], 1
test dl, dl
jne 0x407419
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x6c]
call fcn.00409350
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x407451
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407447
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40746f
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov al, byte [ebp - 0x49]
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.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00477334
int3