Function at 0x4b8ffc
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 0x4b9043
mov dword [ebp + 0xc], 0x5e5b16
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
jne 0x4b9053
mov dword [ebp + 0xc], 0x5e5b18
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 0x4b92fd
push 0x5e5b1a
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
jne 0x4b9090
push 0x5e5b26
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4b90e9
push 0x5e5b32
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b90e9
push 0x20
push 0
lea edx, [ebp - 0xdc]
push edx
call fcn.004cde6c
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 0x4b92fd
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call sub.USER32.dll_GetThreadDesktop
mov dword [ebp - 0x24], eax
push 0x60000
push 0
push 0x5e5b43
call sub.USER32.dll_OpenWindowStationA
mov edi, eax
test edi, edi
je 0x4b92fd
push edi
call sub.USER32.dll_SetProcessWindowStation
test eax, eax
je 0x4b92fd
push 0x60081
push 0
push 0
push 0x5e5b4b
call sub.USER32.dll_OpenDesktopA
mov esi, eax
test esi, esi
je 0x4b92fd
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004b83bc
add esp, 8
test eax, eax
je 0x4b92fd
mov ecx, dword [ebp - 0x10]
push ecx
push edi
call fcn.004b84d0
add esp, 8
test eax, eax
je 0x4b92fd
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.004b87a0
add esp, 8
test eax, eax
je 0x4b92fd
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test eax, eax
je 0x4b92fd
push esi
call sub.USER32.dll_SetThreadDesktop
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b91c3
push 0x5e5b53
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 0x4b92b4
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 0x4b921a
mov dword [ebp + 0xc], 0x5e5b6b
mov edx, 0x5e5b6d
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jne 0x4b922d
mov dword [ebp + 0xc], 0x5e5b6e
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.004cde6c
mov dword [ebp - 0xbc], 0x44
mov dword [ebp - 0xb4], 0x5e5b70
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 0x4b92f8
jmp 0x4b92f8
push 0x44
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.004cde6c
mov dword [ebp - 0x78], 0x44
add esp, 0xc
lea edx, [ebp - 0x34]
mov dword [ebp - 0x70], 0x5e5b90
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 0x4b931d
push 0x5e5ba0
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4b931d
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 4]
push edx
call eax
test ebx, ebx
je 0x4b9327
push ebx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b9337
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b9347
mov edx, dword [ebp - 0x24]
push edx
call sub.USER32.dll_SetThreadDesktop
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4b9357
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_SetProcessWindowStation
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4b9368
lea ecx, [ebp - 0x10]
push ecx
call fcn.004b84b8
pop ecx
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4b9379
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x4b938a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_CloseHandle
test edi, edi
je 0x4b9394
push edi
call sub.USER32.dll_CloseWindowStation
test esi, esi
je 0x4b939e
push esi
call sub.USER32.dll_CloseDesktop
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret