Function at 0x519f40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x547570]
push ebx
push ebp
push esi
push edi
mov ecx, str.runas
xor edi, edi
mov dword [esp + 0x10], eax
test ecx, ecx
mov dword [esp + 0xc4], edi
je 0x519fb6
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x519fb6
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x519fb6
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
cmp eax, edi
mov esi, ecx
jne 0x519f91
cmp ecx, edi
jne 0x519fab
push eax
push ecx
push 0xffffffffffffffff
push str.runas
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jle 0x519fab
mov word [esi + eax*2 - 2], di
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405bb0
mov ebp, dword [esp + 0xd0]
mov edx, dword [0x547570]
cmp ebp, edi
mov dword [esp + 0x14], edx
je 0x51a01a
mov eax, ebp
shr eax, 0x10
jne 0x519fe6
mov ecx, ebp
and ecx, 0xffff
push ecx
lea ecx, [esp + 0x18]
call fcn.00413ae0
jmp 0x51a01a
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x51a01a
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x51a01a
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.005322f9
mov ecx, dword [0x547574]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51a062
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x51a062
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x51a08d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x51a08d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test bl, bl
je 0x51a0cb
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd4]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
call fcn.0051a5a0
test eax, eax
je 0x51a3b5
lea ecx, [esp + 0xac]
call fcn.0051a440
mov eax, dword [esp + 0xc0]
cmp eax, edi
je 0x51a39c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
cmp dword [esp + 0x10], edi
je 0x51a393
cmp ebp, edi
mov esi, 0x554e08
je 0x51a137
push ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0xc8], 1
call fcn.00412590
mov ecx, eax
call fcn.0042d010
mov dword [esp + 0x14], eax
jmp 0x51a13b
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xdc]
cmp eax, edi
je 0x51a16e
mov edx, dword [esp + 0xc4]
push eax
or edx, 2
lea ecx, [esp + 0x44]
mov dword [esp + 0xc8], edx
call fcn.00412590
mov ecx, eax
call fcn.0042d010
mov dword [esp + 0x18], eax
jmp 0x51a172
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xd8]
cmp eax, edi
je 0x51a1a1
mov edx, dword [esp + 0xc4]
push eax
or edx, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc8], edx
call fcn.00412590
mov ecx, eax
call fcn.0042d010
mov esi, eax
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0x98]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x94], eax
mov ebx, eax
mov eax, dword [esp + 0x14]
mov word [esp + 0x8c], 3
mov edi, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0xac], edx
mov word [esp + 0x80], 0
call fcn.0051a3f0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x28], eax
mov word [esp + 0x70], 0
call fcn.0051a3f0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov word [esp + 0x60], 0
call fcn.0051a3f0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x68]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.0051a700
sub esp, 0x10
mov eax, dword [eax]
mov edx, esp
sub esp, 0x10
mov ecx, dword [eax]
mov dword [edx], edi
mov edi, dword [esp + 0xc8]
mov dword [edx + 4], ebp
mov dword [edx + 8], ebx
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x3c]
mov edx, esp
sub esp, 0x10
mov dword [edx], edi
mov edi, dword [esp + 0x50]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x54]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x58]
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x74]
mov edx, esp
mov dword [edx], edi
mov edi, dword [esp + 0x78]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x80]
sub esp, 0x10
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x6c]
mov edx, esp
push esi
push eax
mov dword [edx], edi
mov edi, dword [esp + 0x78]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x80]
mov dword [edx + 0xc], edi
call dword [ecx + 0x7c]
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00514790
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x6c]
push ecx
call esi
lea edx, [esp + 0x7c]
push edx
call esi
lea eax, [esp + 0x8c]
push eax
call esi
mov ebx, dword [esp + 0xc4]
test bl, 4
je 0x51a374
lea ecx, [esp + 0x58]
and ebx, 0xfffffffb
call fcn.00405700
test bl, 2
je 0x51a385
lea ecx, [esp + 0x40]
and ebx, 0xfffffffd
call fcn.00405700
test bl, 1
je 0x51a393
lea ecx, [esp + 0x54]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00514790
lea ecx, [esp + 0xac]
call fcn.0051a5c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd4]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret