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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6fc
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 0x18]
mov edi, 1
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
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4b8b45
mov dword [ebp + 0xc], 0x5e59c0
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
jne 0x4b8b55
mov dword [ebp + 0xc], 0x5e59c2
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
jne 0x4b8b95
test esi, esi
je 0x4b8b8e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5e59c4
push esi
call fcn.004d26c8
add esp, 0x10
xor edi, edi
jmp 0x4b8f45
push 0x5e59dc
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
jne 0x4b8bb1
push 0x5e59e8
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4b8c1f
push 0x5e59f4
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b8bd8
push 0x5e5a05
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4b8c1f
push 0x20
push 0
lea ecx, [ebp - 0xe4]
push ecx
call fcn.004cde6c
mov dword [ebp - 0xe4], 0x20
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0xe4]
mov dword [ebp - 0xe0], 1
push edx
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x20]
test eax, eax
call sub.USER32.dll_GetProcessWindowStation
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4b8c4b
test esi, esi
je 0x4b8c44
push esi
mov edi, esi
mov esi, 0x5e5a17
mov eax, edi
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call sub.USER32.dll_GetThreadDesktop
mov dword [ebp - 0x2c], eax
push 0x60376
push 0
push 0x5e5a26
call sub.USER32.dll_OpenWindowStationA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4b8c92
test esi, esi
je 0x4b8c8b
push esi
mov edi, esi
mov esi, 0x5e5a2e
mov eax, edi
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
mov eax, dword [ebp - 0x10]
push eax
call sub.USER32.dll_SetProcessWindowStation
test eax, eax
jne 0x4b8cbd
test esi, esi
je 0x4b8cb6
push esi
mov edi, esi
mov esi, 0x5e5a3f
mov eax, edi
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
push 0x6008f
push 0
push 1
push 0x5e5a50
call sub.USER32.dll_OpenDesktopA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.USER32.dll_SetProcessWindowStation
test eax, eax
jne 0x4b8cfd
test esi, esi
je 0x4b8cf6
push esi
mov edi, esi
mov esi, 0x5e5a58
mov eax, edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4b8d1f
test esi, esi
je 0x4b8d18
push esi
mov edi, esi
mov esi, 0x5e5a6c
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004b83bc
add esp, 8
test eax, eax
jne 0x4b8d52
test esi, esi
je 0x4b8d4b
push esi
mov edi, esi
mov esi, 0x5e5a77
mov eax, edi
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004b84d0
add esp, 8
test eax, eax
jne 0x4b8d86
test esi, esi
je 0x4b8d7f
push esi
mov edi, esi
mov esi, 0x5e5a85
mov eax, edi
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b87a0
add esp, 8
test eax, eax
jne 0x4b8db8
test esi, esi
je 0x4b8db1
push esi
mov edi, esi
mov esi, 0x5e5a98
mov eax, edi
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test eax, eax
jne 0x4b8de2
test esi, esi
je 0x4b8ddb
push esi
mov edi, esi
mov esi, 0x5e5aa9
mov eax, edi
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
xor edi, edi
jmp 0x4b8f45
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_SetThreadDesktop
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b8e08
push 0x5e5ab9
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4b8ed6
lea ecx, [ebp - 0x904]
push ecx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040348c
add esp, 8
lea edx, [ebp - 0x2ec]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040348c
add esp, 8
lea eax, [ebp - 0x6fc]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040348c
add esp, 8
lea ecx, [ebp - 0x4f4]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040348c
add esp, 8
lea edx, [ebp - 0xc4]
push 0x44
push 0
push edx
call fcn.004cde6c
mov dword [ebp - 0xc4], 0x44
mov dword [ebp - 0xbc], 0x5e5ad1
mov dword [ebp - 0x98], 1
mov word [ebp - 0x94], 5
add esp, 0xc
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xc4]
lea edx, [ebp - 0x904]
push ecx
push eax
push 0
push 0
push 0x4000210
push edx
push 0
lea ecx, [ebp - 0x6fc]
push 1
push ecx
lea eax, [ebp - 0x4f4]
lea edx, [ebp - 0x2ec]
push eax
push edx
call dword [ebp - 0x28]
test eax, eax
je 0x4b8f1b
jmp 0x4b8f1b
push 0x44
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.004cde6c
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x78], eax
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0x4000210
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 - 0x1c], eax
call sub.ADVAPI32.dll_RevertToSelf
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4b8f45
test esi, esi
je 0x4b8f43
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5e5af1
push esi
call fcn.004d26c8
add esp, 0x10
xor edi, edi
test ebx, ebx
je 0x4b8f65
push 0x5e5b04
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4b8f65
mov edx, dword [ebp - 0xc8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call eax
test ebx, ebx
je 0x4b8f6f
push ebx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b8f7f
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.dll_FreeLibrary
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4b8f8f
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.USER32.dll_SetThreadDesktop
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b8f9f
mov edx, dword [ebp - 0x14]
push edx
call sub.USER32.dll_SetProcessWindowStation
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b8fb0
lea eax, [ebp - 0x18]
push eax
call fcn.004b84b8
pop ecx
mov edx, dword [ebp - 4]
cmp edx, 0xffffffff
je 0x4b8fc1
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x4b8fd2
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b8fe2
mov eax, dword [ebp - 0x10]
push eax
call sub.USER32.dll_CloseWindowStation
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4b8ff2
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_CloseDesktop
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret