Function at 0x412098
Capabilities:
Create process on windows
Create process suspended
Impersonate user
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x4c
call fcn.0042af16
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x13
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0x10
call fcn.0042af16
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp + 0x44], 0
je 0x41215b
cmp word [0x8c1f1b], 0x600
jge 0x41215b
mov eax, 0
jmp 0x4131b4
push reloc.WSOCK32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x412170
mov eax, 0x62a1f0
push eax
push 1
mov ebx, 0x194
call fcn.00446a20
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x208
push 1
mov ebx, 0x1bc
call fcn.004469d0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4121bb
push ebx
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jle 0x412215
lea eax, [ebp - 8]
push eax
call fcn.00401a35
mov dword [ebp - 0x38], eax
push dword [ebp + 0xc]
call fcn.00401a35
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esp
push dword [ebp - 4]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov eax, 0x10
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x40], esp
je 0x412215
push 0x1a4
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0xc]
add ebx, 0x2c
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 1
cmp dword [ebp + 0x1c], 1
jl 0x41224e
cmp dword [ebp + 0x1c], 7
jg 0x41224e
xor eax, eax
jmp 0x412253
mov eax, 1
test eax, eax
je 0x412262
mov dword [ebp + 0x1c], 2
cmp dword [ebp + 0x1c], 7
jne 0x41235c
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov eax, str.Desktop
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004016cd
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x41229c
push ebx
call fcn.0042af22
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4122b0
push ebx
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 0x10000000
push 2
mov ebx, 0xc8
call fcn.00446c70
add esp, 0x1c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push 0
push dword [ebp - 0x38]
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x412305
add eax, 8
push eax
mov eax, 0x11
call sub.user32.dll_CreateDesktopW
cmp dword [ebp - 0x3c], esp
je 0x41232c
push 0x3a2
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00401a35
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x30
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov word [ebx], 0
jmp 0x4123d6
mov ebx, dword [ebp - 0xc]
add ebx, 0x30
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jl 0x412372
cmp eax, 7
jl 0x412389
push 0x44e
push 0x40514f5
push 9
call fcn.0042af28
add esp, 0xc
dec eax
call 0x41238f
pop ebx
add ebx, dword [eax*4 + 0x73e4ab]
jmp ebx
mov eax, 0x62a1f0
xor ecx, ecx
test eax, eax
je 0x4123e4
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x4123f7
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x41240e
dec eax
test ecx, ecx
je 0x41240e
call fcn.00411fec
add esp, 0xc
test eax, eax
jne 0x41248c
push 1
push 0xffffffff
mov eax, 0x73e4c3
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.00413204
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x412447
push ebx
call fcn.0042af22
add esp, 4
push 0x62a21e
push dword [ebp - 0x3c]
mov ecx, 2
call fcn.004017b2
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x41246f
push ebx
call fcn.0042af22
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x412483
push ebx
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
jmp 0x4124bd
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x4124a8
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042af16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4124b9
push ebx
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x2c], 0
je 0x4124ce
mov dword [ebp - 0x1c], 4
cmp dword [ebp + 0x3c], 0
je 0x412d7d
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 1
push 0x14
mov eax, 0x12
call sub.ntdll.dll_RtlAdjustPrivilege
cmp dword [ebp - 0x38], esp
je 0x41251c
push 0x5c5
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp + 0x3c]
push 0
push 0x1f0fff
mov eax, 0x13
call sub.Kernel32.dll_OpenProcess
cmp dword [ebp - 0x38], esp
je 0x412552
push 0x616
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x412d34
cmp dword [ebp + 0x44], 0
je 0x41298a
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], esp
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
mov eax, 0x14
call sub.Kernel32.dll_InitializeProcThreadAttributeList
cmp dword [ebp - 0x38], esp
je 0x4125ac
push 0x6ae
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x1c], 0x80000
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0x48
mov dword [ebp - 0x38], esp
mov eax, 0x15
call sub.Kernel32.dll_GetProcessHeap
cmp dword [ebp - 0x38], esp
je 0x4125eb
push 0x76b
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esp
push dword [ebp - 4]
push 8
push dword [ebp - 0x3c]
mov eax, 0x16
call sub.Kernel32.dll_HeapAlloc
cmp dword [ebp - 0x40], esp
je 0x412622
push 0x76b
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x412985
mov dword [ebp - 0x38], esp
lea eax, [ebp - 4]
push eax
push 0
push 1
push dword [ebp - 0x24]
mov eax, 0x14
call sub.Kernel32.dll_InitializeProcThreadAttributeList
cmp dword [ebp - 0x38], esp
je 0x412669
push 0x7be
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.00413421
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push 0
push 0
push 4
push dword [ebp - 0x38]
push 0x20000
push 0
push dword [ebp - 0x24]
mov eax, 0x17
call sub.Kernel32.dll_UpdateProcThreadAttribute
cmp dword [ebp - 0x3c], esp
je 0x4126bd
push 0x839
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
test eax, eax
je 0x4126d6
mov ebx, dword [ebp - 0xc]
add ebx, 0x48
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.00401a35
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
call fcn.00401a35
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401a35
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
push eax
push 0x48
call fcn.0042af16
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x1c]
push 0
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push 0
mov eax, 0x18
call sub.Advapi32.dll_CreateProcessAsUserW
cmp dword [ebp - 0x44], esp
je 0x412825
push 0x911
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x48]
push ebx
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], esp
push dword [ebp - 0x24]
mov eax, 0x19
call sub.Kernel32.dll_DeleteProcThreadAttributeList
cmp dword [ebp - 0x38], esp
je 0x412925
push 0x93b
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x38], esp
mov eax, 0x15
call sub.Kernel32.dll_GetProcessHeap
cmp dword [ebp - 0x38], esp
je 0x41294e
push 0x967
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esp
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x3c]
mov eax, 0x1a
call sub.Kernel32.dll_HeapFree
cmp dword [ebp - 0x40], esp
je 0x412985
push 0x967
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
jmp 0x412d08
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 2
push 3
mov ebx, 0xc8
call fcn.00446c70
add esp, 0x28
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x20]
mov eax, 0x1b
call sub.Advapi32.dll_OpenProcessToken
cmp dword [ebp - 0x3c], esp
je 0x4129f6
push 0x9cc
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
test eax, eax
je 0x412d08
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x80
push 5
mov ebx, 0xc8
call fcn.00446c70
add esp, 0x40
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x34]
push eax
push 1
push 2
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
mov eax, 0x1c
call sub.Advapi32.dll_DuplicateTokenEx
cmp dword [ebp - 0x3c], esp
je 0x412a91
push 0xa22
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
test eax, eax
je 0x412cdc
push dword [ebp + 8]
call fcn.00401a35
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
call fcn.00401a35
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401a35
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
push eax
push 0x48
call fcn.0042af16
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push 0
push dword [ebp - 0x34]
mov eax, 0x1d
call sub.Advapi32.dll_CreateProcessWithTokenW
cmp dword [ebp - 0x44], esp
je 0x412bdc
push 0xae1
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x48]
push ebx
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
mov eax, 0xf
call sub.Kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], esp
je 0x412cdc
push 0xb0b
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0x30]
mov eax, 0xf
call sub.Kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], esp
je 0x412d08
push 0xb27
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0x20]
mov eax, 0xf
call sub.Kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], esp
je 0x412d34
push 0xb58
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0x14
mov eax, 0x12
call sub.ntdll.dll_RtlAdjustPrivilege
cmp dword [ebp - 0x38], esp
je 0x412d78
push 0xb74
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
jmp 0x412f9b
push dword [ebp + 8]
call fcn.00401a35
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
call fcn.00401a35
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401a35
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
push eax
push 0x48
call fcn.0042af16
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x1c]
push 0
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov eax, 0x1e
call sub.Kernel32.dll_CreateProcessW
cmp dword [ebp - 0x44], esp
je 0x412ec7
push 0xc25
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x48]
push ebx
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0042af22
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x412fe5
cmp dword [ebp - 0x14], 0
je 0x412fdb
mov dword [ebp - 0x38], esp
push dword [ebp - 0x14]
mov eax, 0x1f
call sub.user32.dll_CloseDesktop
cmp dword [ebp - 0x38], esp
je 0x412fdb
push 0xcb3
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov eax, 0
jmp 0x4131b4
cmp dword [ebp + 0x2c], 0
je 0x41307f
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 0xf
call sub.Kernel32.dll_CloseHandle
cmp dword [ebp - 0x3c], esp
je 0x413023
push 0xd07
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x413059
mov dword [ebp - 0x38], esp
push dword [ebp - 0x14]
mov eax, 0x1f
call sub.user32.dll_CloseDesktop
cmp dword [ebp - 0x38], esp
je 0x413059
push 0xd5c
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x2c]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
jmp 0x4131b4
mov ebx, dword [ebp - 0x2c]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 0xf
call sub.Kernel32.dll_CloseHandle
cmp dword [ebp - 0x3c], esp
je 0x4130b6
push 0xdc7
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4130fe
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
push 0xffffffff
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 0xd
call sub.Kernel32.dll_WaitForSingleObject
cmp dword [ebp - 0x3c], esp
je 0x4130f9
push 0xe04
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
jmp 0x413137
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
push 0x3e8
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 0xe
call sub.user32.dll_WaitForInputIdle
cmp dword [ebp - 0x3c], esp
je 0x413137
push 0xe2d
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 0xf
call sub.Kernel32.dll_CloseHandle
cmp dword [ebp - 0x3c], esp
je 0x41316b
push 0xe60
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x4131a1
mov dword [ebp - 0x38], esp
push dword [ebp - 0x14]
mov eax, 0x1f
call sub.user32.dll_CloseDesktop
cmp dword [ebp - 0x38], esp
je 0x4131a1
push 0xeb5
push 0x40514f5
push 6
call fcn.0042af28
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
jmp 0x4131b4
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4131c5
push ebx
call fcn.0042af22
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0042af22
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4131e1
push ebx
call fcn.0042af22
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4131f1
push ebx
call fcn.0042af22
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.0042af22
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x44