Function at 0x100032d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
mov eax, dword [0x1001d040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], eax
mov esi, ecx
test edi, edi
je 0x10003603
push 0xf8
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.1000a480
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
push 0x1c
push eax
push edi
push esi
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10003603
push 0
push 0x40
lea eax, [ebp - 0x17c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10003603
mov eax, 0x5a4d
cmp word [ebp - 0x17c], ax
jne 0x100035fc
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x1c]
ja 0x100035fc
cmp eax, 0x40
jb 0x100035fc
push 0
push 0xf8
lea ecx, [ebp - 0x13c]
add eax, edi
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10003603
cmp dword [ebp - 0x13c], 0x4550
jne 0x100035fc
mov eax, dword [ebp - 0x140]
add eax, edi
je 0x10003603
push 0x678
lea eax, [ebp - 0x7f4]
push 0
push eax
call fcn.1000a480
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x7d8]
add esp, 0xc
mov dword [ebp - 0x7f4], 0x678
mov dword [ebp - 0x7e4], edi
mov dword [ebp - 0x7f0], 0x40
push 0
push 0x40
push eax
push edi
push esi
call ebx
test eax, eax
je 0x1000360a
mov eax, dword [ebp - 0x79c]
lea ecx, [ebp - 0x798]
add eax, dword [ebp - 0x7e4]
push 0
push 0x18
push ecx
push eax
push esi
mov dword [ebp - 0x7e0], eax
mov dword [ebp - 0x7ec], 0x18
call ebx
test eax, eax
je 0x1000360a
movzx eax, word [ebp - 0x792]
lea ecx, [eax + eax*4]
movzx eax, word [ebp - 0x784]
lea eax, [eax + ecx*8]
add eax, 0x18
mov dword [ebp - 0x7ec], eax
cmp eax, 0x608
ja 0x1000360a
push 0
push eax
lea eax, [ebp - 0x798]
push eax
push dword [ebp - 0x7e0]
push esi
call ebx
test eax, eax
je 0x1000360a
mov ax, word [ebp - 0x780]
mov ecx, 0x10b
cmp ax, cx
jne 0x100034b1
mov eax, dword [ebp - 0x6b0]
test eax, eax
je 0x100034d8
cmp dword [ebp - 0x6ac], 0
je 0x100034d8
add eax, edi
mov dword [ebp - 0x7dc], eax
jmp 0x100034de
mov ecx, 0x20b
cmp ax, cx
jne 0x100034d8
mov eax, dword [ebp - 0x6a0]
test eax, eax
je 0x100034d8
cmp dword [ebp - 0x69c], 0
je 0x100034d8
add eax, edi
mov dword [ebp - 0x7dc], eax
jmp 0x100034de
mov eax, dword [ebp - 0x7dc]
test eax, eax
je 0x10003503
push 0
push 0x14
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x7e8], 0x14
push ecx
push eax
push esi
call ebx
test eax, eax
je 0x1000360a
cmp dword [ebp + 8], 0
je 0x100035f2
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp - 0xc]
call fcn.100029d0
add esp, 8
test eax, eax
je 0x1000360a
mov edi, dword [ebp - 0x7dc]
test edi, edi
je 0x100035ca
mov eax, dword [ebp - 0x180]
movups xmm0, xmmword [ebp - 0x190]
and eax, 0xfffffffe
mov dword [ebp - 0x2c], 0
push 0x1c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x20], xmm0
push edi
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1000360a
test byte [ebp - 0x30], 0xf0
lea eax, [ebp - 0xc]
push eax
mov ecx, 4
mov eax, 0x40
cmove eax, ecx
push eax
push 0x14
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
call edi
test eax, eax
je 0x1000360a
push 0
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x7dc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000360a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x14
push dword [ebp - 0x7dc]
push esi
call edi
test eax, eax
je 0x1000360a
push ecx
lea eax, [ebp - 0x7f4]
mov ecx, esi
push eax
call fcn.10003620
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10008800
mov esp, ebp
pop ebp
ret 0xc
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000360a
push 0xc1
call ebx
push 0x10dd
call ebx
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008800
mov esp, ebp
pop ebp
ret 0xc