Function at 0x403a74
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
and dword [ebp - 0x118], 0
and dword [ebp - 0x154], 0
and dword [ebp - 0x114], 0
and dword [ebp - 4], 0
and dword [ebp - 0x15c], 0
and dword [ebp - 0x158], 0
push 0x38
push 0
lea eax, [ebp - 0x150]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00402fde
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x154]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x114], eax
push str.MmGetSystemRoutineAddress
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x150], eax
push str.KeInsertQueueApc
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x148], eax
push str.PsTerminateSystemThread
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x118], eax
and dword [ebp - 0x160], 0
jmp 0x403b4b
mov eax, dword [ebp - 0x160]
inc eax
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0x100
jae 0x403b9c
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 0xffffffff
jne 0x403b8d
mov eax, dword [ebp - 0x118]
cmp dword [eax + 1], 0xe8500875
jne 0x403b8d
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 5]
mov ecx, dword [ebp - 0x118]
lea eax, [ecx + eax + 9]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
jmp 0x403b3e
cmp dword [0x41252c], 5
jne 0x403bcc
cmp dword [0x412530], 1
ja 0x403bcc
push str.RtlRemoveUnicodePrefix
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub eax, 0x4000
mov dword [ebp - 0x118], eax
jmp 0x403bd8
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x118], eax
and dword [ebp - 0x164], 0
jmp 0x403bee
mov eax, dword [ebp - 0x164]
inc eax
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xea60
jae 0x403c4c
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 0x6a
jne 0x403c3d
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax + 1]
cmp eax, 2
jne 0x403c3d
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 2]
and eax, 0xfff0f0ff
cmp eax, 0xe8505053
jne 0x403c3d
mov eax, dword [ebp - 0x118]
add eax, 6
mov dword [ebp - 0x144], eax
jmp 0x403c4c
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
jmp 0x403be1
push 0xa
push dword [ebp - 0x14c]
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xa
push dword [ebp - 0x148]
lea eax, [ebp - 0x136]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x150]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x144], eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x41252c], 5
jne 0x403d22
mov eax, dword [0x412530]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 1
je 0x403cf6
cmp dword [ebp - 0x168], 2
je 0x403d0c
jmp 0x403d20
mov dword [ebp - 0x12c], 0x190
mov dword [ebp - 0x128], 0x22c
jmp 0x403d20
mov dword [ebp - 0x12c], 0x180
mov dword [ebp - 0x128], 0x224
jmp 0x403d55
cmp dword [0x412530], 0
jne 0x403d41
mov dword [ebp - 0x12c], 0x168
mov dword [ebp - 0x128], 0x248
jmp 0x403d55
mov dword [ebp - 0x12c], 0x188
mov dword [ebp - 0x128], 0x268
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x124], eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x38
lea eax, [ebp - 0x150]
push eax
push 0x222407
push dword [0x40fbb0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push 0
push 0
push 0x403a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x158], eax
push 0xe1f27272
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp + 8], 0
je 0x403dd3
cmp dword [ebp + 0xc], 0
je 0x403dd3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x120]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x11c]
mov dword [eax], ecx
leave
ret 8