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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x4180a1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x6cc], ebx
call fcn.0040207e
cmp byte [0x41691b], 0
jne 0x40153f
push 0x416918
call fcn.004012b0
add esp, 4
mov byte [0x41691b], al
test al, al
je 0x401729
cmp byte [0x416948], 0
jne 0x401562
push 0x41691c
call fcn.00401160
add esp, 4
mov byte [0x416948], al
test al, al
je 0x401729
push 0
push esi
push ebx
call section..text
add esp, 0xc
cmp al, 1
je 0x401962
lea eax, [ebp - 0x6c8]
push eax
push ebx
call fcn.00401360
add esp, 8
test al, al
je 0x401729
cmp dword [0x41694c], 0
jne 0x4015e7
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4015b9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401729
push 0x40f2a4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41694c], eax
test eax, eax
jne 0x4015e7
push dword [ebp - 0x6c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6c8]
jmp 0x401727
mov edi, dword [ebp - 0x6c8]
push 0x40
push 0x1000
push 0x111
push 0
push edi
call dword [0x416940]
mov ebx, eax
mov dword [ebp - 0x6b4], ebx
test ebx, ebx
je 0x401718
lea eax, [ebx + 0xd]
mov byte [ebp - 0x118], 0x68
mov dword [ebp - 0x117], eax
lea ecx, [ebx + 0xa]
mov eax, dword [0x41694c]
sub eax, ecx
mov dword [ebp - 0x6b8], ecx
cmp byte [0x416918], 0
mov byte [ebp - 0x113], 0xe8
mov dword [ebp - 0x112], eax
jne 0x40165f
cmp byte [0x416919], 0
jne 0x40165f
mov byte [ebp - 0x10e], 0xc2
mov eax, 4
jmp 0x40166b
mov byte [ebp - 0x10e], 0xeb
mov eax, 0xfe
push esi
mov word [ebp - 0x10d], ax
lea eax, [ebp - 0x10b]
push 0x104
push eax
call fcn.00405400
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 0x401706
cmp byte [0x416918], 0
mov esi, dword [ebp - 0x6c4]
jne 0x40173c
cmp byte [0x416919], 0
jne 0x40173c
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 0x401706
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 0x401706
cmp dword [ebp - 0x6b4], 0
jne 0x401944
push 0x4000
push 0x111
push ebx
push edi
call dword [0x416944]
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.004020b0
mov esp, ebp
pop ebp
ret
push 0
push str.kernel32.dll
push dword [ebp - 0x6cc]
call section..text
add esp, 0xc
test al, al
je 0x401706
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x401729
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 0x4017ae
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4000
push 0x111
push dword [ebp - 0x6b4]
push edi
call dword [0x416944]
push esi
jmp 0x40171e
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 0x40180a
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4000
push 0x111
push edi
mov edi, dword [ebp - 0x6c8]
push edi
call dword [0x416944]
push esi
jmp 0x40171e
mov eax, dword [ebp - 0x6b8]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0x32c], eax
je 0x4018be
push esi
call edi
mov edi, eax
cmp edi, 1
jbe 0x401844
nop dword [eax]
cmp edi, 0xffffffff
jae 0x4018b3
push esi
dec ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp edi, 1
ja 0x401830
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4018b3
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 0x40180a
test ebx, ebx
jle 0x40189e
nop word [eax + eax]
mov eax, ebx
dec ebx
test eax, eax
jle 0x4018b3
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x401880
mov edi, dword [ebp - 0x6c8]
jmp 0x401791
jns 0x4018b3
mov eax, ebx
inc ebx
test eax, eax
jns 0x4018b3
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4018a0
mov edi, dword [ebp - 0x6c8]
jmp 0x401791
lea eax, [ebp - 0x6b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x40190e
test ebx, ebx
jle 0x4018ee
mov eax, ebx
dec ebx
test eax, eax
jle 0x4018b3
push esi
call edi
cmp eax, 0xffffffff
jne 0x4018d4
mov edi, dword [ebp - 0x6c8]
jmp 0x401791
jns 0x4018b3
mov eax, ebx
inc ebx
test eax, eax
jns 0x4018b3
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4018f0
mov edi, dword [ebp - 0x6c8]
jmp 0x401791
test ebx, ebx
jle 0x401923
mov eax, ebx
dec ebx
test eax, eax
jle 0x401938
push esi
call edi
cmp eax, 0xffffffff
jne 0x401912
jmp 0x401938
jns 0x401938
mov eax, ebx
inc ebx
test eax, eax
jns 0x401938
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x401925
mov ebx, dword [ebp - 0x6b4]
mov edi, dword [ebp - 0x6c8]
push 0x4000
push 0x111
push ebx
push edi
call dword [0x416944]
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.004020b0
mov esp, ebp
pop ebp
ret