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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
xor esi, esi
push 0x20
lea eax, [esp + 0x44]
push esi
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], esi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.004131f0
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x48], ebp
mov byte [esp + 0x64], bl
test al, 1
je 0x446240
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
push ebp
call fcn.0043916a
test al, al
je 0x446475
test byte [esp + 0x70], 2
je 0x446298
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
push 1
push 2
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x446475
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
push 0x60000
push 0
push 0x484960
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x446475
cmp edi, 0xffffffff
je 0x446475
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x446475
push 0x60081
push 0
push 0
push 0x484970
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov ebx, eax
test ebx, ebx
je 0x446475
cmp ebx, 0xffffffff
je 0x446475
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0043919d
test al, al
je 0x446475
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0xb
mov dword [esp + 0x38], 0xf0000000
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 4
mov dword [esp + 0x44], 0xf037f
call fcn.00445fe0
test al, al
je 0x446475
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov dword [esp + 0x38], 0xf01ff
call fcn.00445dd3
test al, al
je 0x446475
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x2c]
mov dword [eax + 8], 0x484980
mov eax, dword [esp + 0x74]
and ebp, 0x100
mov dword [esp + 0x6c], ebp
test eax, eax
je 0x4463d6
push eax
call fcn.004112d5
mov ebp, eax
inc ebp
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041171a
mov esi, eax
mov eax, dword [esp + 0x7c]
push ebp
push eax
push esi
call fcn.0041326a
mov ebp, dword [esp + 0x80]
add esp, 0x14
cmp byte [esp + 0x64], 0
je 0x4463f5
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x446475
test byte [esp + 0x70], 4
jne 0x446412
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x446475
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
or eax, 0x400
push eax
mov eax, dword [esp + 0x2c]
push ebp
push 0
push 0
push esi
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x446475
cmp byte [esp + 0x64], 0
je 0x44646e
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
call fcn.00439102
mov byte [esp + 0x17], 1
jmp 0x446489
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x446489
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov edx, dword [esp + 0x1c]
push edx
call fcn.00438fb6
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
push ebx
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004112ef
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x24