Function at 0x406df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496045
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4bb0c8]
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 - 0x80], eax
xor edi, edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x406e3a
mov byte [ebp - 0x69], 0
jmp 0x4072b4
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 - 0xb4], xmm0
movups xmmword [ebp - 0xa4], xmm0
movq qword [ebp - 0x94], xmm0
jb 0x406e74
mov edx, eax
lea ecx, [eax + esi]
add eax, esi
jmp 0x406e7f
lea eax, [ecx + esi]
lea ecx, [ebp + 8]
add ecx, esi
lea edx, [ebp + 8]
mov dword [ebp - 0x70], ecx
sub ecx, edx
push ecx
push 0x60
push edx
mov dword [ebp - 0x78], eax
call fcn.0046f480
mov ecx, dword [ebp - 0x70]
add esp, 0xc
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x70]
mov edx, ecx
cmp ecx, eax
je 0x406ec4
inc ecx
cmp ecx, eax
je 0x406ec4
mov edi, eax
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x60
je 0x406eb9
mov byte [edx], al
inc edx
inc ecx
cmp ecx, edi
jne 0x406eb0
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [ebp + 0x1c], 0x10
jb 0x406ee2
sub edx, eax
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp + 8]
jmp 0x406ef3
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 - 0x78], ecx
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x78]
sub esi, eax
mov dword [ebp + 0x18], esi
add eax, ecx
sub esi, edx
inc esi
push esi
push eax
push ecx
call fcn.0046e7f0
mov dword [ebp - 0x68], 0
mov eax, 0x200a
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 2
mov word [ebp - 0x68], ax
mov byte [ebp - 0x66], 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.0040e620
mov edx, dword [ebp - 0x54]
add esp, 0x10
cmp edx, 0x10
jb 0x406f7d
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406f73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407302
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov edx, dword [ebp - 0x88]
mov eax, edx
mov esi, dword [ebp - 0x8c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp eax, 8
jb 0x4072a5
lea eax, [esi + 0x18]
mov dword [ebp - 0x78], eax
cmp esi, edx
jae 0x40726f
mov dword [ebp - 0x18], 0x321b1495
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 0x4d
or edi, 1
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x74]
xor ecx, 0x577f7bf6
mov dword [eax], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x70]
mov cl, byte [eax + 4]
mov eax, dword [ebp - 0x74]
xor cl, 0x4d
mov dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x78]
mov byte [eax + 4], cl
mov ecx, esi
cmp dword [edi - 4], 0x10
jb 0x40701f
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
call fcn.0040e4c0
test al, al
je 0x4070da
cmp esi, dword [ebp - 0x8c]
je 0x4070da
jb 0x4070da
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0xb2ce2afa
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x90bc33cf
mov byte [ebp - 0x1c], 0x63
mov edx, 0xd1a95f98
movq qword [ebp - 0x44], xmm0
xor edi, edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + edi]
mov eax, dword [ebp - 0x7c]
xor ecx, edx
imul edx, edx, 0x343fd
mov dword [eax + edi], ecx
add edi, 4
add edx, 0x269ec3
bswap edx
cmp edi, 8
jb 0x407072
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x24]
or dword [ebp - 0x74], 2
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov cl, byte [eax + 8]
mov eax, dword [ebp - 0x70]
xor cl, dl
mov byte [eax + 8], cl
lea ecx, [edi - 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x4070c2
mov ecx, dword [ecx]
lea edx, [ebp - 0x44]
call fcn.0040e4c0
test al, al
je 0x4070da
mov byte [ebp - 0x69], 1
cmp edi, dword [ebp - 0x88]
jb 0x4070de
mov byte [ebp - 0x69], 0
mov edx, dword [ebp - 0x74]
test dl, 2
je 0x4070fc
and edx, 0xfffffffd
lea eax, [ebp - 0x44]
mov ecx, 9
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4070f1
and edx, 0xfffffffe
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x74], edx
mov ecx, 5
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407110
cmp byte [ebp - 0x69], cl
je 0x407148
push ecx
mov ecx, edi
call fcn.0040f3b0
mov ecx, dword [ebp - 0x80]
add esp, 4
mov edi, dword [ebp - 0x74]
add esi, 0x18
add dword [ebp - 0x78], 0x18
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x88]
mov dword [ecx], eax
jmp 0x406fb7
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0xcb803c6c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0xf7a4007e
mov word [ebp - 0x30], 0x2f02
xor edi, edi
movq qword [ebp - 0x50], xmm0
mov word [ebp - 0x48], 0
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x70], eax
mov eax, 0xbee74e0d
nop dword [eax]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + edi]
mov ecx, dword [ebp - 0x70]
xor edx, eax
imul eax, eax, 0x343fd
mov dword [ecx + edi], edx
add edi, 4
add eax, 0x269ec3
ror eax, 3
cmp edi, 8
jb 0x407180
lea ecx, [ebp - 0x38]
mov edi, 8
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x7c]
mov dl, byte [ecx + edi]
mov ecx, dword [ebp - 0x70]
xor dl, al
shr eax, 8
mov byte [ecx + edi], dl
inc edi
cmp edi, 0xa
jb 0x4071b5
mov edi, dword [ebp - 0x78]
mov ecx, esi
cmp dword [edi - 4], 0x10
jb 0x4071d9
mov ecx, dword [esi]
lea edx, [ebp - 0x50]
call fcn.0040e4c0
mov edx, dword [ebp - 0x88]
test al, al
je 0x407200
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x407200
add edi, 0x48
mov byte [ebp - 0x69], 1
cmp edi, edx
jb 0x407204
mov byte [ebp - 0x69], 0
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x50]
and edi, 0xfffffffb
mov ecx, 0xa
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407212
cmp byte [ebp - 0x69], cl
jne 0x40722e
add esi, 0x18
add dword [ebp - 0x78], 0x18
jmp 0x406fb7
lea ecx, [esi + 0x18]
push ecx
call fcn.0040f3b0
mov edi, dword [ebp - 0x80]
lea ecx, [esi + 0x30]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.0040f3b0
lea ecx, [esi + 0x48]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.0040f3b0
lea ecx, [esi + 0x60]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
call fcn.0040f3b0
add esp, 4
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
jmp 0x407272
mov edi, dword [ebp - 0x80]
mov ecx, dword [edi + 8]
mov eax, ecx
mov edx, dword [edi + 0xc]
or eax, edx
je 0x407289
and ecx, edx
cmp ecx, 0xffffffff
je 0x407289
mov dl, 1
jmp 0x40728b
xor dl, dl
mov ecx, dword [edi]
mov eax, ecx
mov esi, dword [edi + 4]
or eax, esi
je 0x4072a5
and ecx, esi
cmp ecx, 0xffffffff
je 0x4072a5
mov byte [ebp - 0x69], 1
test dl, dl
jne 0x4072a9
mov byte [ebp - 0x69], 0
lea ecx, [ebp - 0x8c]
call fcn.004096c0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4072e4
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4072da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407302
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov al, byte [ebp - 0x69]
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.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.00471c84
int3