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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x12a6740
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp + 8]
call fcn.004047ac
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, ebx
call fcn.00404c88
push eax
call fcn.00406e68
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d63c2
lea eax, [ebp - 0x25c]
call fcn.004d0500
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp + 8]
call fcn.00404800
jmp 0x4d6707
mov ebx, 0xf
cmp byte [ebp + 0xc], 0
je 0x4d640d
call fcn.004029fc
mov eax, 0x7f
call fcn.004030bc
mov edx, eax
inc edx
cmp ebx, edx
jbe 0x4d63e6
lea edx, [ebx + 2]
mov eax, edx
shl eax, 4
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x12a62fc]
call fcn.00405c44
add esp, 4
jmp 0x4d6413
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x12a62fc]
call fcn.00405c44
add esp, 4
mov ecx, esi
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jb 0x4d644d
inc eax
xor edx, edx
mov ebx, dword [ebp - 0x1c]
add ebx, edx
push ebx
mov bl, byte [ecx]
xor bl, 0xff
pop esi
mov byte [esi], bl
inc ecx
inc edx
dec eax
jne 0x4d643a
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
mov ecx, 0x40
call fcn.004079cc
cmp word [ebp - 0x70], 0x5a4d
jne 0x4d66e0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
lea edx, [eax + edx]
lea eax, [ebp - 0x168]
mov ecx, 0xf8
call fcn.004079cc
cmp dword [ebp - 0x168], 0x4550
jne 0x4d66c0
cmp word [ebp - 0x150], 0x10b
jne 0x4d66c0
call fcn.004d4508
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx + 8]
lea edx, [ebp - 0x18]
mov ecx, 4
call fcn.004079c4
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
shr eax, 4
dec eax
cmp eax, 1
jb 0x4d66fe
mov dword [ebp - 0x20], eax
sub esi, 0x10
xor edx, edx
mov ebx, esi
lea eax, [esi + 0x10]
sub eax, ebx
jb 0x4d64f6
inc eax
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + ebx], 0
jbe 0x4d64f2
mov dl, 1
jmp 0x4d64f6
inc ebx
dec eax
jne 0x4d64e5
test dl, dl
je 0x4d66b1
add esi, 0x10
lea ecx, [esi + 0xf0]
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4d6524
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4d66fe
jmp 0x4d652c
pop edx
pop eax
jle 0x4d66fe
lea eax, [ebp - 0x258]
mov edx, 0xf0
call fcn.004079d4
mov word [ebp - 0x250], 0x8a4d
movzx eax, word [ebp - 0x162]
add eax, dword [ebp - 0x18]
add eax, 0x1c
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x2c]
mov eax, 8
call fcn.004092a4
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0048b584
mov eax, dword [ebp - 0x24]
call fcn.00404a88
mov ebx, eax
mov byte [ebp - 0x245], bl
lea ecx, [ebp - 0x28]
xor edx, edx
mov dl, bl
mov eax, dword [ebp - 0x24]
call fcn.00422f6c
xor eax, eax
mov al, byte [ebp - 0x245]
mov ebx, 0xd4
sub ebx, eax
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004d2148
lea ecx, [ebp - 0x260]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
call fcn.0048b584
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x30]
call fcn.00404844
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404ce8
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x30]
call fcn.00404a90
mov eax, dword [ebp - 0x24]
call fcn.00404c88
mov ebx, eax
mov eax, ebx
call fcn.00409988
push eax
mov edx, ebx
lea eax, [ebp - 0x244]
pop ecx
call fcn.004079c4
mov eax, dword [ebp - 0x28]
call fcn.00404c88
mov ebx, eax
mov eax, ebx
call fcn.00409988
push eax
mov edx, ebx
lea eax, [ebp - 0x24e]
pop ecx
call fcn.004079c4
mov ebx, 7
lea edi, [ebp - 0x258]
mov eax, 0xff
call fcn.004030bc
mov byte [edi], al
mov eax, 0xff
call fcn.004030bc
mov byte [edi + 0xe8], al
inc edi
dec ebx
jne 0x4d6631
mov eax, dword [ebp - 0x1c]
add eax, esi
lea edx, [ebp - 0x258]
mov ecx, 0xf0
call fcn.004079c4
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407188
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407208
test eax, eax
je 0x4d6696
mov byte [ebp - 5], 1
jmp 0x4d66fe
lea eax, [ebp - 0x264]
call fcn.004d0500
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
call fcn.00404800
jmp 0x4d66fe
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jne 0x4d64d6
jmp 0x4d66fe
lea edx, [ebp - 0x268]
mov eax, 0x12a675c
call fcn.004cc154
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp + 8]
call fcn.00404800
jmp 0x4d66fe
lea edx, [ebp - 0x26c]
mov eax, 0x12a6774
call fcn.004cc154
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp + 8]
call fcn.00404800
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12a6747
lea eax, [ebp - 0x26c]
mov edx, 5
call fcn.004047d0
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004047d0
lea eax, [ebp - 0x1c]
mov edx, dword [0x12a62fc]
call fcn.00405c50
ret