Function at 0x4086b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
push edi
push 0xc8
xorps xmm0, xmm0
lea eax, [esp + 0x44]
push 0
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x38], 0
movq qword [esp + 0x39], xmm0
movq qword [esp + 0x41], xmm0
mov word [esp + 0x49], 0
mov byte [esp + 0x4b], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll_memset
mov ecx, 0x40dd48
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408730
xor eax, eax
sub ecx, edx
je 0x40874c
lea ecx, [ecx]
xor byte [eax + 0x40dd48], 0x9d
inc eax
cmp eax, ecx
jb 0x408740
mov ecx, 0x40de94
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408754
xor eax, eax
sub ecx, edx
je 0x40876d
xor byte [eax + 0x40de94], 0x9d
inc eax
cmp eax, ecx
jb 0x408761
mov ecx, 0x40ddec
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408775
xor eax, eax
sub ecx, edx
je 0x40878e
xor byte [eax + 0x40ddec], 0x9d
inc eax
cmp eax, ecx
jb 0x408782
xor ecx, ecx
mov al, byte [ecx + 0x40dd48]
mov byte [esp + ecx + 0x40], al
lea ecx, [ecx + 1]
test al, al
jne 0x408790
push 0x11c
lea eax, [esp + 0x10c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x108], 0x11c
push 3
push 2
push 0
push 0
mov dword [esp + 0x11c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test al, al
je 0x408802
push 0x40ddec
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x40dd48
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408810
xor eax, eax
sub ecx, edx
je 0x40882c
lea ecx, [ecx]
xor byte [eax + 0x40dd48], 0x9d
inc eax
cmp eax, ecx
jb 0x408820
mov ecx, 0x40de94
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408834
xor eax, eax
sub ecx, edx
je 0x40884d
xor byte [eax + 0x40de94], 0x9d
inc eax
cmp eax, ecx
jb 0x408841
mov ecx, 0x40ddec
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408855
xor eax, eax
sub ecx, edx
je 0x40886e
xor byte [eax + 0x40ddec], 0x9d
inc eax
cmp eax, ecx
jb 0x408862
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
je 0x4088b6
cmp dword [esp + 0xc], 0
je 0x4088b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x14
push 8
mov dword [esp + 0x18], 0x14
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4088bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x40897f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x408913
cmp eax, 0xc0000023
jne 0x40897f
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
push 8
call edi
push eax
call ebx
push dword [esp + 0x18]
mov esi, eax
push 8
call edi
push eax
call ebx
push dword [esp + 0x14]
mov dword [esp + 0x2c], eax
push 8
call edi
push eax
call ebx
test esi, esi
je 0x4088b6
lea ecx, [esp + 0x20]
push ecx
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
je 0x408901
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret