Function at 0x40f7f0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x431618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x24]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
lea eax, [ecx + 0x200]
cmp eax, edi
cmova edi, eax
cmp edi, ebx
jae 0x40f9ea
mov edx, dword [ebp + 0x10]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x218], 0x5a4d
mov dword [ebp - 0x20c], eax
lea esi, [ecx + edx]
mov ecx, 0x3030
mov dword [ebp - 0x208], esi
nop dword [eax + eax]
mov ax, word [edi + edx]
xor ax, word [esi]
xor ax, cx
cmp word [ebp - 0x218], ax
jne 0x40f9db
mov ecx, dword [ebp - 0x208]
add edx, 0xc
mov ebx, dword [ebp - 0x20c]
xor esi, esi
add edx, edi
add ecx, 4
nop dword [eax]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 0x10]
xor eax, dword [edx - 0xc]
lea edx, [edx + 0x10]
xor eax, 0x30303030
mov dword [ebp + esi*4 - 0x204], eax
mov eax, dword [ecx + ebx - 0x10]
xor eax, dword [ecx - 0x10]
xor eax, 0x30303030
mov dword [ebp + esi*4 - 0x200], eax
mov eax, dword [ecx - 0xc]
xor eax, dword [edx - 0x14]
xor eax, 0x30303030
mov dword [ebp + esi*4 - 0x1fc], eax
mov eax, dword [ecx - 8]
xor eax, dword [edx - 0x10]
xor eax, 0x30303030
mov dword [ebp + esi*4 - 0x1f8], eax
add esi, 4
cmp esi, 0x80
jl 0x40f8a0
mov ecx, dword [ebp - 0x1c8]
mov ebx, dword [ebp + 0x14]
lea eax, [ecx + 0xf8]
cmp eax, ebx
ja 0x40f9cd
cmp dword [ebp + ecx - 0x204], 0x4550
jne 0x40f9cd
movzx edx, word [ebp + ecx - 0x200]
mov esi, 0x14c
mov eax, edi
cmp dx, si
jne 0x40f957
mov esi, dword [ebp - 0x210]
lea edx, [ebp + ecx - 0x10c]
movzx ecx, word [ebp + ecx - 0x1fe]
test esi, esi
je 0x40f980
mov dword [esi], 0
jmp 0x40f980
mov esi, 0x8664
cmp dx, si
jne 0x40f9cd
mov esi, dword [ebp - 0x210]
lea edx, [ebp + ecx - 0xfc]
movzx ecx, word [ebp + ecx - 0x1fe]
test esi, esi
je 0x40f980
mov dword [esi], 1
movzx ecx, cx
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x40f9b3
lea ebx, [edx + 0x10]
mov esi, dword [ebx + 4]
lea ebx, [ebx + 0x28]
add esi, dword [ebx - 0x28]
mov ecx, eax
sub ecx, edi
cmp esi, ecx
lea edx, [esi + edi]
cmovbe edx, eax
sub dword [ebp - 0x214], 1
mov eax, edx
jne 0x40f990
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
cmp eax, ebx
jae 0x40f9d0
nop word [eax + eax]
cmp dword [eax + edx], 0
je 0x40f9fd
inc eax
cmp eax, ebx
jb 0x40f9c0
jmp 0x40f9d0
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x208]
mov ecx, 0x3030
inc dword [ebp - 0x20c]
inc edi
cmp edi, ebx
jb 0x40f870
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414e7e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x21c]
lea ecx, [edi + edx]
mov ebx, dword [ebp - 0x224]
mov dword [esi], ecx
mov ecx, eax
mov esi, dword [ebp - 0x220]
sub ecx, edi
mov dword [esi], ecx
test ebx, ebx
je 0x40fa3b
add edx, eax
xor ecx, ecx
cmp byte [edx], cl
jne 0x40fa2d
inc ecx
cmp byte [edx + ecx], 0
je 0x40fa26
sub ecx, edi
add eax, ecx
mov dword [ebx], eax
mov ecx, dword [esi]
cmp eax, ecx
jae 0x40fa3b
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414e7e
mov esp, ebp
pop ebp
ret