Function at 0x41d070
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e0ab
mov eax, dword fs:[0]
push eax
mov eax, 0x1d20
call fcn.004290f0
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1cd4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1cbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1ccc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1cc8], edi
mov dword [ebp - 0x1cd8], eax
mov dword [ebp - 0x1cb4], 0
test edi, edi
jne 0x41d0e6
mov eax, 0x80070057
jmp 0x41da8f
cmp byte [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41d8f4
call fcn.00424430
test eax, eax
je 0x41d8f4
lea eax, [ebp - 0x1ca4]
mov dword [ebp - 0x1c88], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x1c88]
mov word [ebp - 0x1c84], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x1ca8], eax
test eax, eax
je 0x41d8f4
lea eax, [ebp - 0x1ca8]
push eax
push dword [ebp - 0x1ca4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x1ca4]
neg eax
sbb eax, eax
and dword [ebp - 0x1ca8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x1ca8], 0
je 0x41d8f4
lea eax, [ebp - 0x1cac]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41d8f4
lea eax, [ebp - 0x1cc4]
mov dword [ebp - 0x1cb0], 1
push eax
push 4
lea eax, [ebp - 0x1cb0]
mov dword [ebp - 0x1cc4], 0
push eax
push 0x12
push dword [ebp - 0x1cac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1cac]
test eax, eax
jne 0x41d1e6
call edi
jmp 0x41d8f4
call edi
cmp dword [ebp - 0x1cb0], 2
jne 0x41d8f4
push 0
push str.Progman
mov dword [ebp - 0x1cd0], 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41d21e
lea ecx, [ebp - 0x1cd0]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
xor esi, esi
mov dword [ebp - 0x1cb8], 0x3000
push esi
push 0x1fffff
mov dword [ebp - 0x1cac], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [ebp - 0x1cc0]
mov dword [ebp - 0x1cb0], eax
test ecx, ecx
je 0x41d360
test eax, eax
je 0x41d354
lea eax, [ebp - 0x1cac]
push eax
push 0xf01ff
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41d354
lea eax, [ebp - 0x1ca8]
mov dword [ebp - 0x1ca8], esi
push eax
push esi
push esi
push 0x19
push dword [ebp - 0x1cac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41d34c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41d34c
mov eax, dword [ebp - 0x1ca8]
test eax, eax
je 0x41d34c
push eax
push esi
push dword [ebp - 0x1cb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1ca4], eax
test eax, eax
je 0x41d34c
lea ecx, [ebp - 0x1ca8]
push ecx
push dword [ebp - 0x1ca8]
push eax
push 0x19
push dword [ebp - 0x1cac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41d338
mov eax, dword [ebp - 0x1ca4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
test eax, eax
je 0x41d333
movzx eax, byte [eax]
dec eax
push eax
mov eax, dword [ebp - 0x1ca4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
test eax, eax
je 0x41d333
mov eax, dword [eax]
mov dword [ebp - 0x1cb8], eax
jmp 0x41d338
mov esi, 0x8000ffff
push dword [ebp - 0x1ca4]
push 0
push dword [ebp - 0x1cb0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1cac]
call edi
push dword [ebp - 0x1cc0]
call edi
test esi, esi
js 0x41d368
mov eax, dword [ebp - 0x1cb8]
jmp 0x41d36d
mov eax, 0x3000
test esi, esi
js 0x41d8f4
cmp eax, 0x2000
jbe 0x41d8f4
push dword [ebp - 0x1cd0]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1cb0], eax
test eax, eax
je 0x41d8f4
lea ecx, [ebp - 0x1cc4]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41d8ca
lea eax, [ebp - 0x1c88]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x1cc4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x41d3f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d3f2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41d8ab
push str.AdvApi32.dll
mov dword [ebp - 0x1ca4], 0
call fcn.004246d0
add esp, 4
mov dword [ebp - 0x1cc0], eax
test eax, eax
je 0x41d42e
lea ecx, [ebp - 0x1ca4]
push ecx
push str.CreateProcessWithTokenW
push eax
call fcn.00423070
add esp, 0xc
cmp dword [ebp - 0x1ca4], 0
je 0x41d883
xorps xmm0, xmm0
mov dword [ebp - 0x1c90], 0
xor eax, eax
mov dword [ebp - 0x1c8c], 0
mov word [ebp - 0x1cea], ax
mov eax, dword [ebp - 0x1ccc]
mov word [ebp - 0x1cfc], ax
xor eax, eax
movlpd qword [ebp - 0x1d28], xmm0
movlpd qword [ebp - 0x1d20], xmm0
movlpd qword [ebp - 0x1d18], xmm0
movlpd qword [ebp - 0x1d10], xmm0
movlpd qword [ebp - 0x1d08], xmm0
movlpd qword [ebp - 0x1cfa], xmm0
movlpd qword [ebp - 0x1cf2], xmm0
movups xmmword [ebp - 0x1ce8], xmm0
mov dword [ebp - 0x1d2c], 0x44
mov dword [ebp - 0x1d00], 1
mov dword [ebp - 0x1c90], 0
mov dword [ebp - 0x1c8c], 7
mov word [ebp - 0x1ca0], ax
mov dword [ebp - 4], eax
push 0x618
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0042a3f0
push 0x618
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.0042a3f0
push 0x618
lea eax, [ebp - 0x1c80]
push 0
push eax
call fcn.0042a3f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042a3f0
push 0x618
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.0042a3f0
mov eax, dword [ebp - 0x1cbc]
add esp, 0x3c
mov esi, 1
mov dword [ebp - 0x1cb4], esi
test eax, eax
je 0x41d566
push eax
lea eax, [ebp - 0x1c80]
push 0x30c
push eax
call fcn.0042f9f7
add esp, 0xc
push dword [ebp - 0x1cc8]
lea eax, [ebp - 0x830]
push 0x30c
push eax
call fcn.0042f9f7
push dword [ebp - 0x1cc8]
call fcn.0041fe60
add esp, 0x10
test eax, eax
je 0x41d5a6
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f9f7
add esp, 0xc
jmp 0x41d5af
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push str..exe
push eax
call fcn.0042fd77
add esp, 8
test eax, eax
je 0x41d6f7
lea eax, [ebp - 0x1cb8]
mov dword [ebp - 0x1cb8], 0x104
push eax
lea eax, [ebp - 0x1668]
push eax
push str.open
lea eax, [ebp - 0x218]
push eax
push 2
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x41d6e9
cmp dword [ebp - 0x1cb8], 0
je 0x41d6e9
lea eax, [ebp - 0x1668]
push eax
lea eax, [ebp - 0xe48]
push 0x30c
push eax
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0xe48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [ebp - 0xe48]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d650
sub ecx, edx
lea eax, [ebp - 0xe48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1ca0]
call fcn.004178e0
push 0x450d80
lea ecx, [ebp - 0x1ca0]
call fcn.0040e1f0
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x1ca0]
call fcn.0040e1f0
cmp dword [ebp - 0x1c90], 0x30c
jb 0x41d6aa
xor esi, esi
mov dword [ebp - 0x1cb4], esi
jmp 0x41d6d3
cmp dword [ebp - 0x1c8c], 8
lea eax, [ebp - 0x1ca0]
cmovae eax, dword [ebp - 0x1ca0]
push eax
lea eax, [ebp - 0x1460]
push 0x30c
push eax
call fcn.0042f9f7
add esp, 0xc
xor eax, eax
mov word [ebp - 0x830], ax
test esi, esi
je 0x41d85a
jmp 0x41d7ab
xor eax, eax
mov word [ebp - 0xe48], ax
jmp 0x41d7ab
mov eax, dword [ebp - 0x1cd4]
test eax, eax
je 0x41d71f
push eax
lea eax, [ebp - 0xe48]
push 0x30c
push eax
call fcn.0042f9f7
mov ax, word [ebp - 0xe48]
add esp, 0xc
jmp 0x41d728
xor eax, eax
mov word [ebp - 0xe48], ax
cmp word [ebp - 0x830], 0
je 0x41d850
test ax, ax
lea eax, [ebp - 0x830]
push eax
push 0x30c
lea eax, [ebp - 0x1460]
push eax
je 0x41d796
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x450d80
lea eax, [ebp - 0x1460]
push 0x30c
push eax
call fcn.0042fd02
lea eax, [ebp - 0xe48]
push eax
lea eax, [ebp - 0x1460]
push 0x30c
push eax
call fcn.0042fd02
add esp, 0x18
jmp 0x41d7ab
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor ecx, ecx
lea eax, [ebp - 0x1ce8]
cmp dword [ebp - 0x1cbc], ecx
push eax
lea eax, [ebp - 0x1d2c]
push eax
lea eax, [ebp - 0x1c80]
cmove eax, ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x1460]
push eax
push ecx
push ecx
push dword [ebp - 0x1c88]
call dword [ebp - 0x1ca4]
mov dword [ebp - 0x1cb4], eax
test eax, eax
je 0x41d85a
mov eax, dword [ebp - 0x1cd8]
test eax, eax
je 0x41d820
movups xmm0, xmmword [ebp - 0x1ce8]
mov dword [ebp - 0x1cb4], 1
xor esi, esi
movups xmmword [eax], xmm0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ca0]
call fcn.00403400
jmp 0x41d888
push dword [ebp - 0x1ce8]
call edi
push dword [ebp - 0x1ce4]
call edi
mov dword [ebp - 0x1cb4], 1
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ca0]
call fcn.00403400
jmp 0x41d888
mov dword [ebp - 0x1cb4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d86f
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ca0]
call fcn.00403400
jmp 0x41d888
mov esi, 0x8000ffff
mov eax, dword [ebp - 0x1cc0]
test eax, eax
je 0x41d899
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x1c88]
call edi
push dword [ebp - 0x1cc4]
call edi
jmp 0x41d8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d8c0
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x1cc4]
call edi
jmp 0x41d8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d8df
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x1cb0]
call edi
cmp dword [ebp - 0x1cb4], 0
jne 0x41da8d
mov esi, dword [ebp - 0x1cc8]
push esi
call fcn.0041fe60
test eax, eax
mov ecx, 0x450450
push str..exe
cmovne ecx, eax
push ecx
call fcn.0042fd77
add esp, 0xc
test eax, eax
je 0x41d952
push dword [ebp - 0x1ccc]
push dword [ebp - 0x1cbc]
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
jmp 0x41da8d
xorps xmm0, xmm0
mov dword [ebp - 0x1d2c], 0x44
xor eax, eax
movlpd qword [ebp - 0x1d28], xmm0
push esi
mov word [ebp - 0x1cea], ax
lea eax, [ebp - 0x830]
push 0x30c
push eax
movlpd qword [ebp - 0x1d20], xmm0
movlpd qword [ebp - 0x1d18], xmm0
movlpd qword [ebp - 0x1d10], xmm0
movlpd qword [ebp - 0x1d08], xmm0
movlpd qword [ebp - 0x1cfa], xmm0
movlpd qword [ebp - 0x1cf2], xmm0
movups xmmword [ebp - 0x1ce8], xmm0
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov esi, dword [ebp - 0x1cd4]
test esi, esi
je 0x41da04
cmp word [esi], 0
je 0x41da04
push 0x450d80
lea eax, [ebp - 0x830]
push 0x30c
push eax
call fcn.0042fd02
push esi
lea eax, [ebp - 0x830]
push 0x30c
push eax
call fcn.0042fd02
add esp, 0x18
mov eax, dword [ebp - 0x1ccc]
mov word [ebp - 0x1cfc], ax
lea eax, [ebp - 0x1ce8]
push eax
lea eax, [ebp - 0x1d2c]
mov dword [ebp - 0x1d00], 1
push eax
push dword [ebp - 0x1cbc]
lea eax, [ebp - 0x830]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41da78
mov eax, dword [ebp - 0x1cd8]
test eax, eax
je 0x41da64
movups xmm0, xmmword [ebp - 0x1ce8]
xor esi, esi
movups xmmword [eax], xmm0
jmp 0x41da8d
push dword [ebp - 0x1ce8]
call edi
push dword [ebp - 0x1ce4]
call edi
xor esi, esi
jmp 0x41da8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41da8d
movzx esi, si
or esi, 0x80070000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret