Function at 0x4b84b8
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff704
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
xor esi, esi
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
test ecx, ecx
jne 0x4b84ff
mov dword [ebp + 0xc], 0x5e455a
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
jne 0x4b850f
mov dword [ebp + 0xc], 0x5e455c
lea ecx, [ebp - 4]
push ecx
push 0
push 2
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.dll_LogonUserA
test eax, eax
je 0x4b87b9
push 0x5e455e
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
jne 0x4b854c
push 0x5e456a
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4b85a5
push 0x5e4576
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b85a5
push 0x20
push 0
lea edx, [ebp - 0xdc]
push edx
call fcn.004cd264
mov dword [ebp - 0xdc], 0x20
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0xd4], ecx
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xd8], 3
push eax
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0x18]
test eax, eax
call sub.USER32.dll_GetProcessWindowStation
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b87b9
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call sub.USER32.dll_GetThreadDesktop
mov dword [ebp - 0x24], eax
push 0x60000
push 0
push 0x5e4587
call sub.USER32.dll_OpenWindowStationA
mov edi, eax
test edi, edi
je 0x4b87b9
push edi
call sub.USER32.dll_SetProcessWindowStation
test eax, eax
je 0x4b87b9
push 0x60081
push 0
push 0
push 0x5e458f
call sub.USER32.dll_OpenDesktopA
mov esi, eax
test esi, esi
je 0x4b87b9
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004b7878
add esp, 8
test eax, eax
je 0x4b87b9
mov ecx, dword [ebp - 0x10]
push ecx
push edi
call fcn.004b798c
add esp, 8
test eax, eax
je 0x4b87b9
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.004b7c5c
add esp, 8
test eax, eax
je 0x4b87b9
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test eax, eax
je 0x4b87b9
push esi
call sub.USER32.dll_SetThreadDesktop
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b867f
push 0x5e4597
mov edx, dword [ebp - 0x1c]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b8770
call sub.ADVAPI32.dll_RevertToSelf
lea eax, [ebp - 0x8fc]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040348c
add esp, 8
lea ecx, [ebp - 0x2e4]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040348c
add esp, 8
lea edx, [ebp - 0x6f4]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040348c
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4b86d6
mov dword [ebp + 0xc], 0x5e45af
mov edx, 0x5e45b1
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jne 0x4b86e9
mov dword [ebp + 0xc], 0x5e45b2
lea eax, [ebp - 0x4ec]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040348c
add esp, 8
lea ecx, [ebp - 0xbc]
push 0x44
push 0
push ecx
call fcn.004cd264
mov dword [ebp - 0xbc], 0x44
mov dword [ebp - 0xb4], 0x5e45b4
mov dword [ebp - 0x90], 1
mov word [ebp - 0x8c], 5
add esp, 0xc
lea eax, [ebp - 0x34]
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x8fc]
push eax
push edx
push 0
push 0
push 0x30
push ecx
push 0
lea eax, [ebp - 0x6f4]
push 1
push eax
lea edx, [ebp - 0x4ec]
lea ecx, [ebp - 0x2e4]
push edx
push ecx
call dword [ebp - 0x20]
test eax, eax
je 0x4b87b4
jmp 0x4b87b4
push 0x44
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.004cd264
mov dword [ebp - 0x78], 0x44
add esp, 0xc
lea edx, [ebp - 0x34]
mov dword [ebp - 0x70], 0x5e45d4
push edx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.dll_CreateProcessAsUserA
mov dword [ebp - 0x14], eax
call sub.ADVAPI32.dll_RevertToSelf
test ebx, ebx
je 0x4b87d9
push 0x5e45e4
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4b87d9
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 4]
push edx
call eax
test ebx, ebx
je 0x4b87e3
push ebx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b87f3
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b8803
mov edx, dword [ebp - 0x24]
push edx
call sub.USER32.dll_SetThreadDesktop
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4b8813
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_SetProcessWindowStation
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4b8824
lea ecx, [ebp - 0x10]
push ecx
call fcn.004b7974
pop ecx
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4b8835
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x4b8846
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_CloseHandle
test edi, edi
je 0x4b8850
push edi
call sub.USER32.dll_CloseWindowStation
test esi, esi
je 0x4b885a
push esi
call sub.USER32.dll_CloseDesktop
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret