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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035f95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x48], ecx
push 0x100371c0
lea ecx, [ebp - 0x78]
call fcn.10002770
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x10005474
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xa
jge 0x1000548a
call fcn.10028471
push eax
lea ecx, [ebp - 0x78]
call fcn.10003450
jmp 0x1000546b
push 0x100371c4
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.10001530
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10004af0
lea ecx, [ebp - 0x60]
call fcn.10004440
push eax
call fcn.100015c0
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.1001e140
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.10028466
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001e120
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10025c00
add esp, 0xc
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10005534
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002e70
mov eax, dword [ebp - 0x30]
jmp 0x100056fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x10005575
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002e70
mov eax, dword [ebp - 0x34]
jmp 0x100056fd
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
je 0x100055b2
xor edx, edx
jne 0x10005584
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002e70
mov eax, dword [ebp - 0x38]
jmp 0x100056fd
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 0x10]
cmp dword [edx + ecx + 0x78], 0
je 0x100055ee
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002e70
mov eax, dword [ebp - 0x3c]
jmp 0x100056fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x14]
lea eax, [ecx + edx + 0xf8]
mov dword [ebp - 0x1c], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10005642
xor edx, edx
jne 0x10005625
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10005676
xor edx, edx
jne 0x10005648
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002e70
mov eax, dword [ebp - 0x40]
jmp 0x100056fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.10025c00
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x1000569f
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x24], eax
jge 0x100056d9
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x18]
push eax
call fcn.10025c00
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28
mov dword [ebp - 0x1c], ecx
jmp 0x10005696
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002e70
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4