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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004cf18
push 0x100432bd
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x1004e040]
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 0x1000293a
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 0x10002970
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 0x10002afb
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 0x100029a8
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 0x10002afb
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x100029d4
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 0x10002afb
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 0x100029f7
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 0x10002aa6
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 0x10002aa1
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x10002a42
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x10002a44
jmp 0x10002aa6
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 0x10002a71
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x10002a73
jmp 0x10002aa6
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x10002a87
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 0x10002afb
jmp 0x100029ee
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 0x10002afb
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