Function at 0x406c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497535
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 0x406c6a
mov byte [ebp - 0x49], 0
jmp 0x4070af
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 0x406ca1
mov edx, eax
lea ecx, [eax + esi]
add eax, esi
jmp 0x406cac
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.00470940
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 0x406cec
inc ecx
cmp ecx, eax
je 0x406cec
mov edi, eax
mov al, byte [ecx]
cmp al, 0x60
je 0x406ce1
mov byte [edx], al
inc edx
inc ecx
cmp ecx, edi
jne 0x406cd8
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 0x406d0a
sub edx, eax
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp + 8]
jmp 0x406d1b
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.0046fcb0
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.0040e310
mov edx, dword [ebp - 0x34]
add esp, 0x10
cmp edx, 0x10
jb 0x406da2
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406d98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070fd
push edx
push ecx
call fcn.0046e37b
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 0x4070a3
lea eax, [esi + 0x18]
mov dword [ebp - 0x58], eax
cmp esi, edx
jae 0x40706d
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 0
or edi, 1
mov dword [ebp - 0x50], 0x4b231c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x54]
xor ecx, 0xb95588e0
mov dword [eax], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], 0x4b231c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov cl, byte [eax + 4]
mov eax, dword [ebp - 0x54]
xor cl, 0xbb
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x58]
mov byte [eax + 4], cl
mov ecx, esi
cmp dword [edi - 4], 0x10
jb 0x406e35
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
call fcn.0040e1b0
test al, al
je 0x406ee3
cmp esi, dword [ebp - 0x6c]
je 0x406ee3
jb 0x406ee3
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 0x4b2324
mov edx, 0x62879130
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
shr ecx, 7
add edi, 4
xor ecx, edx
mov eax, ecx
shl eax, 9
xor ecx, eax
mov edx, ecx
shr edx, 0xd
xor edx, ecx
bswap edx
cmp edi, 8
jb 0x406e74
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x24]
or dword [ebp - 0x54], 2
mov dword [ebp - 0x5c], 0x4b2324
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 0x406ece
mov ecx, dword [ecx]
lea edx, [ebp - 0x24]
call fcn.0040e1b0
test al, al
je 0x406ee3
mov byte [ebp - 0x49], 1
cmp edi, dword [ebp - 0x68]
jb 0x406ee7
mov byte [ebp - 0x49], 0
mov edx, dword [ebp - 0x54]
test dl, 2
je 0x406f0b
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 0x406f00
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 0x406f20
cmp byte [ebp - 0x49], cl
je 0x406f55
push ecx
mov ecx, edi
call fcn.0040f0a0
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 0x406dd6
xorps xmm0, xmm0
mov word [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x4b2244
xor edi, edi
mov dword [ebp - 0x50], eax
mov eax, 0x968e142a
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + edi]
mov ecx, dword [ebp - 0x50]
xor edx, eax
mov dword [ecx + edi], edx
mov ecx, eax
shr ecx, 7
add edi, 4
xor ecx, eax
mov eax, ecx
shl eax, 9
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
neg eax
cmp edi, 8
jb 0x406f77
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x4b2244
mov dword [ebp - 0x50], ecx
mov edi, 8
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 0x406fb6
mov edi, dword [ebp - 0x58]
mov ecx, esi
cmp dword [edi - 4], 0x10
jb 0x406fda
mov ecx, dword [esi]
lea edx, [ebp - 0x30]
call fcn.0040e1b0
mov edx, dword [ebp - 0x68]
test al, al
je 0x406ffe
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x406ffe
add edi, 0x48
mov byte [ebp - 0x49], 1
cmp edi, edx
jb 0x407002
mov byte [ebp - 0x49], 0
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x30]
and edi, 0xfffffffb
mov ecx, 0xa
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407010
cmp byte [ebp - 0x49], cl
jne 0x40702c
add esi, 0x18
add dword [ebp - 0x58], 0x18
jmp 0x406dd6
lea ecx, [esi + 0x18]
push ecx
call fcn.0040f0a0
mov edi, dword [ebp - 0x60]
lea ecx, [esi + 0x30]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.0040f0a0
lea ecx, [esi + 0x48]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.0040f0a0
lea ecx, [esi + 0x60]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
call fcn.0040f0a0
add esp, 4
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
jmp 0x407070
mov edi, dword [ebp - 0x60]
mov ecx, dword [edi + 8]
mov eax, ecx
mov edx, dword [edi + 0xc]
or eax, edx
je 0x407087
and ecx, edx
cmp ecx, 0xffffffff
je 0x407087
mov dl, 1
jmp 0x407089
xor dl, dl
mov ecx, dword [edi]
mov eax, ecx
mov esi, dword [edi + 4]
or eax, esi
je 0x4070a3
and ecx, esi
cmp ecx, 0xffffffff
je 0x4070a3
mov byte [ebp - 0x49], 1
test dl, dl
jne 0x4070a7
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x6c]
call fcn.00409360
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4070df
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4070d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070fd
push edx
push ecx
call fcn.0046e37b
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.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3