Function at 0x100121e0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0x40
jb 0x1001221a
cmp dword [ebp - 8], 0
jne 0x10012225
mov eax, dword [ebp - 0x8c]
jmp 0x100124e1
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x1001223e
mov eax, dword [ebp - 0x8c]
jmp 0x100124e1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
cmp dword [ebp + 0xc], ecx
jae 0x1001225a
mov eax, dword [ebp - 0x8c]
jmp 0x100124e1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x1001227c
mov eax, dword [ebp - 0x8c]
jmp 0x100124e1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x16]
and ecx, 0x2000
jne 0x100122a6
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x16]
and ecx, 2
je 0x100122a6
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
cmp ecx, 0xe0
je 0x100122b1
mov eax, dword [ebp - 0x8c]
jmp 0x100124e1
mov eax, dword [ebp - 0x14]
add eax, 0xf8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100015e6
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x100122e5
mov eax, dword [ebp - 0x8c]
jmp 0x100124e1
mov esi, esp
push 0x40
push 0x1000
mov eax, dword [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
push eax
push 0
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.1000272f
add esp, 0xc
cmp dword [ebp - 0x68], 0
je 0x100124db
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0
jmp 0x1001233b
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x2c], ecx
jge 0x10012375
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x14], 0
je 0x10012373
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0x14]
cmp edx, dword [ebp - 0x38]
jae 0x10012373
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x38], edx
jmp 0x10012332
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.100026da
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x68]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
add eax, 0xf8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x54]
push eax
call fcn.10003a1c
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x2c], 0
jmp 0x100123f2
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x2c], ecx
jge 0x100124d1
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + eax + 0xc], 0
je 0x10012421
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x68]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x44], edx
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + eax + 0x10], 0
je 0x100124ae
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + eax + 0x10]
push edx
imul eax, dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.100026da
add esp, 0xc
imul eax, dword [ebp - 0x2c], 0x28
imul ecx, dword [ebp - 0x2c], 0x28
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x5c]
mov eax, dword [edx + eax + 8]
cmp eax, dword [esi + ecx + 0x10]
jae 0x1001248e
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
push ecx
imul edx, dword [ebp - 0x2c], 0x28
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + edx + 0x10]
push ecx
call fcn.10003a1c
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
jmp 0x100124ac
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
push ecx
imul edx, dword [ebp - 0x2c], 0x28
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + edx + 8]
push ecx
call fcn.10003a1c
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
jmp 0x100124cc
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
push ecx
imul edx, dword [ebp - 0x2c], 0x28
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + edx + 8]
push ecx
call fcn.10003a1c
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
jmp 0x100123e9
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x8c]
pop edi
pop esi
pop ebx
add esp, 0x150
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 0x18