Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
lea eax, [esp + 8]
xor esi, esi
mov dword [eax + 4], esi
mov dword [eax], str.ntdll.dll
push eax
push 1
push esi
push 0x41816c
call fcn.00418318
add esp, 0x10
mov edi, eax
or eax, edx
je 0x401445
mov ebx, edx
mov dword [esp + 0xc], edx
mov edx, 2
lea eax, [esp + 8]
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.NtAllocateVirtualMemory
mov ecx, 0x418240
push eax
push edx
push esi
push ecx
call fcn.00418318
add esp, 0x10
mov dword [esp + 0x74], eax
lea eax, [esp + 8]
mov dword [esp + 0x70], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.NtFreeVirtualMemory
push eax
mov eax, 2
push eax
push esi
mov eax, 0x418240
push eax
call fcn.00418318
add esp, 0x10
mov dword [esp + 0x68], eax
lea eax, [esp + 8]
mov dword [esp + 0x64], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.NtWriteVirtualMemory
push eax
mov eax, 2
push eax
push esi
mov eax, 0x418240
push eax
call fcn.00418318
add esp, 0x10
mov dword [esp + 0x58], eax
lea eax, [esp + 8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.NtProtectVirtualMemory
push eax
mov eax, 2
push eax
push esi
mov eax, 0x418240
push eax
call fcn.00418318
add esp, 0x10
mov dword [esp + 8], edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x60], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.RtlCreateUserThread
push eax
mov eax, 2
push eax
push esi
mov esi, dword [esp + 0x64]
mov eax, 0x418240
push eax
call fcn.00418318
add esp, 0x10
mov ecx, dword [esp + 0x74]
or ecx, dword [esp + 0x70]
je 0x401445
mov ecx, dword [esp + 0x68]
or ecx, dword [esp + 0x64]
je 0x401445
mov ecx, esi
or ecx, edi
je 0x401445
mov ecx, dword [esp + 0x60]
or ecx, dword [esp + 0x5c]
je 0x401445
mov ecx, eax
or ecx, edx
je 0x401445
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movaps xmm0, xmmword [0x41f6d0]
lea ecx, [esp + 0x90]
xor esi, esi
lea edi, [esp + 8]
mov dword [esp + 0x78], edx
mov dword [ecx + 4], esi
mov dword [esp + 0xc], esi
lea eax, [eax + 0x600]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], esi
mov dword [ecx], eax
mov eax, esp
mov dword [esp + 0x10], eax
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
movups xmmword [esp + 0x28], xmm0
push edi
push 6
push dword [esp + 0x78]
push dword [esp + 0x80]
call fcn.00418318
add esp, 0x10
test eax, eax
js 0x4013e0
mov eax, dword [esp]
movaps xmm1, xmmword [0x41f6e0]
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
lea edx, [esp + 0x98]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], esi
mov dword [edx + 4], esi
mov dword [edx], esi
mov dword [esp + 0x10], eax
mov eax, 0x41f7aa
mov dword [esp + 0x14], ecx
movd xmm0, eax
movss xmm1, xmm0
movups xmmword [esp + 0x18], xmm1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
push edi
push 5
mov ebx, dword [esp + 0x74]
push ebx
mov esi, dword [esp + 0x64]
push esi
call fcn.00418318
add esp, 0x10
test eax, eax
js 0x4013fc
mov eax, 0x600
xor esi, esi
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 4]
movd xmm0, dword [ebp + 0x10]
add eax, dword [esp]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
adc ecx, esi
mov dword [esp + 0x14], ecx
movd xmm1, eax
lea eax, [esp + 0x98]
punpcklqdq xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
push edi
push 5
push ebx
push dword [esp + 0x64]
call fcn.00418318
add esp, 0x10
test eax, eax
js 0x4013fc
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, esp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
push edi
push 5
push dword [esp + 0x64]
push dword [esp + 0x6c]
call fcn.00418318
add esp, 0x10
test eax, eax
js 0x4013fc
mov esi, dword [ebp + 8]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
add eax, 0x600
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0xa0]
adc ecx, edx
movd xmm0, eax
lea eax, [esp + 0x80]
mov dword [esp + 0x44], ecx
movd xmm1, eax
punpcklqdq xmm1, xmm0
movdqu xmmword [esp + 0x48], xmm1
push edi
push 0xa
push dword [esp + 0x80]
push dword [esp + 0x88]
call fcn.00418318
add esp, 0x10
test eax, eax
js 0x4013ed
push str.Error_code:0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0xffffffffffffffff
push dword [esp + 0x84]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4013f8
push str.Error_code:2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x401445
push str.Error_code:3
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [esp + 8]
mov ecx, dword [ebp + 8]
xor eax, eax
mov esi, esp
lea edx, [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x4000
mov eax, 4
push edi
push eax
push dword [esp + 0x6c]
push dword [esp + 0x74]
call fcn.00418318
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc