Function at 0x40def0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Enumerate processes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427cc8
mov eax, dword fs:[0]
push eax
mov eax, 0x12e8
call fcn.004265c0
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11e4], eax
mov eax, dword [ebp + 0x14]
push 0x124
mov dword [ebp - 0x11f0], eax
lea eax, [ebp - 0x11c0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x11c4], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x11c4]
push eax
push edi
mov dword [ebp - 0x11f8], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11d4], eax
je 0x40ed92
mov esi, dword [ebp + 8]
nop word [eax + eax]
mov ecx, esi
lea eax, [ebp - 0x11a0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dfb8
test dl, dl
je 0x40dfb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dfb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40df98
xor eax, eax
jmp 0x40dfbd
sbb eax, eax
or eax, 1
test eax, eax
je 0x40dfd7
lea eax, [ebp - 0x11c4]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40df90
jmp 0x40ed92
push dword [ebp - 0x11bc]
lea eax, [ebp - 0x12]
push eax
call fcn.00405f50
add esp, 8
lea ecx, [ebp - 0x11c5]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x1084]
call fcn.00405e80
mov ecx, dword [ebp - 0x1070]
mov eax, ecx
mov esi, dword [ebp - 0x1074]
sub eax, esi
mov dword [ebp - 4], 0
cmp eax, 0x16
jb 0x40e0c1
cmp ecx, 7
lea edx, [ebp - 0x1084]
lea eax, [esi + 0x16]
cmova edx, dword [ebp - 0x1084]
mov dword [ebp - 0x1074], eax
mov dword [ebp - 0x11cc], edx
cmp edx, 0x42b24c
jae 0x40e069
lea eax, [edx + esi*2]
cmp eax, str.memory_scanner.exe__p
jb 0x40e069
cmp edx, str.memory_scanner.exe__p
ja 0x40e05d
xor edi, edi
jmp 0x40e06e
mov edi, edx
sub edi, str.memory_scanner.exe__p
sar edi, 1
jmp 0x40e06e
mov edi, 0x16
lea eax, [esi*2 + 2]
push eax
lea ecx, [edx + 0x2c]
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
lea esi, [edi + edi]
push esi
push str.memory_scanner.exe__p
push dword [ebp - 0x11cc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x11cc]
lea edx, [edi*2 + 0x42b24c]
add ecx, esi
mov esi, 0x16
mov eax, esi
sub eax, edi
add eax, eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0x1084]
jmp 0x40e0e2
push 0x16
push str.memory_scanner.exe__p
push 0
push dword [ebp - 0x11d8]
lea ecx, [ebp - 0x1084]
push 0x16
call fcn.00402560
mov esi, 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x108c], 0
movups xmmword [ebp - 0x109c], xmm0
mov dword [ebp - 0x1088], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x109c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x108c], xmm0
mov byte [ebp - 4], 2
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x1070]
cmp ecx, 7
jbe 0x40e170
mov edx, dword [ebp - 0x1084]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e166
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e166
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042604c
add esp, 8
xor eax, eax
mov dword [ebp - 0x1074], 0
push eax
mov word [ebp - 0x1084], ax
mov dword [ebp - 0x1298], eax
lea eax, [ebp - 0x129c]
push eax
lea eax, [ebp - 0x11ec]
mov dword [ebp - 0x1070], 7
push eax
lea eax, [ebp - 0x11dc]
mov dword [ebp - 0x129c], 0xc
push eax
mov dword [ebp - 0x1294], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
push 1
push dword [ebp - 0x11dc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x40
lea eax, [ebp - 0x12f0]
mov dword [ebp - 0x12f4], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x11ec]
lea ecx, [ebp - 0x12b0]
or dword [ebp - 0x12c8], 0x101
add esp, 0xc
mov dword [ebp - 0x12b8], eax
xor eax, eax
cmp dword [ebp - 0x1088], 7
mov word [ebp - 0x12c4], ax
lea eax, [ebp - 0x109c]
cmova eax, dword [ebp - 0x109c]
push ecx
lea ecx, [ebp - 0x12f4]
push ecx
push 0
push 0
push 0x10
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [ebp - 0x11d4]
test eax, eax
je 0x40ed42
push dword [ebp - 0x11ec]
call edi
push 0x1000
lea eax, [ebp - 0x103c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11f4]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push dword [ebp - 0x11dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ed24
nop dword [eax + eax]
cmp dword [ebp - 0x11f4], 0
je 0x40ed1e
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x103c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1054], xmm0
cmp edi, 0x7fffffff
ja 0x40edb9
mov dword [ebp - 0x1040], 0xf
cmp edi, 0xf
ja 0x40e328
push edi
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1044], edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp + edi - 0x1054], 0
jmp 0x40e384
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40e33b
mov eax, SysReAllocString
jmp 0x40e341
cmp eax, 0x16
cmovb eax, esi
mov dword [ebp - 0x11cc], eax
lea eax, [ebp - 0x11cc]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00407880
mov ecx, dword [ebp - 0x11cc]
mov esi, eax
push edi
push 0
push esi
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x1044], edi
mov dword [ebp - 0x1040], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov byte [esi + edi], 0
cmp dword [ebp - 0x1040], 0xf
lea eax, [ebp - 0x1054]
push 0
cmova eax, dword [ebp - 0x1054]
push 0
push edi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x103c]
mov byte [ebp - 4], 3
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x1040], 0xf
lea ecx, [ebp - 0x1054]
mov edx, dword [ebp - 0x1054]
cmova ecx, edx
seta byte [ebp - 0x11c5]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e3d8
mov eax, dword [ebp - 0x1044]
sub ecx, esi
cmp ecx, eax
ja 0x40e407
cmp byte [ebp - 0x11c5], 0
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1044], ecx
cmovne eax, edx
mov byte [eax + ecx], 0
jmp 0x40e417
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x1054]
call fcn.0040d910
cmp byte [ebp + 0x10], 0
je 0x40ea1d
cmp dword [ebp - 0x1040], 0xf
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x120c], 0
cmova eax, dword [ebp - 0x1054]
mov dword [ebp - 0x11d8], eax
lea eax, [ebp - 0x1208]
mov dword [ebp - 0x12a0], eax
push 1
mov byte [ebp - 4], 4
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_
add esp, 4
mov dword [ebp - 0x11fc], eax
push 0
lea ecx, [ebp - 0x1210]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov eax, dword [0x439880]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::locale::id_std::collate_char_::id]
mov byte [ebp - 4], 6
mov dword [ebp - 0x11e0], eax
mov dword [ebp - 0x11cc], eax
call dword [sym.imp.MSVCP140.dll_public:_unsigned_int___thiscall_std::locale::id::operator_unsigned_int_void_]
mov edx, dword [ebp - 0x11fc]
mov dword [ebp - 0x11e8], eax
lea edi, [eax*4]
cmp eax, dword [edx + 0xc]
jae 0x40e4b8
mov ecx, dword [edx + 8]
mov esi, dword [edi + ecx]
test esi, esi
jne 0x40e529
jmp 0x40e4ba
xor esi, esi
cmp byte [edx + 0x14], 0
je 0x40e4d6
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Getgloballocale_void_
mov ecx, dword [ebp - 0x11e8]
cmp ecx, dword [eax + 0xc]
jae 0x40e4da
mov eax, dword [eax + 8]
mov esi, dword [edi + eax]
test esi, esi
jne 0x40e529
mov esi, dword [ebp - 0x11e0]
test esi, esi
jne 0x40e529
lea eax, [ebp - 0x1200]
push eax
lea eax, [ebp - 0x11cc]
push eax
call fcn.0040c560
add esp, 8
cmp eax, 0xffffffff
je 0x40edb4
mov esi, dword [ebp - 0x11cc]
mov dword [ebp - 0x11e0], esi
push esi
mov byte [ebp - 4], 7
call fcn.004257a0
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x439880], esi
lea ecx, [ebp - 0x1210]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea eax, [ebp - 0x1200]
mov dword [ebp - 0x1208], esi
push eax
call fcn.00408e00
add esp, 4
mov dword [ebp - 0x1204], eax
mov esi, dword [ebp - 0x11d8]
mov ecx, esi
mov byte [ebp - 4], 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e563
sub ecx, edx
push 1
lea eax, [ecx + esi]
push eax
push esi
lea ecx, [ebp - 0x120c]
call fcn.004082a0
cmp dword [ebp - 0x1040], 0xf
lea esi, [ebp - 0x1054]
mov edi, dword [ebp - 0x1044]
cmova esi, dword [ebp - 0x1054]
mov edx, dword [ebp - 0x120c]
add edi, esi
test edx, edx
je 0x40e9e7
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x1c]
mov byte [ebp - 0x11d0], 0
mov dword [ebp - 0x128c], 0
mov dword [ebp - 0x1288], 0
mov dword [ebp - 0x1284], 0
mov dword [ebp - 0x1280], 0
mov dword [ebp - 0x127c], 0
mov dword [ebp - 0x1278], 0
mov dword [ebp - 0x1274], 0
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x1264], 0
mov dword [ebp - 0x1260], 0
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x1258], 0
mov dword [ebp - 0x1254], 0
mov dword [ebp - 0x1250], 0
mov dword [ebp - 0x124c], 0
mov dword [ebp - 0x1248], 0
mov dword [ebp - 0x1234], eax
lea eax, [ebp - 0x1208]
mov dword [ebp - 0x1240], edi
mov dword [ebp - 0x123c], esi
mov dword [ebp - 0x1238], edx
mov dword [ebp - 0x1230], 0x10
mov byte [ebp - 0x122c], 0
mov dword [ebp - 0x1228], ecx
mov byte [ebp - 0x1224], 0
mov dword [ebp - 0x1220], eax
mov eax, dword [edx + 0x18]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x40e6bf
lea ecx, [ebp - 0x11c5]
push ecx
push eax
lea ecx, [ebp - 0x1250]
call fcn.004086a0
push 0
push 0
lea ecx, [ebp - 0x1290]
mov byte [ebp - 4], 0xd
call fcn.00407dc0
test al, al
je 0x40e6e2
mov byte [ebp - 0x11d0], 1
jmp 0x40e77f
cmp esi, edi
je 0x40e77f
mov eax, dword [ebp - 0x1230]
lea ecx, [ebp - 0x1290]
and eax, 0xffffdfff
or eax, 0x100
push 0
mov dword [ebp - 0x1230], eax
lea eax, [esi + 1]
push edi
push eax
call fcn.0040d2f0
mov esi, eax
cmp esi, edi
je 0x40e751
nop dword [eax + eax]
push 0
push 0
lea ecx, [ebp - 0x1290]
mov dword [ebp - 0x123c], esi
call fcn.00407dc0
test al, al
jne 0x40e6d6
push 0
push edi
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x1290]
call fcn.0040d2f0
mov esi, eax
cmp esi, edi
jne 0x40e720
push 0
push 0
lea ecx, [ebp - 0x1290]
mov dword [ebp - 0x123c], edi
call fcn.00407dc0
mov edx, dword [ebp - 0x11d0]
test al, al
movzx edx, dl
mov eax, 1
cmovne edx, eax
mov dword [ebp - 0x11d0], edx
mov ecx, dword [ebp - 0x1250]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x40e7e5
mov eax, dword [ebp - 0x1248]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7bd
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push edx
push ecx
call fcn.0042604c
add esp, 8
mov dword [ebp - 0x1250], 0
mov dword [ebp - 0x124c], 0
mov dword [ebp - 0x1248], 0
mov ecx, dword [ebp - 0x125c]
test ecx, ecx
je 0x40e847
mov eax, dword [ebp - 0x1254]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e81f
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push edx
push ecx
call fcn.0042604c
add esp, 8
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x1258], 0
mov dword [ebp - 0x1254], 0
mov ecx, dword [ebp - 0x126c]
test ecx, ecx
je 0x40e8a9
mov eax, dword [ebp - 0x1264]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e881
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push edx
push ecx
call fcn.0042604c
add esp, 8
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x1264], 0
mov ecx, dword [ebp - 0x127c]
test ecx, ecx
je 0x40e90b
mov eax, dword [ebp - 0x1274]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8e3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push edx
push ecx
call fcn.0042604c
add esp, 8
mov dword [ebp - 0x127c], 0
mov dword [ebp - 0x1278], 0
mov dword [ebp - 0x1274], 0
mov ecx, dword [ebp - 0x128c]
test ecx, ecx
je 0x40e94f
mov eax, dword [ebp - 0x1284]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e945
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push edx
push ecx
call fcn.0042604c
add esp, 8
cmp byte [ebp - 0x11d0], 0
je 0x40e9af
mov ecx, dword [ebp - 0x11f0]
mov eax, ecx
cmp dword [ecx + 0x14], 7
jbe 0x40e968
mov eax, dword [ecx]
push dword [ecx + 0x10]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00402230
mov edx, dword [ebp - 0x11e4]
add esp, 0xc
mov ecx, edx
cmp dword [edx + 0x14], 7
jbe 0x40e98a
mov ecx, dword [edx]
push dword [edx + 0x10]
push ecx
push eax
call fcn.00402230
push 0x42d038
push eax
call fcn.00404830
add esp, 0x14
mov ecx, eax
push 0x4026c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [ebp - 0x120c]
test ecx, ecx
je 0x40e9e7
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x40e9e7
mov esi, dword [ebp - 0x120c]
test esi, esi
je 0x40e9e7
nop dword [eax]
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x40e9d0
mov ecx, dword [ebp - 0x11fc]
mov dword [ebp - 0x120c], 0
test ecx, ecx
je 0x40ec40
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x40ec40
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
jmp 0x40ec40
mov edi, dword [ebp - 0x11e4]
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x40ea2d
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea ecx, [ebp - 0x106c]
push 0
push esi
call fcn.00409020
cmp dword [ebp - 0x1058], 0xf
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 0xe
mov eax, edi
cmova ecx, dword [ebp - 0x106c]
cmp dword [edi + 0x14], 7
jbe 0x40ea77
mov eax, dword [edi]
push 0
push 0
push esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x1058], 0xf
lea ecx, [ebp - 0x106c]
mov edx, dword [ebp - 0x106c]
cmova ecx, edx
seta byte [ebp - 0x11c5]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eab0
mov eax, dword [ebp - 0x105c]
sub ecx, esi
cmp ecx, eax
ja 0x40eadf
cmp byte [ebp - 0x11c5], 0
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x105c], ecx
cmovne eax, edx
mov byte [eax + ecx], 0
jmp 0x40eaef
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x106c]
call fcn.0040d910
cmp dword [ebp - 0x1058], 0xf
lea ecx, [ebp - 0x106c]
mov edx, dword [ebp - 0x106c]
lea edi, [ebp - 0x1054]
mov esi, dword [ebp - 0x105c]
cmova ecx, edx
cmp dword [ebp - 0x1040], 0xf
mov eax, dword [ebp - 0x1044]
cmova edi, dword [ebp - 0x1054]
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d8], ecx
mov dword [ebp - 0x11e8], edi
cmp esi, eax
ja 0x40ec06
sub eax, esi
test esi, esi
je 0x40ecbc
mov cl, byte [ecx]
inc eax
add eax, edi
mov byte [ebp - 0x11c5], cl
mov dword [ebp - 0x11e0], eax
sub eax, edi
push eax
movsx eax, cl
push eax
push edi
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40ec00
mov edx, dword [ebp - 0x11d8]
mov ecx, edi
sub esi, 4
jb 0x40eb92
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40eb97
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40eb81
cmp esi, 0xfffffffc
je 0x40ebcb
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40ebc4
cmp esi, 0xfffffffd
je 0x40ebcb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40ebc4
cmp esi, 0xfffffffe
je 0x40ebcb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40ebc4
cmp esi, 0xffffffff
je 0x40ebcb
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40ebcb
sbb eax, eax
or eax, 1
jmp 0x40ebcd
xor eax, eax
test eax, eax
je 0x40ecad
mov eax, dword [ebp - 0x11e0]
inc edi
sub eax, edi
push eax
movsx eax, byte [ebp - 0x11c5]
push eax
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, dword [ebp - 0x105c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40eb74
mov edx, dword [ebp - 0x11cc]
mov eax, dword [ebp - 0x1058]
mov byte [ebp - 4], 3
cmp eax, 0xf
jbe 0x40ec40
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push ecx
push edx
call fcn.0042604c
add esp, 8
mov ecx, dword [ebp - 0x1040]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x40ec7e
mov edx, dword [ebp - 0x1054]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e160
push ecx
push edx
call fcn.0042604c
add esp, 8
push 0
lea eax, [ebp - 0x11f4]
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push dword [ebp - 0x11dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ed1e
mov esi, 0x16
jmp 0x40e2a0
sub edi, dword [ebp - 0x11e8]
cmp edi, 0xffffffff
je 0x40ec00
mov ecx, dword [ebp - 0x11f0]
mov eax, ecx
cmp dword [ecx + 0x14], 7
jbe 0x40eccc
mov eax, dword [ecx]
push dword [ecx + 0x10]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00402230
mov edx, dword [ebp - 0x11e4]
add esp, 0xc
mov ecx, edx
cmp dword [edx + 0x14], 7
jbe 0x40ecee
mov ecx, dword [edx]
push dword [edx + 0x10]
push ecx
push eax
call fcn.00402230
push str.._This_is_bannable_
push eax
call fcn.00404830
add esp, 0x14
mov ecx, eax
push 0x4026c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov edx, dword [ebp - 0x106c]
jmp 0x40ec06
mov edi, dword [ebp - 0x11d4]
push 0xffffffffffffffff
push dword [ebp - 0x12b0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x12b0]
call edi
push dword [ebp - 0x12ac]
call edi
push dword [ebp - 0x11dc]
call edi
mov ecx, dword [ebp - 0x1088]
cmp ecx, 7
jbe 0x40ed8c
mov edx, dword [ebp - 0x109c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ed82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ed82
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042604c
add esp, 8
mov edi, dword [ebp - 0x11f8]
push edi
call dword [ebp - 0x11d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
call fcn.00403d90
call fcn.00403e20
int3