Function at 0x10005cd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Patch process command line
Resume thread
Suspend thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000943d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x340
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x33c], ecx
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x344], eax
mov eax, dword [ebx + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
push 0x1000a350
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x10005dc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push edi
call esi
push str.NtQuerySystemInformation
push edi
mov dword [ebp - 0x50], eax
call esi
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], eax
je 0x10005dc0
test eax, eax
je 0x10005dc0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], 0x10000
mov dword [ebp - 0x60], 0
call fcn.100054e0
mov edi, dword [ebp - 0x33c]
mov dword [ebp - 4], 0
test edi, edi
je 0x10005e1e
cmp dword [ebp - 0x60], 0
jne 0x10005de3
lea ecx, [ebp - 0x64]
call fcn.100054e0
test al, al
je 0x10005e1e
push edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, dword [ebp - 0x64]
mov edi, eax
mov esi, dword [edx]
lea ecx, [esi + edx]
cmp ecx, edx
je 0x10005e13
nop dword [eax + eax]
cmp dword [edx + 0x44], edi
je 0x10005e53
add edx, esi
mov dword [ebp - 0x64], edx
mov esi, dword [edx]
lea eax, [edx + esi]
cmp eax, edx
jne 0x10005e00
cmp dword [edx + 0x44], edi
je 0x10005e53
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov esi, 0x10200001
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x10005e33
push eax
call fcn.1000829d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10008286
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [ebp - 0x60], 0
lea esi, [edx + 0xb8]
mov dword [ebp - 0x5c], esi
jne 0x10005e6e
mov dword [ebp - 0x340], 0
jmp 0x10005e77
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x60], 0
jne 0x10005e91
lea ecx, [ebp - 0x64]
call fcn.100054e0
test al, al
je 0x10005ebf
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
jmp 0x10005e97
cmp dword [esi + 0x38], 0xf
jne 0x10005ed3
xor eax, eax
cmp dword [edx + 4], eax
je 0x10005eb6
lea ecx, [edx + 0xdc]
mov edi, dword [esi + 0x24]
inc eax
cmp dword [ecx], edi
mov edi, dword [edx + 4]
je 0x10005ec7
add ecx, 0x40
cmp eax, edi
jne 0x10005ea4
lea eax, [edx + 0xb8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x340]
jmp 0x10005edc
cmp eax, edi
je 0x10005eb6
add esi, 0x40
mov dword [ebp - 0x5c], esi
jmp 0x10005e77
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x340], eax
test eax, eax
jne 0x10005eea
mov esi, 0x10200002
jmp 0x10005e23
push eax
push 0
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x10005f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
mov esi, 0x10200003
mov dword [ecx], eax
jmp 0x10005e23
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10005f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10200005
jmp 0x10005e23
push 0x2c8
lea eax, [ebp - 0x334]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x338], 0x10001
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x10005f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10200006
jmp 0x10005e23
push 0x40
push 0x3000
push 0x100
push 0
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x10005fd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10200004
jmp 0x10005e23
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x3a], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x31], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x2c], eax
lea eax, [edi + 6]
mov dword [ebp - 0x1a], eax
lea eax, [edi + 4]
push 0
push 0x30
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x44]
push eax
push edi
push dword [ebp - 0x33c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xc704ec83
mov word [ebp - 0x3c], 0x2404
mov dword [ebp - 0x36], 0x9c525150
mov byte [ebp - 0x32], 0xb9
mov byte [ebp - 0x2d], 0xb8
mov dword [ebp - 0x28], 0xa3d0ff51
mov dword [ebp - 0x20], 0x58595a9d
mov word [ebp - 0x1c], 0x5c6
mov word [ebp - 0x16], 0xc300
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000608f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10200007
jmp 0x10005e23
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x100060db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10200008
jmp 0x10005e23
push 0
push 0
push 0
push dword [ebp - 0x340]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1000612c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10200009
jmp 0x10005e23
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x340], edx
mov byte [ebp - 0x45], 1
nop
push 0
push 1
lea eax, [ebp - 0x45]
push eax
lea eax, [edi + 6]
push eax
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x348]
sbb edx, dword [ebp - 0x340]
test edx, edx
ja 0x100061bf
jb 0x10006187
cmp eax, 0x7d0
ja 0x100061bf
push 0xa
call esi
cmp byte [ebp - 0x45], 0
jne 0x10006150
mov esi, dword [ebp - 0x33c]
push 0
push 4
push dword [ebp - 0x34c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor esi, esi
jmp 0x10005e23
mov esi, 0x1020000a
jmp 0x10005e23