Function at 0x406c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497545
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4bd0c8]
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
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x406c8a
mov byte [ebp - 0x49], 0
jmp 0x4070cf
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
mov eax, dword [ebp + 8]
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
movq qword [ebp - 0x74], xmm0
jb 0x406cc1
mov edx, eax
lea ecx, [eax + esi]
add eax, esi
jmp 0x406ccc
lea eax, [esi + ecx]
lea ecx, [ebp + 8]
add ecx, esi
lea edx, [ebp + 8]
mov dword [ebp - 0x50], ecx
sub ecx, edx
push ecx
push 0x60
push edx
mov dword [ebp - 0x58], eax
call fcn.00470950
mov ecx, dword [ebp - 0x50]
add esp, 0xc
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x50]
mov edx, ecx
cmp ecx, eax
je 0x406d0c
inc ecx
cmp ecx, eax
je 0x406d0c
mov edi, eax
mov al, byte [ecx]
cmp al, 0x60
je 0x406d01
mov byte [edx], al
inc edx
inc ecx
cmp ecx, edi
jne 0x406cf8
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [ebp + 0x1c], 0x10
jb 0x406d2a
sub edx, eax
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp + 8]
jmp 0x406d3b
lea eax, [ebp + 8]
sub edx, eax
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
lea eax, [ebp + 8]
mov dword [ebp - 0x58], ecx
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x58]
sub esi, eax
mov dword [ebp + 0x18], esi
add eax, ecx
sub esi, edx
inc esi
push esi
push eax
push ecx
call fcn.0046fcc0
mov dword [ebp - 0x48], 0
mov eax, 0x200a
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 2
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.0040e340
mov edx, dword [ebp - 0x34]
add esp, 0x10
cmp edx, 0x10
jb 0x406dc2
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406db8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40711d
push edx
push ecx
call fcn.0046e38b
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 0x4070c3
lea eax, [esi + 0x18]
mov dword [ebp - 0x58], eax
cmp esi, edx
jae 0x40708d
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 0
or edi, 1
mov dword [ebp - 0x50], 0x4b2334
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x54]
xor ecx, 0xe5885992
mov dword [eax], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], 0x4b2334
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov cl, byte [eax + 4]
mov eax, dword [ebp - 0x54]
xor cl, 0x6a
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x58]
mov byte [eax + 4], cl
mov ecx, esi
cmp dword [edi - 4], 0x10
jb 0x406e55
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
call fcn.0040e1e0
test al, al
je 0x406f03
cmp esi, dword [ebp - 0x6c]
je 0x406f03
jb 0x406f03
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 0x4b2390
mov edx, 0x9d081765
mov dword [ebp - 0x5c], eax
xor edi, edi
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + edi]
mov eax, dword [ebp - 0x5c]
xor ecx, edx
mov dword [eax + edi], ecx
mov ecx, edx
shl ecx, 0xd
add edi, 4
xor ecx, edx
mov eax, ecx
shr eax, 7
xor ecx, eax
mov edx, ecx
shl edx, 0x11
xor edx, ecx
not edx
cmp edi, 8
jb 0x406e94
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x24]
or dword [ebp - 0x54], 2
mov dword [ebp - 0x5c], 0x4b2390
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
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], 0x10
jb 0x406eee
mov ecx, dword [ecx]
lea edx, [ebp - 0x24]
call fcn.0040e1e0
test al, al
je 0x406f03
mov byte [ebp - 0x49], 1
cmp edi, dword [ebp - 0x68]
jb 0x406f07
mov byte [ebp - 0x49], 0
mov edx, dword [ebp - 0x54]
test dl, 2
je 0x406f2b
and edx, 0xfffffffd
lea eax, [ebp - 0x24]
mov ecx, 9
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406f20
and edx, 0xfffffffe
lea eax, [ebp - 0x18]
mov dword [ebp - 0x54], edx
mov ecx, 5
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406f40
cmp byte [ebp - 0x49], cl
je 0x406f75
push ecx
mov ecx, edi
call fcn.0040f0d0
mov ecx, dword [ebp - 0x60]
add esp, 4
mov edi, dword [ebp - 0x54]
add esi, 0x18
add dword [ebp - 0x58], 0x18
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x68]
mov dword [ecx], eax
jmp 0x406df6
xorps xmm0, xmm0
mov word [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x4b228c
xor edi, edi
mov dword [ebp - 0x50], eax
mov eax, 0x26689745
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + edi]
mov ecx, dword [ebp - 0x50]
xor edx, eax
imul eax, eax, 0xfb73
mov dword [ecx + edi], edx
add edi, 4
add eax, 0x73f302
rol eax, 3
cmp edi, 8
jb 0x406f97
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x4b228c
mov dword [ebp - 0x50], ecx
mov edi, 8
nop dword [eax]
mov ecx, dword [ebp - 0x5c]
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 0x406fd0
mov edi, dword [ebp - 0x58]
mov ecx, esi
cmp dword [edi - 4], 0x10
jb 0x406ff4
mov ecx, dword [esi]
lea edx, [ebp - 0x30]
call fcn.0040e1e0
mov edx, dword [ebp - 0x68]
test al, al
je 0x407018
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x407018
add edi, 0x48
mov byte [ebp - 0x49], 1
cmp edi, edx
jb 0x40701c
mov byte [ebp - 0x49], 0
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x30]
and edi, 0xfffffffb
mov ecx, 0xa
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407030
cmp byte [ebp - 0x49], cl
jne 0x40704c
add esi, 0x18
add dword [ebp - 0x58], 0x18
jmp 0x406df6
lea ecx, [esi + 0x18]
push ecx
call fcn.0040f0d0
mov edi, dword [ebp - 0x60]
lea ecx, [esi + 0x30]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.0040f0d0
lea ecx, [esi + 0x48]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.0040f0d0
lea ecx, [esi + 0x60]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
call fcn.0040f0d0
add esp, 4
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
jmp 0x407090
mov edi, dword [ebp - 0x60]
mov ecx, dword [edi + 8]
mov eax, ecx
mov edx, dword [edi + 0xc]
or eax, edx
je 0x4070a7
and ecx, edx
cmp ecx, 0xffffffff
je 0x4070a7
mov dl, 1
jmp 0x4070a9
xor dl, dl
mov ecx, dword [edi]
mov eax, ecx
mov esi, dword [edi + 4]
or eax, esi
je 0x4070c3
and ecx, esi
cmp ecx, 0xffffffff
je 0x4070c3
mov byte [ebp - 0x49], 1
test dl, dl
jne 0x4070c7
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x6c]
call fcn.00409390
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4070ff
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4070f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40711d
push edx
push ecx
call fcn.0046e38b
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3