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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5aca30
push 0x4f5b00
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c1d10]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
cmp word [edx], 0x5a4d
je 0x470102
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [edx + 0x3c]
add ebx, edx
cmp dword [ebx], 0x4550
jne 0x4700e2
movzx eax, word [ebx + 0x14]
lea eax, [eax + ebx + 0x18]
mov dword [ebp - 0x2c], eax
test word [ebx + 0x16], 0x2000
je 0x470142
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0xa0], ecx
jne 0x470166
mov eax, 0xfffffffe
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
movzx edi, word [ebx + 6]
cmp ecx, edi
jae 0x470189
mov edi, dword [ebx + 0xa0]
cmp dword [esi + 0xc], edi
je 0x4701ad
add esi, 0x28
add ecx, 1
jmp 0x470168
xor edi, edi
jne 0x4701ad
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add ecx, 1
mov dword [ebp + 8], ecx
movzx edi, word [ebx + 6]
cmp ecx, edi
jne 0x4701c3
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x28], ecx
jmp 0x47022c
mov eax, dword [ebp + 0xc]
mov ecx, eax
sub ecx, dword [esi + 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], esi
lea edi, [esi + 0x28]
mov dword [ebp - 0x1c], edi
mov ecx, dword [edi + 0x14]
sub eax, ecx
push eax
add ecx, edx
push ecx
mov eax, dword [esi + 0x14]
add eax, edx
push eax
call fcn.004f40b0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
movzx ecx, word [ebx + 6]
cmp eax, ecx
jae 0x470229
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
add esi, 0x28
mov dword [ebp - 0x24], esi
add edi, 0x28
mov dword [ebp - 0x1c], edi
add eax, 1
jmp 0x4701f1
mov eax, dword [ebp - 0x2c]
add word [ebx + 6], 0xffff
xor esi, esi
mov dword [ebx + 0xa0], esi
mov dword [ebx + 0xa4], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
lea edx, [eax + 0x28]
xor ecx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
movzx edi, word [ebx + 6]
sub edi, 1
cmp ecx, edi
jae 0x470273
mov edi, dword [edx + 0xc]
sub edi, dword [eax + 0xc]
mov dword [eax + 8], edi
add eax, 0x28
mov dword [ebp - 0x24], eax
add edx, 0x28
add ecx, 1
jmp 0x47024b
mov ecx, dword [eax + 8]
cmp ecx, esi
je 0x4702a0
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [ebx + 0x50], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebx + 0x50], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8