Function at 0x10017a00
Capabilities:
Allocate or change rwx memory
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b7bd
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1c
lea ecx, [ebp - 0x60]
call fcn.10005020
lea ecx, [ebp - 0x60]
call fcn.10015ca0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.10015da0
movzx ecx, al
test ecx, ecx
jne 0x10017a7b
mov dword [ebp - 0x34c], 0x10200001
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x34c]
jmp 0x1001801a
lea ecx, [ebp - 0x60]
call fcn.10016280
mov dword [ebp - 0x344], eax
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x60]
call fcn.100162b0
movzx ecx, al
test ecx, ecx
jne 0x10017aa2
jmp 0x10017ab8
cmp dword [ebp - 0x64], 0xf
je 0x10017ab8
lea ecx, [ebp - 0x60]
call fcn.10016280
mov dword [ebp - 0x344], eax
jmp 0x10017ac7
lea ecx, [ebp - 0x60]
call fcn.10015e70
movzx edx, al
test edx, edx
jne 0x10017a89
cmp dword [ebp - 0x344], 0
jne 0x10017af4
mov dword [ebp - 0x350], 0x10200002
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x350]
jmp 0x1001801a
mov eax, dword [ebp - 0x344]
push eax
push 0
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x338], eax
cmp dword [ebp - 0x338], 0
jne 0x10017b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp - 0x354], 0x10200003
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x354]
jmp 0x1001801a
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10017b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x358], 0x10200005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x358]
jmp 0x1001801a
push 0x2cc
push 0
lea eax, [ebp - 0x334]
push eax
call fcn.10026310
add esp, 0xc
mov dword [ebp - 0x334], 0x10001
lea ecx, [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x10017c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x35c], 0x10200006
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x35c]
jmp 0x1001801a
push 0x40
push 0x3000
push 0x100
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
jne 0x10017c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x360], 0x10200004
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x360]
jmp 0x1001801a
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 0x83
mov byte [ebp - 0x3b], 0xec
mov byte [ebp - 0x3a], 4
mov byte [ebp - 0x39], 0xc7
mov byte [ebp - 0x38], 4
mov byte [ebp - 0x37], 0x24
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x32], 0x50
mov byte [ebp - 0x31], 0x51
mov byte [ebp - 0x30], 0x52
mov byte [ebp - 0x2f], 0x9c
mov byte [ebp - 0x2e], 0xb9
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0xb8
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0x51
mov byte [ebp - 0x23], 0xff
mov byte [ebp - 0x22], 0xd0
mov byte [ebp - 0x21], 0xa3
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0x9d
mov byte [ebp - 0x1b], 0x5a
mov byte [ebp - 0x1a], 0x59
mov byte [ebp - 0x19], 0x58
mov byte [ebp - 0x18], 0xc6
mov byte [ebp - 0x17], 5
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0xc3
mov dword [ebp - 0x340], 4
mov ecx, dword [ebp - 0x340]
add ecx, 2
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x27c]
mov dword [ebp + edx - 0x3a], eax
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx - 0x31], edx
mov eax, dword [ebp - 0x340]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + eax - 0x2c], ecx
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x33c]
mov dword [ebp + edx - 0x24], eax
mov ecx, dword [ebp - 0x33c]
add ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x340]
mov dword [ebp + edx - 0x1a], ecx
mov eax, dword [ebp - 0x33c]
add eax, dword [ebp - 0x340]
mov dword [ebp - 0x27c], eax
push 0
push 0x30
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x33c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10017e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x33c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x364], 0x10200007
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x364]
jmp 0x1001801a
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x10017ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x33c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x368], 0x10200008
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x368]
jmp 0x1001801a
push 0
push 0
push 0
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10017f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x36c], 0x10200009
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x36c]
jmp 0x1001801a
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x378], edx
mov byte [ebp - 0x41], 1
push 0
push 1
lea eax, [ebp - 0x41]
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, dword [ebp - 0x348]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x37c]
sbb edx, dword [ebp - 0x378]
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x380], edx
cmp dword [ebp - 0x380], 0
ja 0x10017f95
cmp dword [ebp - 0x384], 0x4e20
jbe 0x10017fb6
mov dword [ebp - 0x370], 0x1020000a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x370]
jmp 0x1001801a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [ebp - 0x41]
test eax, eax
jne 0x10017f43
push 0
push 4
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x33c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x8000
push 0
mov ecx, dword [ebp - 0x33c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x374], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10015d70
mov eax, dword [ebp - 0x374]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret