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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab8d9
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x574e7b
cmp dword [eax], 0
je 0x574e7b
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 1
push 0x44
push eax
mov dword [ebp - 0x8c], eax
mov dword [edi + 0x38], eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004c76f0
mov cl, byte [edi + 1]
add esp, 0xc
mov dword [ebp - 0xe8], 0x44
mov dword [ebp - 0xbc], 1
test cl, cl
je 0x5745cf
movzx eax, word [edi + 0x20]
test ax, ax
jne 0x5745d6
xor eax, eax
test cl, cl
setne al
mov word [ebp - 0xb8], ax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x5745f3
mov dword [ebp - 0xe0], str.WinSta0Default
cmp byte [edi + 0x19], al
je 0x5745f9
mov dword [ebp - 0xe0], eax
mov eax, dword [edi + 0x10]
mov ecx, 0x28
test eax, eax
cmove eax, ecx
cmp byte [esi + 0xc], 0
mov dword [ebp - 0x88], eax
jne 0x574618
cmp byte [edi + 0x18], 0
je 0x574621
or eax, 4
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x574688
push eax
lea ecx, [ebp - 0x58]
call fcn.00444ee0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x574640
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00447e80
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00444ea0
push 0x5e2170
lea ecx, [ebp - 0x58]
call fcn.00444ee0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x574672
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00447e80
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00444ea0
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5746a5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004459d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00447e80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5746f8
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
cmp byte [edi + 0x15], 0
je 0x574770
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x80], ecx
test ecx, ecx
jne 0x574715
mov esi, 0xfe2b0003
jmp 0x574dc2
push dword [edi + 0x3c]
mov esi, dword [ecx]
lea eax, [ebp - 0x40]
push dword [edi + 0x28]
cmp dword [ebp - 0x2c], 8
push dword [edi + 0x34]
cmovae eax, dword [ebp - 0x40]
push dword [edi + 0x30]
mov esi, dword [esi + 8]
mov ecx, esi
push dword [edi + 0x24]
push eax
call dword [0x5c3794]
mov ecx, dword [ebp - 0x80]
call esi
mov esi, eax
test esi, esi
je 0x574770
push 0
push 0
push esi
push str.VerifyFileSignature_IsValid
push 0x45
push 0x10b
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x20
jmp 0x574dc2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, 0x22
cmovae eax, dword [ebp - 0x40]
cmp cx, word [eax]
je 0x5747a5
push 1
push 0x5ded84
push 0
lea ecx, [ebp - 0x40]
call fcn.0044dd60
push 1
push 0x5ded84
lea ecx, [ebp - 0x40]
call fcn.00447e80
mov eax, dword [ebx + 4]
mov esi, 1
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 2
cmp eax, esi
jbe 0x5748a4
nop dword [eax]
mov edx, dword [ecx + esi*4]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x80], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5747e0
sub ecx, dword [ebp - 0x80]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004459d0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x78]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00447e80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x574834
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x5dbea0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004459d0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x78]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00447e80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x574891
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
mov eax, dword [ebx + 4]
inc esi
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5747c0
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x5dbea0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004459d0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.00483460
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x5748ec
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00447e80
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x574911
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.00446620
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
cmp eax, 8
jb 0x574944
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
cmp byte [edi], 0
je 0x574cdf
mov ebx, dword [edi + 0x1c]
test ebx, ebx
jne 0x5749d4
push 0xc
mov dword [ebp - 0x80], ebx
call fcn.004c59e9
add esp, 4
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0058a430
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
test ecx, ecx
je 0x5749bd
push ebx
push ebx
push ecx
push str.CWinsecApiImpersonateLoggedInUser
push 0x45
push 0x144
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x20
mov esi, 0xfe2b0026
jmp 0x574dc2
mov ecx, eax
call fcn.0058a370
mov ebx, eax
test ebx, ebx
jne 0x5749d4
mov esi, 0xfe2b0026
jmp 0x574dc2
push 0x20
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004c76f0
add esp, 0xc
cmp byte [edi + 0x14], 0
je 0x574b5f
cmp dword [edi + 0x1c], 0
jne 0x574a02
push ebx
call fcn.00574eb0
test al, al
jne 0x574ada
lea edx, [ebp - 0x58]
mov dword [ebp - 0x60], 0x20
mov ecx, ebx
mov dword [ebp - 0x5c], 1
call fcn.0058a4a0
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x574a55
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::LoadUserProfile
push 0x57
push 0x16c
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x20
jmp 0x574ada
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x94], eax
test eax, eax
je 0x574ab6
push eax
call fcn.004d4367
inc eax
add esp, 4
cmp eax, 0x3fffffff
jle 0x574a77
xor eax, eax
jmp 0x574abb
add eax, eax
mov dword [ebp - 0x80], eax
call fcn.004c6740
mov eax, esp
mov dword [ebp - 0x84], eax
test eax, eax
je 0x574a73
push 0
push 0
push dword [ebp - 0x80]
mov byte [eax], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0x94]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x84]
jmp 0x574abb
mov eax, str._no_user_name_
push eax
push str.User_profile_loaded_for_user__s
push 0x49
push 0x172
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573940
add esp, 0x18
push 0
push ebx
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x574bfc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::CreateEnvironmentBlock
push 0x45
push 0x17c
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
mov eax, dword [ebp - 0x8c]
add esp, 0x20
test eax, eax
je 0x574b55
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
jne 0x574b55
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5f7cf0
push 0x45
push 0x187
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x20
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
push dword [edi + 8]
push dword [ebp - 0x8c]
push eax
movzx eax, byte [edi + 0x17]
push eax
push 0
push 0
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x574c0c
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x7c]
mov dword [edi + 0x38], eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ecx + 4]
call fcn.004abd50
mov eax, dword [ebp - 0x44]
xor esi, esi
test eax, eax
je 0x574dc2
push eax
push ebx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
test eax, eax
jne 0x574bef
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::UnloadUserProfile
push 0x45
push 0x1a8
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x20
mov ecx, dword [ebp - 0x58]
call fcn.0058a680
jmp 0x574dc2
mov eax, dword [ebp - 0x88]
or eax, 0x400
jmp 0x574b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x80], edi
test esi, esi
je 0x574c70
push esi
call fcn.004d4367
inc eax
add esp, 4
cmp eax, 0x3fffffff
jle 0x574c30
xor eax, eax
jmp 0x574c75
add eax, eax
mov dword [ebp - 0x84], eax
call fcn.004c6740
mov edi, esp
test edi, edi
je 0x574c69
push 0
push 0
push dword [ebp - 0x84]
mov byte [edi], 0
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 0x80]
jmp 0x574c75
mov edi, dword [ebp - 0x80]
xor eax, eax
jmp 0x574c75
mov eax, 0x5d9130
push eax
push 0x5d9130
push str.Unable_to_spawn_Application:__s__s
push 0
push edi
push str.CreateProcessAsUser
push 0x45
push 0x1b6
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x28
mov ecx, edi
call fcn.005743e0
mov esi, eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x574dc2
push eax
push ebx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
test eax, eax
jne 0x574bef
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::UnloadUserProfile
push 0x45
push 0x1bd
jmp 0x574bdd
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [edi + 8]
mov eax, dword [ebp - 0x88]
push 0
push eax
movzx eax, byte [edi + 0x17]
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x574d31
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x7c]
mov dword [edi + 0x38], eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebx + 4]
call fcn.004abd50
xor esi, esi
jmp 0x574dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x574d88
push esi
call fcn.004d4367
inc eax
add esp, 4
cmp eax, 0x3fffffff
jle 0x574d52
xor eax, eax
jmp 0x574d8d
add eax, eax
mov dword [ebp - 0x84], eax
call fcn.004c6740
mov edi, esp
test edi, edi
je 0x574d4e
push 0
push 0
push dword [ebp - 0x84]
mov byte [edi], 0
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x574d8d
mov eax, 0x5d9130
push eax
push 0x5d9130
push str.Unable_to_spawn_Application:__s__s
push 0
push ebx
push str.CreateProcess
push 0x45
push 0x1ef
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x28
mov ecx, ebx
call fcn.005743e0
mov esi, eax
mov ebx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x574e01
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
jne 0x574e01
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::DestroyEnvironmentBlock
push 0x45
push 0x1f9
push str.C:drone_src_srcCommonIPCProcessAPI.cpp
push str.CProcessApi::Launch
call fcn.00573980
add esp, 0x20
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x574e1d
mov ecx, edi
call fcn.0058a380
push 0xc
push edi
call fcn.004c5d7f
add esp, 8
lea ecx, [ebx + 0x14]
call fcn.00581240
lea ecx, [ebx + 0x18]
call fcn.00581240
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x574e48
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x78]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x64], 7
cmp eax, 8
jb 0x574e77
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
mov eax, esi
jmp 0x574e80
mov eax, 0xfe2b0002
lea esp, [ebp - 0xf8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 8