Function at 0x56b740
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fba41
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x70f200]
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
mov ebx, ecx
mov dword [ebp - 0x51c], ebx
mov edx, str.DependOnService
mov ecx, str.HKLMSYSTEMCurrentControlSetServicesSecurityHealthService
call fcn.005d3780
push 0
push 0xffffffffffffffff
push str.HKLMSYSTEMCurrentControlSetServicesSecurityHealthService
lea ecx, [ebp - 0x28c]
movzx edi, al
mov dword [ebp - 0x28c], 0
call fcn.005d6a80
push ecx
push 2
push str.HKLMSYSTEMCurrentControlSetServicesSecurityHealthService
lea ecx, [ebp - 0x28c]
mov dword [ebp - 4], 0
call fcn.005d6a30
push 0
push str.RpcSs
push 7
push str.DependOnService
lea ecx, [ebp - 0x28c]
call fcn.005d5f20
push 0
push str.__systemroot__system32SecurityHealthAgent.dll__1001
push 1
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.Description
add edi, eax
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 1
lea eax, [ebp - 0x290]
push eax
push 4
push str.ErrorControl
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0x2c
add edi, eax
mov dword [ebp - 0x3c], 0x15180
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
push eax
push 3
push str.FailureActions
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x14
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.005d5f20
push 0
push str._SystemRoot__system32SecurityHealthService.exe
push 2
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.ImagePath
add edi, eax
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 2
lea eax, [ebp - 0x290]
push eax
push 4
push str.LaunchProtected
call fcn.005d5f20
movzx eax, al
add edi, eax
push 0
push str.LocalSystem
push 1
push str.ObjectName
lea ecx, [ebp - 0x28c]
call fcn.005d5f20
push 0
push str.SeImpersonatePrivilege_nSeBackupPrivilege_nSeRestorePrivilege_nSeDebugPrivilege_nSeChangeNotifyPrivilege_nSeSecurityPrivilegeSeAssignPrimaryTokenPrivilege_nSeTcbPrivilege_nSeSystemEnvironmentPrivilege_nSeShutdownPrivilege
push 7
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.RequiredPrivileges
add edi, eax
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 1
lea eax, [ebp - 0x290]
push eax
push 4
push str.ServiceSidType
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 3
lea eax, [ebp - 0x290]
push eax
push 4
push str.Start
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 0x10
lea eax, [ebp - 0x290]
push eax
push 4
push str.Type
call fcn.005d5f20
push ecx
push 0xffffffffffffffff
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.HKLMSYSTEMCurrentControlSetServicesSecurityHealthServiceSecurity
add edi, eax
call fcn.005d6a30
push ecx
push 2
push str.HKLMSYSTEMCurrentControlSetServicesSecurityHealthServiceSecurity
lea ecx, [ebp - 0x28c]
call fcn.005d6a30
mov dword [ebp - 0x288], 0x80140001
mov dword [ebp - 0x284], 0x11c
mov dword [ebp - 0x280], 0x128
mov dword [ebp - 0x27c], 0x14
mov dword [ebp - 0x278], 0x30
mov dword [ebp - 0x274], 0x1c0002
mov dword [ebp - 0x270], 1
mov dword [ebp - 0x26c], 0x148002
mov dword [ebp - 0x268], 0xf00ff
mov dword [ebp - 0x264], 0x101
mov dword [ebp - 0x260], 0x1000000
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xec0002
mov dword [ebp - 0x254], 8
mov dword [ebp - 0x250], 0x180000
mov dword [ebp - 0x24c], 0x2009d
mov dword [ebp - 0x248], 0x201
mov dword [ebp - 0x244], 0x5000000
mov dword [ebp - 0x240], 0x20
mov dword [ebp - 0x23c], 0x221
mov dword [ebp - 0x238], 0x140000
mov dword [ebp - 0x234], 0x2019d
mov dword [ebp - 0x230], 0x101
mov dword [ebp - 0x22c], 0x5000000
mov dword [ebp - 0x228], 0x12
push 0x134
lea eax, [ebp - 0x288]
mov dword [ebp - 0x224], 0x180000
push eax
push 3
push str.Security
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x220], 0x2019d
mov dword [ebp - 0x21c], 0x201
mov dword [ebp - 0x218], 0x5000000
mov dword [ebp - 0x214], 0x20
mov dword [ebp - 0x210], 0x220
mov dword [ebp - 0x20c], 0x140000
mov dword [ebp - 0x208], 0x2009d
mov dword [ebp - 0x204], 0x101
mov dword [ebp - 0x200], 0x5000000
mov dword [ebp - 0x1fc], 4
mov dword [ebp - 0x1f8], 0x140000
mov dword [ebp - 0x1f4], 0x2009d
mov dword [ebp - 0x1f0], 0x101
mov dword [ebp - 0x1ec], 0x5000000
mov dword [ebp - 0x1e8], 6
mov dword [ebp - 0x1e4], 0x280000
mov dword [ebp - 0x1e0], 0x201fd
mov dword [ebp - 0x1dc], 0x601
mov dword [ebp - 0x1d8], 0x5000000
mov dword [ebp - 0x1d4], 0x50
mov dword [ebp - 0x1d0], 0x5f79fee5
mov dword [ebp - 0x1cc], 0x3b0daea0
mov dword [ebp - 0x1c8], 0xc90afa22
mov dword [ebp - 0x1c4], 0x3a415a01
mov dword [ebp - 0x1c0], 0xb74aa6e5
mov dword [ebp - 0x1bc], 0x280000
mov dword [ebp - 0x1b8], 0xf01ff
mov dword [ebp - 0x1b4], 0x601
mov dword [ebp - 0x1b0], 0x5000000
mov dword [ebp - 0x1ac], 0x50
mov dword [ebp - 0x1a8], 0x38fb89b5
mov dword [ebp - 0x1a4], 0xcbc28419
mov dword [ebp - 0x1a0], 0x6d236c5c
mov dword [ebp - 0x19c], 0x6e770057
mov dword [ebp - 0x198], 0x876402c0
mov dword [ebp - 0x194], 0x280000
mov dword [ebp - 0x190], 0xf01ff
mov dword [ebp - 0x18c], 0x601
mov dword [ebp - 0x188], 0x5000000
mov dword [ebp - 0x184], 0x50
mov dword [ebp - 0x180], 0xf748cdb
mov dword [ebp - 0x17c], 0xf37372c2
mov dword [ebp - 0x178], 0x44b9262b
mov dword [ebp - 0x174], 0x24f1e77
mov dword [ebp - 0x170], 0x21b56376
mov dword [ebp - 0x16c], 0x101
mov dword [ebp - 0x168], 0x5000000
mov dword [ebp - 0x164], 0x12
mov dword [ebp - 0x160], 0x101
mov dword [ebp - 0x15c], 0x5000000
mov dword [ebp - 0x158], 0x12
call fcn.005d5f20
push ecx
push 0xffffffffffffffff
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.HKLMSYSTEMCurrentControlSetServicesWinDefend
add edi, eax
call fcn.005d6a30
push ecx
push 2
push str.HKLMSYSTEMCurrentControlSetServicesWinDefend
lea ecx, [ebp - 0x28c]
call fcn.005d6a30
push 0
push str.RpcSs
push 7
push str.DependOnService
lea ecx, [ebp - 0x28c]
call fcn.005d5f20
movzx eax, al
push 0
add edi, eax
push str.__ProgramFiles_Windows_DefenderMpAsDesc.dll__240
push 1
push str.Description
lea ecx, [ebp - 0x28c]
call fcn.005d5f20
push 0
push str.Microsoft_Defender_Antivirus_Service
push 1
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.DisplayName
add edi, eax
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 1
lea eax, [ebp - 0x290]
push eax
push 4
push str.ErrorControl
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0x2c
add edi, eax
mov dword [ebp - 0x68], 0x15180
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], 0
push eax
push 3
push str.FailureActions
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], 0x14
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0x3e8
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0x2710
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0xea60
call fcn.005d5f20
sub esp, 8
movzx eax, al
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], 0
add edi, eax
movq qword [ebp - 0x2b4], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.MicrosoftWindows_DefenderPlatform
push ecx
mov ecx, ebx
call fcn.0057c490
push eax
lea ecx, [ebp - 0x2b4]
call fcn.005dc520
xorps xmm0, xmm0
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x29c]
movq qword [ebp - 0x29c], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2a8]
movq qword [ebp - 0x2a8], xmm0
call fcn.005dc5e0
push 0x260
push 0
lea eax, [ebp - 0x518]
mov byte [ebp - 4], 3
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x2b4]
call fcn.005dc190
push 0x250
mov esi, eax
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0x518]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
je 0x56bedd
lea ecx, [ebp - 0x518]
mov dword [ebp - 0x2c4], 5
call fcn.004011a0
ret
push edx
invalid
invalid
push 1
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 4
call fcn.005dadc0
cmp dword [ebp - 0x2c8], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x56c03f
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.MsMpEng.exe
lea eax, [ebp - 0x4ec]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2a8]
call fcn.005dc200
lea ecx, [ebp - 0x2a8]
call fcn.005dc190
push eax
call ebx
test eax, eax
je 0x56bf6e
lea ecx, [ebp - 0x2a8]
call fcn.005dc3e0
push eax
lea ecx, [ebp - 0x29c]
call fcn.005dc1c0
mov eax, dword [ebp - 0x2c8]
cmp eax, 0xffffffff
je 0x56c039
lea ecx, [ebp - 0x518]
push ecx
push eax
call esi
test eax, eax
je 0x56c01f
mov edx, dword [ebp - 0x2c8]
cmp edx, 0xffffffff
je 0x56c039
nop
cmp word [ebp - 0x4ec], 0x2e
jne 0x56bfc6
mov ax, word [ebp - 0x4ea]
test ax, ax
je 0x56c009
cmp ax, 0x2e
jne 0x56bfc6
cmp word [ebp - 0x4e8], 0
je 0x56c009
mov eax, dword [ebp - 0x2c4]
test eax, eax
je 0x56bf10
mov ecx, dword [ebp - 0x518]
test al, 1
je 0x56bfe6
test ecx, 0x400
jne 0x56c009
test al, 2
je 0x56bff5
test cl, 0x10
je 0x56bf10
jmp 0x56c009
test al, 4
je 0x56bf10
test ecx, 0x10
jne 0x56bf10
lea eax, [ebp - 0x518]
push eax
push edx
call esi
test eax, eax
je 0x56c01f
mov edx, dword [ebp - 0x2c8]
jmp 0x56bfa0
push dword [ebp - 0x2c8]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
mov dword [ebp - 0x2c8], 0xffffffff
jmp 0x56c03f
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x29c]
call fcn.005dc3a0
test eax, eax
jle 0x56c0a6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624388
lea ecx, [ebp - 0x29c]
call fcn.005dc190
push eax
push 0x624388
lea ecx, [ebp - 0x29c]
call fcn.005dc200
push 0
lea ecx, [ebp - 0x29c]
call fcn.005dc190
push eax
push 2
push str.ImagePath
lea ecx, [ebp - 0x28c]
call fcn.005d5f20
movzx eax, al
add edi, eax
push 0
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 3
push eax
push 4
push str.LaunchProtected
lea ecx, [ebp - 0x28c]
call fcn.005d5f20
push 0
push str.LocalSystem
push 1
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.ObjectName
add edi, eax
call fcn.005d5f20
push 0
push str.SeImpersonatePrivilege_nSeBackupPrivilegeSeRestorePrivilege_nSeDebugPrivilege_nSeChangeNotifyPrivilege_nSeLoadDriverPrivilegeSeSecurityPrivilege_nSeShutdownPrivilege_nSeIncreaseQuotaPrivilege_nSeAssignPrimaryTokenPrivilegeSeTcbPrivilege_nSeIncreaseBasePriorityPrivilege_nSeSystemEnvironmentPrivilege_nSeTakeOwnershipPrivilege
push 7
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.RequiredPrivileges
add edi, eax
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 1
lea eax, [ebp - 0x290]
push eax
push 4
push str.ServiceSidType
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 3
lea eax, [ebp - 0x290]
push eax
push 4
push str.Start
call fcn.005d5f20
movzx eax, al
lea ecx, [ebp - 0x28c]
push 0
add edi, eax
mov dword [ebp - 0x290], 0x10
lea eax, [ebp - 0x290]
push eax
push 4
push str.Type
call fcn.005d5f20
push ecx
push 0xffffffffffffffff
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.HKLMSYSTEMCurrentControlSetServicesWinDefendSecurity
add edi, eax
call fcn.005d6a30
push ecx
push 2
push str.HKLMSYSTEMCurrentControlSetServicesWinDefendSecurity
lea ecx, [ebp - 0x28c]
call fcn.005d6a30
mov dword [ebp - 0x150], 0x80140001
mov dword [ebp - 0x14c], 0xcc
mov dword [ebp - 0x148], 0xd8
mov dword [ebp - 0x144], 0x14
mov dword [ebp - 0x140], 0x30
mov dword [ebp - 0x13c], 0x1c0002
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x148002
mov dword [ebp - 0x130], 0xf01ff
mov dword [ebp - 0x12c], 0x101
mov dword [ebp - 0x128], 0x1000000
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0x9c0002
mov dword [ebp - 0x11c], 6
mov dword [ebp - 0x118], 0x180000
push 0xe4
lea eax, [ebp - 0x150]
mov dword [ebp - 0x114], 0x2019d
push eax
push 3
push str.Security
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x110], 0x201
mov dword [ebp - 0x10c], 0x5000000
mov dword [ebp - 0x108], 0x20
mov dword [ebp - 0x104], 0x221
mov dword [ebp - 0x100], 0x140000
mov dword [ebp - 0xfc], 0x2019d
mov dword [ebp - 0xf8], 0x101
mov dword [ebp - 0xf4], 0x5000000
mov dword [ebp - 0xf0], 0x12
mov dword [ebp - 0xec], 0x180000
mov dword [ebp - 0xe8], 0x2019d
mov dword [ebp - 0xe4], 0x201
mov dword [ebp - 0xe0], 0x5000000
mov dword [ebp - 0xdc], 0x20
mov dword [ebp - 0xd8], 0x220
mov dword [ebp - 0xd4], 0x140000
mov dword [ebp - 0xd0], 0x2019d
mov dword [ebp - 0xcc], 0x101
mov dword [ebp - 0xc8], 0x5000000
mov dword [ebp - 0xc4], 4
mov dword [ebp - 0xc0], 0x140000
mov dword [ebp - 0xbc], 0x2019d
mov dword [ebp - 0xb8], 0x101
mov dword [ebp - 0xb4], 0x5000000
mov dword [ebp - 0xb0], 6
mov dword [ebp - 0xac], 0x280000
mov dword [ebp - 0xa8], 0xf01ff
mov dword [ebp - 0xa4], 0x601
mov dword [ebp - 0xa0], 0x5000000
mov dword [ebp - 0x9c], 0x50
mov dword [ebp - 0x98], 0x720855bf
mov dword [ebp - 0x94], 0xd028e03b
mov dword [ebp - 0x90], 0xf84b7989
mov dword [ebp - 0x8c], 0x7c6e8991
mov dword [ebp - 0x88], 0xf4ec2540
mov dword [ebp - 0x84], 0x101
mov dword [ebp - 0x80], 0x5000000
mov dword [ebp - 0x7c], 0x12
mov dword [ebp - 0x78], 0x101
mov dword [ebp - 0x74], 0x5000000
mov dword [ebp - 0x70], 0x12
call fcn.005d5f20
push 0
movzx eax, al
lea ecx, [ebp - 0x28c]
push str.HKLM64SOFTWAREPoliciesMicrosoftWindows_Defender
add edi, eax
call fcn.005d55d0
push 0
push str.HKLM64SOFTWAREPoliciesMicrosoftWindows_Advanced_Threat_Protection
lea ecx, [ebp - 0x28c]
call fcn.005d55d0
push 0
push str.HKLM64SOFTWAREPoliciesMicrosoftWindows_Defender_Security_Center
lea ecx, [ebp - 0x28c]
call fcn.005d55d0
push 0
push 0
mov ecx, str.Failed_to_fix_Microsoft_Defenders_services.
test edi, edi
mov eax, str.Successfully_fixed_Microsoft_Defenders_services.
cmove eax, ecx
mov ecx, dword [ebp - 0x51c]
push 0
push eax
call fcn.0057b7e0
mov eax, dword [ebp - 0x2c8]
cmp eax, 0xffffffff
je 0x56c463
push eax
call ebx
lea ecx, [ebp - 0x2a8]
call fcn.005dc430
lea ecx, [ebp - 0x29c]
call fcn.005dc430
lea ecx, [ebp - 0x2b4]
call fcn.005dc430
lea ecx, [ebp - 0x28c]
call fcn.005d69e0
mov eax, edi
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.0041e1b5
mov esp, ebp
pop ebp
ret