Function at 0x474769
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
mov eax, 0x536356
call fcn.00535848
sub esp, 0x440
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edx
mov ebx, ecx
push ecx
push ecx
lea ecx, [ebp - 0x16c]
call fcn.004443c5
mov edx, str.RUN_APP
lea ecx, [ebp - 0x15c]
call fcn.0044348f
push eax
call fcn.00443642
mov dword [esp], 0x557fa4
push str.C:AeroAdminLog.txt
call fcn.0051874e
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x4747f2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x154]
call fcn.00444f26
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0x10
cmovae ecx, dword [ebp - 0x38]
push ecx
push esi
call fcn.0047442c
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0043c446
push esi
call fcn.00518a6b
pop ecx
lea ecx, [ebp - 0x16c]
call fcn.00443fd6
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], esi
push 0x557fd0
lea ecx, [ebp - 0x38]
call fcn.0043a56f
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x48], edi
cmp edi, 0xffffffff
je 0x474aac
push 1
push 0x557fcc
lea ecx, [ebp - 0x38]
call fcn.0043c547
mov dword [ebp - 0x44c], 0x22c
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x474a84
push 0x557fd8
lea eax, [ebp - 0x428]
push eax
call fcn.005192d5
pop ecx
pop ecx
test eax, eax
jne 0x474a76
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x474a76
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jne 0x474a76
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x474a8c
push 1
push 0x557fd4
lea ecx, [ebp - 0x38]
call fcn.0043c547
mov dword [ebp - 0x3c], 0x30
push 0x44
pop edi
push edi
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.005055e0
add esp, 0xc
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb4], 0x557ff8
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebp - 0x1c]
push esi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x44], edi
cmp edi, 0xffffffff
je 0x474a8c
push 1
push 0x557ff4
lea ecx, [ebp - 0x38]
call fcn.0043c547
lea eax, [ebp - 0x1c]
push eax
push 0x201eb
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x474a69
xor edi, edi
inc edi
push edi
push str.57698
lea ecx, [ebp - 0x38]
call fcn.0043c547
lea eax, [ebp - 0x50]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x474a5c
push edi
push 0x558044
lea ecx, [ebp - 0x38]
call fcn.0043c547
mov dword [ebp - 0x60], edi
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 2
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push esi
push 0x2000000
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x474a5c
push edi
push 0x558040
lea ecx, [ebp - 0x38]
call fcn.0043c547
push 4
push dword [ebp - 0x18]
push 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push esi
push esi
push 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x474a4f
push edi
push 0x55804c
lea ecx, [ebp - 0x38]
call fcn.0043c547
mov dword [ebp - 0x18], esi
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x474a0f
push edi
push 0x558048
lea ecx, [ebp - 0x38]
call fcn.0043c547
mov ecx, 0x430
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x18]
jmp 0x474a17
mov eax, esi
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ebx + 0x14], 8
jb 0x474a1f
mov ebx, dword [ebx]
lea edx, [ebp - 0x70]
push edx
lea edx, [ebp - 0xbc]
push edx
push esi
push eax
push ecx
push esi
push esi
push esi
push ebx
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x18], 0
je 0x474a4f
push dword [ebp - 0x18]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x474a62
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call edi
jmp 0x474a6f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44]
call edi
jmp 0x474a92
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x474855
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
call edi
cmp esi, 1
sete bl
lea ecx, [ebp - 0x38]
call fcn.0043c446
mov al, bl
jmp 0x474b46
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.0043c446
jmp 0x474b44
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret