Function at 0x10002720
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003cec8
push 0x1003261a
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x1003f00c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
jne 0x1000276a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100027a0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x1000292b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100027d8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1000292b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10002804
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1000292b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
jmp 0x10002827
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100028d6
push str..detour
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x2c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x100028d1
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x10002872
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x10002874
jmp 0x100028d6
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x100028a1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x100028a3
jmp 0x100028d6
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x100028b7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1000292b
jmp 0x1000281e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1000292b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4