Function at 0x402ee0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405ca2
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
mov dword [ebp - 0x388], 0x22c
nop word [eax + eax]
mov ecx, str.amazing.exe
lea edx, [ebp - 0x364]
nop dword [eax + eax]
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x402f66
test ax, ax
je 0x402f62
mov ax, word [edx + 2]
cmp ax, word [ecx + 2]
jne 0x402f66
add edx, 4
add ecx, 4
test ax, ax
jne 0x402f40
xor eax, eax
jmp 0x402f6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x402f7f
lea eax, [ebp - 0x388]
push eax
push esi
call edi
test eax, eax
jne 0x402f30
jmp 0x402f92
mov eax, dword [ebp - 0x380]
push esi
mov dword [ebp - 0x38c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x118], 0
lea ecx, [ebp - 0x15c]
push dword [ebp - 0x118]
call fcn.00404860
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0
call fcn.00402e50
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
lea edx, [ebp - 0x15c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.004036d0
add esp, 4
test eax, eax
jne 0x403303
mov ebx, dword [ebp - 0x120]
xorps xmm0, xmm0
movlpd qword [ebp - 0x11c], xmm0
test ebx, ebx
je 0x403009
lock inc dword [ebx + 4]
mov edi, dword [ebp - 0x124]
mov esi, ebx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], esi
test ebx, ebx
je 0x403025
lock inc dword [ebx + 4]
movlpd qword [ebp - 0x12c], xmm0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
test ebx, ebx
je 0x403066
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x403066
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x403066
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 5
test edi, edi
je 0x403202
lea ecx, [edi + 0x20]
push ecx
lea eax, [ebp - 0x3bc]
push eax
call fcn.00403540
mov byte [ebp - 4], 6
lea eax, [ebp - 0x3a4]
cmp dword [ebp - 0x3a8], 0x10
lea esi, [ebp - 0x3bc]
push ecx
cmovae esi, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x144]
push eax
call fcn.00403540
cmp dword [ebp - 0x390], 0x10
lea eax, [ebp - 0x3a4]
push esi
cmovae eax, dword [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
call fcn.00403950
mov ecx, dword [ebp - 0x390]
add esp, 0x10
cmp ecx, 0x10
jb 0x403111
mov edx, dword [ebp - 0x3a4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403107
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032d5
push ecx
push edx
call fcn.00404bf0
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3a8]
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x390], 0xf
mov byte [ebp - 0x3a4], 0
cmp ecx, 0x10
jb 0x40316a
mov edx, dword [ebp - 0x3bc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403160
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032d5
push ecx
push edx
call fcn.00404bf0
add esp, 8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x38c]
mov edi, eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x3000
push 0x104
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
mov esi, eax
lea eax, [ebp - 0x114]
push 0x104
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x11c]
call fcn.00402bf0
mov edi, dword [ebp - 0x11c]
test edi, edi
jne 0x403072
mov esi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x120]
or edi, 0xffffffff
test esi, esi
je 0x403228
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x403228
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x403228
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x40324a
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40324a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x40324a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x130]
cmp ecx, 8
jb 0x403286
mov edx, dword [ebp - 0x144]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40327c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032d5
push ecx
push edx
call fcn.00404bf0
add esp, 8
mov ecx, dword [ebp - 0x148]
xor eax, eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
cmp ecx, 8
jb 0x4032e5
mov edx, dword [ebp - 0x15c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4032db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4032db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404bf0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404bb2
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x15c]
mov edx, eax
push ecx
call fcn.00402840
int3