Function at 0x4b7fac
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 0x4b8001
mov dword [ebp + 0xc], 0x5e4404
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
jne 0x4b8011
mov dword [ebp + 0xc], 0x5e4406
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 0x4b8051
test esi, esi
je 0x4b804a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5e4408
push esi
call fcn.004d1ac0
add esp, 0x10
xor edi, edi
jmp 0x4b8401
push 0x5e4420
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
jne 0x4b806d
push 0x5e442c
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4b80db
push 0x5e4438
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b8094
push 0x5e4449
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4b80db
push 0x20
push 0
lea ecx, [ebp - 0xe4]
push ecx
call fcn.004cd264
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 0x4b8107
test esi, esi
je 0x4b8100
push esi
mov edi, esi
mov esi, 0x5e445b
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 0x4b8401
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call sub.USER32.dll_GetThreadDesktop
mov dword [ebp - 0x2c], eax
push 0x60376
push 0
push 0x5e446a
call sub.USER32.dll_OpenWindowStationA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4b814e
test esi, esi
je 0x4b8147
push esi
mov edi, esi
mov esi, 0x5e4472
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 0x4b8401
mov eax, dword [ebp - 0x10]
push eax
call sub.USER32.dll_SetProcessWindowStation
test eax, eax
jne 0x4b8179
test esi, esi
je 0x4b8172
push esi
mov edi, esi
mov esi, 0x5e4483
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 0x4b8401
push 0x6008f
push 0
push 1
push 0x5e4494
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 0x4b81b9
test esi, esi
je 0x4b81b2
push esi
mov edi, esi
mov esi, 0x5e449c
mov eax, edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop esi
xor edi, edi
jmp 0x4b8401
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4b81db
test esi, esi
je 0x4b81d4
push esi
mov edi, esi
mov esi, 0x5e44b0
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 0x4b8401
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004b7878
add esp, 8
test eax, eax
jne 0x4b820e
test esi, esi
je 0x4b8207
push esi
mov edi, esi
mov esi, 0x5e44bb
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 0x4b8401
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004b798c
add esp, 8
test eax, eax
jne 0x4b8242
test esi, esi
je 0x4b823b
push esi
mov edi, esi
mov esi, 0x5e44c9
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 0x4b8401
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b7c5c
add esp, 8
test eax, eax
jne 0x4b8274
test esi, esi
je 0x4b826d
push esi
mov edi, esi
mov esi, 0x5e44dc
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 0x4b8401
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
test eax, eax
jne 0x4b829e
test esi, esi
je 0x4b8297
push esi
mov edi, esi
mov esi, 0x5e44ed
mov eax, edi
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
xor edi, edi
jmp 0x4b8401
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 0x4b82c4
push 0x5e44fd
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 0x4b8392
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.004cd264
mov dword [ebp - 0xc4], 0x44
mov dword [ebp - 0xbc], 0x5e4515
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 0x4b83d7
jmp 0x4b83d7
push 0x44
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.004cd264
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 0x4b8401
test esi, esi
je 0x4b83ff
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5e4535
push esi
call fcn.004d1ac0
add esp, 0x10
xor edi, edi
test ebx, ebx
je 0x4b8421
push 0x5e4548
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4b8421
mov edx, dword [ebp - 0xc8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call eax
test ebx, ebx
je 0x4b842b
push ebx
call sub.KERNEL32.dll_FreeLibrary
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b843b
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.dll_FreeLibrary
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4b844b
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.USER32.dll_SetThreadDesktop
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b845b
mov edx, dword [ebp - 0x14]
push edx
call sub.USER32.dll_SetProcessWindowStation
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b846c
lea eax, [ebp - 0x18]
push eax
call fcn.004b7974
pop ecx
mov edx, dword [ebp - 4]
cmp edx, 0xffffffff
je 0x4b847d
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x4b848e
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b849e
mov eax, dword [ebp - 0x10]
push eax
call sub.USER32.dll_CloseWindowStation
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4b84ae
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