Function at 0x4156b0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd24
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc9c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xca8], eax
test esi, esi
jne 0x4156ef
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
push ebx
xor eax, eax
mov dword [ebp - 0xc48], 0
push edi
push 0x20a
push eax
mov word [ebp - 0xc58], ax
mov dword [ebp - 0xc30], eax
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc2c], 7
call fcn.0042b800
push 0x104
lea eax, [ebp - 0x620]
push esi
push eax
call fcn.0043afb8
xor eax, eax
add esp, 0x18
mov word [ebp - 0x41a], ax
mov dword [ebp - 0xc90], eax
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x4157fe
mov edx, dword [ebx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415780
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc58]
call fcn.0040cfe0
mov esi, 1
cmp dword [ebp - 0xc90], esi
jle 0x4157f7
nop dword [eax]
mov edx, dword [ebx + esi*4]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4157c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc40]
call fcn.00413c10
push 1
push 0x45d3d8
lea ecx, [ebp - 0xc40]
call fcn.00413c10
inc esi
cmp esi, dword [ebp - 0xc90]
jl 0x4157b0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0xd20], xmm0
mov ebx, 8
movlpd qword [ebp - 0xd18], xmm0
movlpd qword [ebp - 0xd10], xmm0
movlpd qword [ebp - 0xd08], xmm0
movlpd qword [ebp - 0xd00], xmm0
movlpd qword [ebp - 0xcf8], xmm0
movlpd qword [ebp - 0xcf0], xmm0
movlpd qword [ebp - 0xce8], xmm0
mov dword [ebp - 0xc8c], 0
mov dword [ebp - 0xc98], 0
mov dword [ebp - 0xd24], 0x44
movups xmmword [ebp - 0xce0], xmm0
movups xmmword [ebp - 0xcd0], xmm0
movups xmmword [ebp - 0xcb8], xmm0
cmp eax, 0xffffff9c
jne 0x41590a
cmp dword [ebp - 0xc2c], ebx
lea edx, [ebp - 0xcb8]
push edx
lea edx, [ebp - 0xd24]
push edx
push 0
push 0
push ebx
push 0
push 0
lea ecx, [ebp - 0xc40]
cmovae ecx, dword [ebp - 0xc40]
lea eax, [ebp - 0xc58]
cmp dword [ebp - 0xc44], ebx
push 0
cmovae eax, dword [ebp - 0xc58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
neg edi
sbb edi, edi
and edi, 2
add edi, 0xfffffffe
mov ecx, dword [ebp - 0xc9c]
test ecx, ecx
je 0x4158ea
mov eax, dword [ebp - 0xcb0]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xca8]
test ecx, ecx
je 0x415c79
xor eax, eax
test edi, edi
cmove eax, dword [ebp - 0xcb8]
mov dword [ecx], eax
jmp 0x415c8a
push dword [ebp + 0x18]
lea ecx, [ebp - 0xc8c]
push ecx
push eax
call fcn.004160b0
mov edi, eax
add esp, 0xc
test edi, edi
js 0x415ce6
push 0
push dword [ebp - 0xc8c]
lea eax, [ebp - 0xc98]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
mov ecx, 0x408
lea eax, [ebp - 0xcbc]
push eax
push 0x400
lea eax, [ebp - 0xc28]
cmovne ebx, ecx
push eax
push 1
push dword [ebp - 0xc8c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x415980
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfffffffb
jmp 0x4158ea
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0xca0], 0x104
push 0
push eax
mov dword [ebp - 0xca4], 0x104
call fcn.0042b800
push 0x208
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.0042b800
add esp, 0x18
lea eax, [ebp - 0xcc0]
push eax
lea eax, [ebp - 0xca0]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0xca4]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xc28]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x415a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfffffffa
jmp 0x4158ea
mov esi, dword [0x47bbf8]
lea eax, [ebp - 0x414]
mov dword [ebp - 0xce0], 0x20
mov dword [ebp - 0xcd8], eax
mov dword [ebp - 0xc94], 0
test esi, esi
je 0x415a3f
cmp dword [0x47bbf4], 0
jne 0x415b63
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0042b800
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x415b5d
xor eax, eax
mov dword [ebp - 0xc60], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xc5c], 7
mov word [ebp - 0xc70], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a95
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc70]
call fcn.0040cfe0
push 0x16
push str._system32Netapi32.dll
lea ecx, [ebp - 0xc70]
call fcn.00413c10
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xc70]
call fcn.0040c360
push str.Netapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x415b30
cmp dword [ebp - 0xc74], 8
lea eax, [ebp - 0xc88]
cmovae eax, dword [ebp - 0xc88]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x415b52
push str.NetApiBufferFree
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetUserGetInfo
push esi
mov dword [0x47bbf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47bbf8], eax
lea ecx, [ebp - 0xc88]
call fcn.0040c360
mov esi, dword [0x47bbf8]
test esi, esi
je 0x4158ea
cmp dword [0x47bbf4], 0
je 0x4158ea
lea eax, [ebp - 0xc94]
mov ecx, esi
push eax
push 4
lea eax, [ebp - 0x414]
push eax
push 0
call dword [0x45343c]
call esi
test eax, eax
jne 0x415bd1
mov ecx, dword [ebp - 0xc94]
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x415bc0
cmp word [eax], 0
je 0x415bc0
push eax
call fcn.0043b1ff
mov ecx, dword [ebp - 0xc94]
add esp, 4
mov dword [ebp - 0xcd4], eax
mov esi, dword [0x47bbf4]
push ecx
mov ecx, esi
call dword [0x45343c]
call esi
lea eax, [ebp - 0xce0]
push eax
push dword [ebp - 0xc8c]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x415bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfffffff9
jmp 0x4158ea
cmp dword [ebp - 0xc2c], 8
lea edx, [ebp - 0xcb8]
push edx
lea edx, [ebp - 0xd24]
mov dword [ebp - 0xd1c], 0x45d894
push edx
push 0
push dword [ebp - 0xc98]
lea ecx, [ebp - 0xc40]
cmovae ecx, dword [ebp - 0xc40]
lea eax, [ebp - 0xc58]
cmp dword [ebp - 0xc44], 8
push ebx
cmovae eax, dword [ebp - 0xc58]
push 0
push 0
push 0
push ecx
push eax
push dword [ebp - 0xc8c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4158d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfffffff8
jmp 0x4158ea
mov eax, dword [ebp - 0xcb8]
test eax, eax
je 0x415c8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xcc4]
test eax, eax
je 0x415ca1
push eax
push dword [ebp - 0xc8c]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0xcd4]
test eax, eax
je 0x415cb4
push eax
call fcn.0043b170
add esp, 4
mov eax, dword [ebp - 0xc98]
test eax, eax
je 0x415cc4
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0xc8c]
test eax, eax
je 0x415cd5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xcb4]
test eax, eax
je 0x415ce6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc2c]
cmp edx, 8
jb 0x415d26
mov ecx, dword [ebp - 0xc40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415d1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d92
push edx
push ecx
call fcn.00428a68
add esp, 8
mov edx, dword [ebp - 0xc44]
xor eax, eax
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 7
mov word [ebp - 0xc40], ax
cmp edx, 8
jb 0x415d7f
mov ecx, dword [ebp - 0xc58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415d75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d92
push edx
push ecx
call fcn.00428a68
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00428a27
mov esp, ebp
pop ebp
ret
call fcn.0043af68
int3