Function at 0x56a4a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0x14], edx
mov esi, ecx
mov dword [ebp - 4], 0
push eax
push 0x61b438
mov edx, str.Windows.System.Profile.SystemIdentification
mov dword [ebp - 0x28], esi
mov ecx, str.Windows.System.Profile.SystemId.dll
mov dword [ebp - 8], 0
xor bl, bl
mov dword [ebp - 0xc], 0x80004005
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.004fae00
test eax, eax
jns 0x56a505
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi + 8]
lea eax, [ebp - 8]
mov edi, dword [0x635f50]
push eax
push 0xe
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
jmp 0x56a520
cmp eax, 0xc0000022
jne 0x56a53a
cmp edi, 5
jne 0x56a550
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea edx, [edi + 9]
call fcn.00523b40
test eax, eax
js 0x56a550
push dword [ebp - 8]
push 0xfffffffffffffffe
call sym.SystemInformer.exe_PhImpersonateToken
mov ebx, eax
shr ebx, 0x1f
xor bl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ecx, dword [edi]
cmp ecx, edi
je 0x56a596
nop
mov edx, dword [ecx + 0x18]
cmp esi, edx
jb 0x56a590
mov eax, dword [ecx + 0x20]
add eax, edx
cmp esi, eax
jb 0x56a5bb
mov ecx, dword [ecx]
cmp ecx, edi
jne 0x56a580
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x56a5c3
mov edi, 0x80004005
jmp 0x56a728
test ecx, ecx
je 0x56a596
mov esi, edx
jmp 0x56a598
push ecx
push 0x56a3f0
push 0x61b134
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
call fcn.005288a0
test eax, eax
jns 0x56a5e8
mov edi, 0x80004005
jmp 0x56a728
push ecx
push 0x56a440
push 0x61b174
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.005288a0
test eax, eax
jns 0x56a613
mov edi, 0x80004005
jmp 0x56a728
push ecx
push 0x56a410
push str.GetCurrentThread
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.005288a0
test eax, eax
jns 0x56a63b
mov edi, 0x80004005
jmp 0x56a728
push ecx
push 0x56a460
push 0x61b19c
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.005288a0
test eax, eax
jns 0x56a665
mov edi, 0x80004005
jmp 0x56a728
push ecx
push 0x56a480
push 0x61b1b0
mov edx, str.api_ms_win_core_handle_l1_1_0.dll
mov ecx, esi
lfence
call fcn.005288a0
nop
test eax, eax
jns 0x56a68e
mov edi, 0x80004005
jmp 0x56a728
mov ecx, dword [ebp - 0x28]
mov dl, 1
call fcn.0056a340
test eax, eax
jne 0x56a6a6
mov edi, 0x80004005
jmp 0x56a728
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push eax
xor edi, edi
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x5a28f0]
call esi
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x56a6e8
mov ecx, dword [ebp - 0x18]
call fcn.0056a020
mov dword ds:[ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a28f0]
call esi
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x1c]
mov ecx, esi
call dword [0x5a28f0]
nop
call esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x56a728
mov ecx, dword [ebp - 0x1c]
call fcn.0056a020
mov ecx, dword ds:[ebp - 0x1c]
push ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x5a28f0]
call esi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x56a746
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5a28f0]
call esi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x56a779
test bl, bl
je 0x56a76b
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 5
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtSetInformationThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 8], 0
test byte [0x6317a4], 1
jne 0x56a7b9
mov esi, 0x6317a4
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x56a7a7
call fcn.005021a0
mov ecx, esi
mov dword [0x6364cc], eax
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x56a7b9
test byte [0x6317a4], 1
jne 0x56a7b9
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
mov ecx, dword [0x6364cc]
nop
cmp ecx, 0xffffffff
je 0x56a7cc
xor edx, edx
call fcn.005022e0
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
shr eax, 0x1c
and eax, 1
mov dword [ebx], 0
mov dword [esi], 0
test edx, edx
jne 0x56a7f7
mov edx, dword [ebp - 0x20]
mov dword [ebx], edx
jmp 0x56a840
mov ebx, eax
test eax, eax
je 0x56a81e
push 0
mov ecx, edx
call fcn.00523780
push eax
call sym.SystemInformer.exe_PhGetStatusMessage
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x56a81e
cmp dword [ecx], 0
mov eax, ebx
jne 0x56a83d
mov eax, dword [ebp - 0x10]
movzx eax, ax
test eax, eax
jne 0x56a830
push eax
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x56a836
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x56a854
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x56a86a
push 0
call fcn.00523780
push eax
call sym.SystemInformer.exe_PhGetStatusMessage
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [esi]
test eax, eax
je 0x56a875
cmp dword [eax], 0
jne 0x56a89a
movzx eax, cx
test eax, eax
jne 0x56a892
push eax
call sym.SystemInformer.exe_PhGetNtMessage
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4