Function at 0x11168ed0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e8fac
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x11279148]
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 edi, ecx
xor ebx, ebx
mov dword [ebp - 0x278], edi
mov word [edi + 0x30], 1
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi], vtable.NSMPlatformNT.0
push 0x18
mov dword [ebp - 4], ebx
mov dword [edi + 0x74], ebx
call fcn.111709c0
add esp, 4
cmp eax, ebx
je 0x11169322
mov dword [edi + 0x70], eax
mov dword [eax], eax
mov eax, dword [edi + 0x70]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x70]
mov dword [eax + 8], eax
mov eax, dword [edi + 0x70]
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 0x70]
mov byte [ecx + 0x15], 1
push 0x14d4
mov byte [ebp - 4], 1
mov dword [0x1127f0c0], 0xffffffff
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x11168f85
mov ecx, eax
call fcn.11162c50
mov esi, eax
jmp 0x11168f87
xor esi, esi
lea edx, [esi + 0x5a4]
mov dword [edi + 0x24], esi
push edx
mov byte [ebp - 4], 1
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 0xf0], eax
mov eax, 1
mov dword [esi + 0x5dc], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0x130], eax
mov dword [esi + 0xe0], eax
mov dword [esi + 0x438], eax
mov dword [esi + 0x10c], eax
mov dword [esi + 0x4d4], ebx
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.LPT1]
mov word [eax + 0x1127f0a0], cx
add eax, 2
cmp cx, bx
jne 0x11168fe0
push str.nsm_gina_sas
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x111690e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xee
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x11169030
mov ecx, dword [str.pcigina]
mov edx, dword [0x11233970]
mov dword [eax], ecx
mov ecx, dword [0x11233974]
mov dword [eax + 4], edx
mov edx, dword [0x11233978]
mov dword [eax + 8], ecx
mov cx, word [0x1123397c]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x210]
push edx
mov word [eax + 0x10], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x270], eax
cmp eax, ebx
je 0x111690e1
push 3
push ebx
push 4
call fcn.111bb9f0
add esp, 0xc
test eax, eax
je 0x111690aa
mov eax, dword [ebp - 0x270]
push str.GrabKM
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x4d4], eax
mov ecx, dword [ebp - 0x270]
push str.LoggedOn
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x15c], eax
cmp eax, ebx
je 0x111690d4
mov edx, dword [ebp - 0x270]
mov dword [esi + 0x158], edx
jmp 0x111690e1
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xd
mov dword [esi + 0x4d8], ebx
mov dword [esi + 0x4dc], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [ebp - 0x26c]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
xor edx, edx
cmp byte [ebp - 0x255], 0x81
lea eax, [edi + 0x3c]
sete dl
push eax
mov dword [esi + 0x598], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [edi + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1127ef5c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x30
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x11169158
push ebx
mov ecx, eax
call fcn.1114b570
jmp 0x1116915a
xor eax, eax
push ebx
push 1
push 0x11167d10
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x604], eax
call fcn.11170830
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.11107510
test eax, eax
je 0x11169222
push 0x30
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x111691aa
push 1
mov ecx, eax
call fcn.1114b570
jmp 0x111691ac
xor eax, eax
push ebx
push 1
push 0x11167d10
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x608], eax
call fcn.11170830
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 2
push 6
call fcn.111bb9f0
add esp, 0xc
test eax, eax
je 0x11169222
push 0x30
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x11169200
push 3
mov ecx, eax
call fcn.1114b570
jmp 0x11169202
xor eax, eax
push ebx
push 1
push 0x11167d10
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x60c], eax
call fcn.11170830
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1127ad00], ebx
je 0x111692cc
call fcn.111529a0
lea ecx, [ebp - 0x270]
call fcn.11143200
push ebx
push ebx
push 0x2011f
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 6
call fcn.11143640
test eax, eax
jne 0x111692bd
push ebx
push str.AutoAdminLogon
lea ecx, [ebp - 0x270]
call fcn.111436a0
cmp eax, 1
jne 0x111692bd
push ebx
push str.ForceAutoLogon.nsl
lea ecx, [ebp - 0x270]
call fcn.111436a0
cmp eax, 1
jne 0x111692bd
push str.Del_ForceAutoLogon.nsl_n
call fcn.111bd7b0
add esp, 4
push str.ForceAutoLogon.nsl
lea ecx, [ebp - 0x270]
call fcn.11143bc0
push 1
push str.ForceAutoLogon
lea ecx, [ebp - 0x270]
call fcn.11143a80
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.11143c00
mov dword [esi + 0x128], esi
mov dword [esi + 0x130], ebx
call fcn.111b8710
cmp eax, 0x14
jge 0x11169304
call fcn.111babb0
test al, al
jne 0x11169304
push ebx
push 1
push 0x11159860
lea ecx, [esi + 0x120]
call fcn.11170830
mov dword [esi + 0x140], eax
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.111d9022
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x274], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1126446c
lea eax, [ebp - 0x284]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3