Function at 0x42f190
Capabilities:
Create thread
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x43b2f0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x6cc], ebx
call fcn.0043029f
cmp byte [0x43a0fb], 0
jne 0x42f1df
push 0x43a0f8
call fcn.0042ef40
add esp, 4
mov byte [0x43a0fb], al
test al, al
je 0x42f3cb
cmp byte [0x43a128], 0
jne 0x42f202
push 0x43a0fc
call fcn.0042edf0
add esp, 4
mov byte [0x43a128], al
test al, al
je 0x42f3cb
push 0
push esi
push ebx
call fcn.0042ec90
add esp, 0xc
cmp al, 1
je 0x42f602
lea eax, [ebp - 0x6c8]
push eax
push ebx
call fcn.0042eff0
add esp, 8
test al, al
je 0x42f3cb
cmp dword [0x43a12c], 0
jne 0x42f287
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x42f259
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42f3cb
push 0x438290
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43a12c], eax
test eax, eax
jne 0x42f287
push dword [ebp - 0x6c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6c8]
jmp 0x42f3c9
mov edi, dword [ebp - 0x6c8]
mov eax, dword [0x43a120]
push 0x40
push 0x1000
push 0x111
push 0
push edi
call eax
mov ebx, eax
mov dword [ebp - 0x6b4], ebx
test ebx, ebx
je 0x42f3ba
lea eax, [ebx + 0xd]
mov byte [ebp - 0x118], 0x68
mov dword [ebp - 0x117], eax
lea ecx, [ebx + 0xa]
mov eax, dword [0x43a12c]
sub eax, ecx
mov dword [ebp - 0x6b8], ecx
cmp byte [0x43a0f8], 0
mov byte [ebp - 0x113], 0xe8
mov dword [ebp - 0x112], eax
jne 0x42f300
cmp byte [0x43a0f9], 0
jne 0x42f300
mov byte [ebp - 0x10e], 0xc2
mov eax, 4
jmp 0x42f30c
mov byte [ebp - 0x10e], 0xeb
mov eax, 0xfe
push esi
mov word [ebp - 0x10d], ax
lea eax, [ebp - 0x10b]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x118]
push 0
push 0x111
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x42f3a8
cmp byte [0x43a0f8], 0
mov esi, dword [ebp - 0x6c4]
jne 0x42f3de
cmp byte [0x43a0f9], 0
jne 0x42f3de
push 0
push 0
push 0
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x6b8], eax
test eax, eax
je 0x42f3a8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x6b4]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x42f3a8
cmp dword [ebp - 0x6b4], 0
jne 0x42f5e4
push 0x4000
push 0x111
push ebx
push edi
call dword [0x43a124]
push dword [ebp - 0x6c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004302d1
mov esp, ebp
pop ebp
ret
push 0
push str.kernel32.dll
push dword [ebp - 0x6cc]
call fcn.0042ec90
add esp, 0xc
test al, al
je 0x42f3a8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x42f3cb
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6b0], 0x10007
push eax
push esi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x42f450
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4000
push 0x111
push dword [ebp - 0x6b4]
push edi
call dword [0x43a124]
push esi
jmp 0x42f3c0
mov ecx, 0xb3
lea esi, [ebp - 0x6b0]
lea edi, [ebp - 0x3e4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x6c4]
lea eax, [ebp - 0x3e4]
mov edi, dword [ebp - 0x6b4]
push eax
push esi
mov dword [ebp - 0x32c], edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x42f4ac
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4000
push 0x111
push edi
mov edi, dword [ebp - 0x6c8]
push edi
call dword [0x43a124]
push esi
jmp 0x42f3c0
mov eax, dword [ebp - 0x6b8]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0x32c], eax
je 0x42f55e
push esi
call edi
mov edi, eax
cmp edi, 1
jbe 0x42f4e4
nop
cmp edi, 0xffffffff
jae 0x42f553
push esi
dec ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp edi, 1
ja 0x42f4d0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x42f553
lea eax, [ebx - 1]
cmp edi, 1
cmovne eax, ebx
lea ebx, [eax + 1]
lea eax, [ebp - 0x3e4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x42f4ac
test ebx, ebx
jle 0x42f53e
nop word [eax + eax]
mov eax, ebx
dec ebx
test eax, eax
jle 0x42f553
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42f520
mov edi, dword [ebp - 0x6c8]
jmp 0x42f433
jns 0x42f553
mov eax, ebx
inc ebx
test eax, eax
jns 0x42f553
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x42f540
mov edi, dword [ebp - 0x6c8]
jmp 0x42f433
lea eax, [ebp - 0x6b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x42f5ae
test ebx, ebx
jle 0x42f58e
mov eax, ebx
dec ebx
test eax, eax
jle 0x42f553
push esi
call edi
cmp eax, 0xffffffff
jne 0x42f574
mov edi, dword [ebp - 0x6c8]
jmp 0x42f433
jns 0x42f553
mov eax, ebx
inc ebx
test eax, eax
jns 0x42f553
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x42f590
mov edi, dword [ebp - 0x6c8]
jmp 0x42f433
test ebx, ebx
jle 0x42f5c3
mov eax, ebx
dec ebx
test eax, eax
jle 0x42f5d8
push esi
call edi
cmp eax, 0xffffffff
jne 0x42f5b2
jmp 0x42f5d8
jns 0x42f5d8
mov eax, ebx
inc ebx
test eax, eax
jns 0x42f5d8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x42f5c5
mov ebx, dword [ebp - 0x6b4]
mov edi, dword [ebp - 0x6c8]
push 0x4000
push 0x111
push ebx
push edi
call dword [0x43a124]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004302d1
mov esp, ebp
pop ebp
ret