Function at 0x408510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6930
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x18], 7
push eax
xor esi, esi
mov word [ebp - 0x2c], ax
push 0x664bac
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
call fcn.00405d50
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x30]
push eax
push 0x664bf4
push 0x17
push esi
push 0x664e24
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40882b
mov dword [ebp - 0x50], 0xc661799
xor ecx, ecx
mov dword [ebp - 0x4c], 0xc7f8fe99
mov dword [ebp - 0x48], 0xea9d14b7
mov dword [ebp - 0x44], 0xc321
mov byte [ebp - 0x40], 1
nop dword [eax + eax]
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x50], ax
inc ecx
cmp ecx, 7
jb 0x4085b0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x50]
mov byte [ebp - 0x40], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x4085f1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40882b
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
or eax, 0x20
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x24]
cmp dword [edi + 0x524], 8
lea eax, [edi + 0x510]
jb 0x408612
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x649edc
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
je 0x408636
push eax
call dword [ecx + 8]
jmp 0x40882b
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x30]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
jns 0x408668
push eax
mov esi, 1
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40882b
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x40868b
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40882b
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0
push 0x80028000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jns 0x4086c8
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40882b
mov edx, dword [ebp - 0x34]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x4b8]
call fcn.00405d50
mov dword [ebp - 0x54], 0x9c159c32
xor ecx, ecx
mov dword [ebp - 0x50], 0x9c199c05
mov dword [ebp - 0x4c], 0x9c1c9c13
mov dword [ebp - 0x48], 0x9c149c03
mov dword [ebp - 0x44], 0x9c18
mov byte [ebp - 0x40], 1
nop word [eax + eax]
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x54], ax
inc ecx
cmp ecx, 9
jb 0x408720
xor eax, eax
mov byte [ebp - 0x40], 0
mov word [ebp - 0x6c], ax
lea ecx, [ebp - 0x6c]
push 9
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], 0
push eax
mov dword [ebp - 0x58], 7
call fcn.00405d50
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x4b8]
call fcn.0040bf40
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4087a8
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40879e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408885
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0x9c0b9c0b
mov dword [ebp - 0x50], 0x9c059c19
xor ecx, ecx
mov dword [ebp - 0x4c], 0x9c179c2d
mov dword [ebp - 0x48], 0x9c079c1d
mov word [ebp - 0x44], ax
mov byte [ebp - 0x42], 1
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x54], ax
inc ecx
cmp ecx, 8
jb 0x4087d0
lea eax, [ebp - 0x54]
mov byte [ebp - 0x42], 0
push eax
lea ecx, [edi + 0x2c]
call fcn.00414e05
push dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x3c]
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408867
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40885d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40888a
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret
call fcn.005ce7a3
call fcn.005ce7a3
int3