Function at 0x4bd080
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 0x4bd0c7
mov dword [ebp + 0xc], 0x5ff479
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
jne 0x4bd0d7
mov dword [ebp + 0xc], 0x5ff47b
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 0x4bd381
push 0x5ff47d
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
jne 0x4bd114
push 0x5ff489
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4bd16d
push 0x5ff495
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bd16d
push 0x20
push 0
lea edx, [ebp - 0xdc]
push edx
call fcn.004d2d9c
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 0x4bd381
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call sub.USER32.dll_GetThreadDesktop
mov dword [ebp - 0x24], eax
push 0x60000
push 0
push 0x5ff4a6
call sub.USER32.dll_OpenWindowStationA
mov edi, eax
test edi, edi
je 0x4bd381
push edi
call sub.USER32.dll_SetProcessWindowStation
test eax, eax
je 0x4bd381
push 0x60081
push 0
push 0
push 0x5ff4ae
call sub.USER32.dll_OpenDesktopA
mov esi, eax
test esi, esi
je 0x4bd381
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004bc440
add esp, 8
test eax, eax
je 0x4bd381
mov ecx, dword [ebp - 0x10]
push ecx
push edi
call fcn.004bc554
add esp, 8
test eax, eax
je 0x4bd381
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.004bc824
add esp, 8
test eax, eax
je 0x4bd381
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test eax, eax
je 0x4bd381
push esi
call sub.USER32.dll_SetThreadDesktop
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bd247
push 0x5ff4b6
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 0x4bd338
call sub.ADVAPI32.dll_RevertToSelf
lea eax, [ebp - 0x8fc]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.00403494
add esp, 8
lea ecx, [ebp - 0x2e4]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00403494
add esp, 8
lea edx, [ebp - 0x6f4]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403494
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4bd29e
mov dword [ebp + 0xc], 0x5ff4ce
mov edx, 0x5ff4d0
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jne 0x4bd2b1
mov dword [ebp + 0xc], 0x5ff4d1
lea eax, [ebp - 0x4ec]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403494
add esp, 8
lea ecx, [ebp - 0xbc]
push 0x44
push 0
push ecx
call fcn.004d2d9c
mov dword [ebp - 0xbc], 0x44
mov dword [ebp - 0xb4], 0x5ff4d3
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 0x4bd37c
jmp 0x4bd37c
push 0x44
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.004d2d9c
mov dword [ebp - 0x78], 0x44
add esp, 0xc
lea edx, [ebp - 0x34]
mov dword [ebp - 0x70], 0x5ff4f3
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 0x4bd3a1
push 0x5ff503
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4bd3a1
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 4]
push edx
call eax
test ebx, ebx
je 0x4bd3ab
push ebx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bd3bb
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4bd3cb
mov edx, dword [ebp - 0x24]
push edx
call sub.USER32.dll_SetThreadDesktop
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4bd3db
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_SetProcessWindowStation
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4bd3ec
lea ecx, [ebp - 0x10]
push ecx
call fcn.004bc53c
pop ecx
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4bd3fd
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x4bd40e
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_CloseHandle
test edi, edi
je 0x4bd418
push edi
call sub.USER32.dll_CloseWindowStation
test esi, esi
je 0x4bd422
push esi
call sub.USER32.dll_CloseDesktop
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret