Function at 0x405ce0
Capabilities:
Check for time delay via queryperformancecounter
Create process on windows
Create thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x3e08
call fcn.0041a1a0
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x3e04], eax
xorps xmm0, xmm0
mov dword [esp + 0x48], 0x44
push esi
push edi
mov edi, dword [0x447808]
mov ecx, edi
mov dword [esp + 0x10], edi
movaps xmmword [esp + 0x40], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
call fcn.00405a30
lea eax, [edi + 0x12cb1c20]
push eax
push 4
push edi
push 0x401770
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 0x12cb1c1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x41bef8
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405dad
test dx, dx
je 0x405da9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405dad
add eax, 4
add ecx, 4
test dx, dx
jne 0x405d87
xor eax, eax
jmp 0x405db2
sbb eax, eax
or eax, 1
xor esi, esi
mov ecx, 0x41bef8
test eax, eax
cmovne esi, edi
add edi, 0x800
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405dec
test dx, dx
je 0x405de8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405dec
add eax, 4
add ecx, 4
test dx, dx
jne 0x405dc6
xor ecx, ecx
jmp 0x405df1
sbb ecx, ecx
or ecx, 1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 1
push 1
xor eax, eax
test ecx, ecx
push 0
push 0
cmovne eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x406391
push 0xffffffffffffffff
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x40637d
lea eax, [esp + 0x28]
mov dword [esp + 0x14], 0x10002
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x98]
push dword [eax*4 + 0x41c714]
push eax
push dword [esp + 0xa8]
push dword [esp + 0xa8]
push 0
push 0x3e8
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.0041a160
push dword [0x447814]
push dword [0x447810]
push edx
push eax
call fcn.0041a0b0
push eax
push 0x41b434
push 0xffffffffffffffff
lea eax, [esp + 0xe24]
push 0x800
push eax
call fcn.00401570
add esp, 0x24
test byte [0x44780c], 0x10
je 0x405eee
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0xe08]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
lock inc dword [0x447820]
mov eax, dword [esp + 0x98]
dec eax
cmp eax, 8
ja case.default.0x405f06
jmp dword [eax*4 + 0x406a3c]
push dword [esp + 0xb0]
lea eax, [esp + 0x160c]
push dword [esp + 0xa8]
push dword [esp + 0xfc]
push 0x41b3f8
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
add esp, 0x1c
test byte [0x44780c], 0x10
je 0x405f76
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x1608]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
cmp dword [esp + 0xf4], 0
je 0x406059
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x14], 0x80010001
cmp eax, 0x80000003
ja 0x406014
je 0x405fac
sub eax, 0x4000001e
je 0x405feb
sub eax, 1
jne case.0x405f06.9
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0xa4]
mov dword [esp + 0x1c], 0x80010001
call fcn.004052d0
add esp, 8
test eax, eax
je case.0x405f06.9
mov dword [esp + 0x14], 0x10002
jmp case.0x405f06.9
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0xa4]
mov dword [esp + 0x1c], 0x10001
call fcn.004058f0
jmp 0x405fd3
cmp eax, 0x80000004
jne case.0x405f06.9
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0xa4]
call fcn.004058f0
add esp, 8
mov ecx, 0x10001
test eax, eax
mov eax, 0x10002
cmovne ecx, eax
mov dword [esp + 0x14], ecx
jmp case.0x405f06.9
test byte [0x44780c], 0x40
je 0x406076
push 0
push 0x41b7df
push 0x41b7df
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test byte [0x44780c], 1
je 0x406093
push dword [esp + 0x9c]
push 0x41bf08
call fcn.00401530
add esp, 8
test byte [0x44780c], 0x20
je 0x4060b4
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x10]
push 0x41bf2c
call fcn.00404390
add esp, 4
push dword [esp + 0x9c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4060ff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test byte [0x44780c], 1
je 0x4060f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0xa0]
push 0x41bf34
call fcn.00401530
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp case.0x405f06.9
push dword [esp + 0xac]
lea eax, [esp + 0x60c]
push 0x41bf50
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
mov eax, dword [0x44780c]
add esp, 0x14
test al, 0x10
je 0x40619a
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x608]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
mov eax, dword [0x44780c]
test al, 0x10
je 0x40619a
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
push 0x41bd70
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
push 0x2c8
lea eax, [esp + 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0xf8], 0x10007
lea eax, [esp + 0xf8]
push eax
push dword [esp + 0xa8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push dword [esp + 0x1b0]
lea eax, [esp + 0x1e0c]
push dword [esp + 0x1ac]
push str.Eax:0x_x_Eip:0x_x
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
add esp, 0x18
test byte [0x44780c], 0x10
je 0x406233
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x1e08]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x1c], eax
mov eax, dword [0x447824]
push 0xffffffffffffffff
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3d4]
push eax
mov byte [esp + 0x3d8], 0
call fcn.004033c0
add esp, 0x10
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [esp + 0x34]
lea eax, [esp + 0x3cc]
push dword [esp + 0x34]
push eax
push esi
push edi
push dword [esp + 0x30]
push 0
push 0x3e8
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.0041a160
push dword [0x447814]
push dword [0x447810]
push edx
push eax
call fcn.0041a0b0
push eax
push 0x41ba14
push 0xffffffffffffffff
lea eax, [esp + 0x262c]
push 0x800
push eax
call fcn.00401570
add esp, 0x2c
lea eax, [esp + 0x2608]
push eax
push 0x41ba0c
push dword [0x447818]
call fcn.00407010
mov eax, dword [0x447824]
add esp, 0xc
push dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test byte [0x44780c], 0x10
je 0x40634d
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
push 0x41bf94
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
push dword [esp + 0x14]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push 0xffffffffffffffff
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
jne 0x405e42
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41bf98
push 0xffffffffffffffff
lea eax, [esp + 0x610]
push 0x800
push eax
call fcn.00401570
add esp, 0x10
test byte [0x44780c], 0x10
je 0x4063e5
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x608]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [esp + 0x3e0c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00419265
mov esp, ebp
pop ebp
ret
push 0
push 0x800
lea eax, [esp + 0x2e10]
push eax
push dword [esp + 0xb0]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
push 0
push 0
push 0x200
lea eax, [esp + 0x414]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x2e1c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
lea esi, [esp + 0x408]
push 4
sbb al, al
and byte [esp + 0x60b], al
mov eax, esi
push 0x41bf58
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov edi, dword [esp + 0xa8]
lea ecx, [esp + 0x418]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0xb0]
cmovne ecx, esi
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
mov eax, dword [esi + 0x12cb1c18]
mov dword [esp + 0x20], ecx
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
movzx eax, di
imul eax, eax, 0x41c
add esi, eax
cmp dword [esi + 0xeaf1c18], 0
jne 0x406554
push edi
push 0
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xeaf1c18], eax
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push dword [esp + 0x20]
mov dword [esi + 0xeaf1c14], edi
mov dword [esi + 0xeaf1c1c], eax
lea eax, [esi + 0xeaf1c24]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
lea eax, [esi + 0xeaf1c20]
push eax
push dword [esi + 0xeaf1c18]
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0xeaf2028]
mov dword [eax + 4], eax
mov edx, edi
mov dword [eax], eax
mov dword [esi + 0xeaf2024], 1
mov esi, dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.004034c0
push dword [esp + 0x28]
mov edx, edi
mov edi, dword [esp + 0x1c]
push esi
push dword [esp + 0x28]
mov ecx, edi
call fcn.00403e10
add esp, 0x14
jmp 0x406558
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x12cb1c18]
inc dword [edi + 0x12cb1c14]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [eax]
call esi
movzx eax, word [esp + 0x9c]
imul ecx, eax, 0x41c
add ecx, edi
push dword [ecx + 0xeaf1c20]
lea eax, [ecx + 0xeaf1c24]
push eax
push dword [ecx + 0xeaf1c1c]
lea eax, [esp + 0x614]
push 0x41bf60
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
add esp, 0x1c
test byte [0x44780c], 0x10
je 0x406312
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x608]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
jmp case.0x405f06.9
push dword [esp + 0xa4]
lea eax, [esp + 0x60c]
push 0x41bf6c
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
add esp, 0x14
test byte [0x44780c], 0x10
je 0x40634d
jmp 0x4065c0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x9c]
push 0xffffffffffffffff
mov eax, dword [edi + 0x12cb1c18]
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
movzx eax, si
imul esi, eax, 0x41c
mov eax, dword [esi + edi + 0xeaf1c18]
add esi, edi
mov dword [esp + 0x20], esi
test eax, eax
je 0x4066db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0xeaf2028]
mov dword [esi + 0xeaf1c14], 0
mov esi, dword [eax]
mov dword [esp + 0x18], esi
cmp esi, eax
je 0x4066cd
lea edi, [esi + 0x21c]
mov eax, esi
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
cmp esi, edi
je 0x4066a7
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, edi
jne 0x406693
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push eax
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x24]
add esp, 4
lea eax, [ecx + 0xeaf2028]
cmp esi, eax
jne 0x406681
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [eax + 0xeaf2024], 0
mov eax, dword [edi + 0x12cb1c18]
dec dword [edi + 0x12cb1c14]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [eax]
call esi
push dword [esp + 0xa4]
lea eax, [esp + 0x60c]
push 0x41bf6c
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x14
test byte [0x44780c], 0x10
je 0x40634d
jmp 0x4065c0
push 0
push 0x800
lea eax, [esp + 0x2e10]
push eax
push dword [esp + 0xb0]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
je case.0x405f06.9
push 0
push 0
push 0x200
lea eax, [esp + 0x414]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x2e1c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb al, al
and byte [esp + 0x607], al
lea eax, [esp + 0x408]
push eax
push dword [esp + 0xac]
lea eax, [esp + 0x610]
push 0x41bf74
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
add esp, 0x18
test byte [0x44780c], 0x10
je 0x4067e6
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x608]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
push 4
lea eax, [esp + 0x40c]
push 0x41bf58
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x418]
add esp, 0xc
test eax, eax
lea eax, [esp + 0x408]
cmovne ecx, eax
push dword [esp + 0xa8]
push ecx
push dword [esp + 0xa8]
mov ecx, dword [esp + 0x1c]
call fcn.00403e10
add esp, 0xc
jmp case.0x405f06.9
push dword [esp + 0xa4]
lea eax, [esp + 0x60c]
push 0x41bf50
push 0xffffffffffffffff
push 0x800
push eax
call fcn.00401570
add esp, 0x14
test byte [0x44780c], 0x10
je 0x406893
mov eax, dword [0x44781c]
push 0xffffffffffffffff
push dword [eax]
call edi
lea eax, [esp + 0x608]
push eax
push 0x41bd60
push dword [0x447828]
call fcn.00407010
mov eax, dword [0x44781c]
add esp, 0xc
push dword [eax]
call esi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0x9c]
push 0xffffffffffffffff
mov eax, dword [eax + 0x12cb1c18]
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
mov ecx, dword [esp + 0x10]
movzx eax, si
imul eax, eax, 0x41c
add eax, 0xeaf2028
add eax, ecx
mov esi, dword [eax]
mov dword [esp + 0x18], esi
cmp esi, eax
je 0x406938
cmp dword [esi + 8], edi
je 0x4068f2
mov esi, dword [esi]
mov dword [esp + 0x18], esi
cmp esi, eax
jne 0x4068d4
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x12cb1c18]
jmp 0x406308
mov edi, dword [esi + 0x21c]
lea eax, [esi + 0x21c]
mov dword [esp + 0x20], eax
cmp edi, eax
je 0x406924
mov esi, eax
nop dword [eax + eax]
push edi
mov edi, dword [edi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp edi, esi
jne 0x406910
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x12cb1c18]
jmp 0x406308
test byte [0x44780c], 4
je case.0x405f06.9
movzx eax, word [esp + 0xaa]
push eax
call fcn.00419478
movzx ecx, word [esp + 0xae]
add esp, 4
mov esi, eax
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push ecx
movzx ecx, word [esp + 0xa4]
imul eax, ecx, 0x41c
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0xb0]
push dword [eax + ecx + 0xeaf1c18]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4069f2
cmp word [esp + 0xa8], 0
je 0x4069e9
push 0
push 0
push 0x200
lea eax, [esp + 0x414]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb al, al
and byte [esp + 0x607], al
lea eax, [esp + 0x408]
push eax
jmp 0x4069ea
push esi
call fcn.00401530
add esp, 4
push esi
call fcn.00419473
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esp, 4
jmp case.0x405f06.9
push 0x41bf7c
push 0xffffffffffffffff
lea eax, [esp + 0x610]
mov dword [esp + 0x1c], 0x80010001
push 0x800
push eax
call fcn.00401570
add esp, 0x10
test byte [0x44780c], 0x10
je 0x40634d
jmp 0x4065c0