Function at 0x401a10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 2
jge 0x401a93
push str.Params:_n
call fcn.00401010
add esp, 4
push str.____Create_filters_for_a_given_process:__create__process_full_path___n
call fcn.00401010
add esp, 4
push str.____Create_filters_for_MDE:__createmde__n
call fcn.00401010
add esp, 4
push str.____Delete_all_filters:__cleanall__n
call fcn.00401010
add esp, 4
push str.____Get_MDE_full_paths:__getmdepaths_
call fcn.00401010
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00401cf3
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
mov edx, str.create
mov eax, ecx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x401ac0
test bl, bl
je 0x401abc
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x401ac0
add eax, 2
add edx, 2
test bl, bl
jne 0x401aa0
xor eax, eax
jmp 0x401ac5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401adb
cmp esi, 3
jne 0x401adb
mov ecx, dword [edi + 8]
call fcn.00401050
jmp 0x401ccf
mov edx, str.createmde
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x401b02
test bl, bl
je 0x401afe
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x401b02
add eax, 2
add edx, 2
test bl, bl
jne 0x401ae2
xor eax, eax
jmp 0x401b07
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401b15
call fcn.00401350
jmp 0x401ccf
mov edx, str.cleanall
mov eax, ecx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x401b40
test bl, bl
je 0x401b3c
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x401b40
add eax, 2
add edx, 2
test bl, bl
jne 0x401b20
xor eax, eax
jmp 0x401b45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401b53
call fcn.004017a0
jmp 0x401ccf
mov eax, str.getmdepaths
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401b78
test dl, dl
je 0x401b74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401b78
add ecx, 2
add eax, 2
test dl, dl
jne 0x401b58
xor eax, eax
jmp 0x401b7d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401ccf
push 0x228
push eax
lea eax, [esp + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str._i__Reading_MDE_processes_full_paths_n
call fcn.00401010
add esp, 4
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.___X__CreateToolhelp32Snapshot__of_processes__failed_with_error_code:_0x_x._n
call fcn.00401010
add esp, 8
jmp 0x401ccf
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.___X__Process32First_failed_with_error_code:_0x_x._n
call fcn.00401010
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401ccf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [eax]
xor esi, esi
push dword [esi + 0x403bd0]
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
je 0x401c30
add esi, 4
cmp esi, 0x18
jb 0x401c12
jmp 0x401cbb
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
push str.___i__Detected_running_EDR_process:__ls___d___opening_handle..._n
call fcn.00401010
add esp, 0xc
push dword [esp + 0x18]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401ca7
push 0x208
lea eax, [esp + 0x24c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x244], 0x104
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x24c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea eax, [esp + 0x248]
push eax
push str._______Fullpath_is:__ls_n
jmp 0x401cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.___X__Error_opening_handle:_0x_x_n
call fcn.00401010
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401c10
push str.Done_
call fcn.00401010
mov ecx, dword [esp + 0x458]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401cf3
mov esp, ebp
pop ebp
ret