Function at 0x427024
Capabilities:
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push 0xc0
mov eax, 0x4897c9
call fcn.0047dc56
mov dword [ebp - 0x40], edx
mov esi, ecx
mov dword [ebp - 0x34], esi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
push 0x44
push eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xcc]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
and dword [ebp - 0x58], ebx
or dword [ebp - 0x1c], 0xffffffff
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 4], 0xd
test esi, esi
jne 0x4270b7
mov eax, 0x80070057
mov edi, eax
push eax
call fcn.004321e3
jmp 0x42784c
cmp dword [ebp + 0x18], 0
je 0x4270a5
and dword [ebp - 0x60], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x427217
cmp esi, 0xffffffff
je 0x427217
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x4270fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov edi, eax
push edi
call fcn.004321e3
jmp 0x4273b0
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x14]
call fcn.00426f20
mov edi, eax
test edi, edi
jns 0x427111
push edi
jmp 0x4270ad
lea eax, [ebp - 0x2c]
push eax
push 2
pop eax
push eax
push eax
push 0
push 0x2000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4270e4
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
call fcn.00431408
mov edi, eax
test edi, edi
js 0x42710e
cmp dword [ebp - 0x30], 0
jne 0x42717f
cmp dword [ebp - 0x14], 0
je 0x427158
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4270e4
mov dword [ebp - 0x30], 0x408c14
jmp 0x427186
mov dword [ebp - 0x30], 0x408c08
mov edi, dword [ebp + 8]
mov eax, 0x406078
mov edx, edi
test edi, edi
jne 0x427196
mov edx, eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x42719f
mov eax, ebx
mov ecx, dword [0x48ecb8]
test ecx, ecx
je 0x4271ae
cmp ecx, 0xffffffff
jne 0x4271b0
xor ecx, ecx
push dword [ebp - 0x30]
push esi
push edx
push eax
push dword [ebp - 0x34]
push 0x408c28
push dword [0x491330]
push ecx
call fcn.0041aecf
add esp, 0x18
lea eax, [ebp - 0x18]
mov edx, esi
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push dword [ebp - 0x34]
call fcn.0042efdd
mov edi, eax
test edi, edi
jns 0x42732f
mov eax, dword [0x48ecb8]
test eax, eax
je 0x4271fa
cmp eax, 0xffffffff
jne 0x4271fc
xor eax, eax
push edi
push 0x408c98
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
push edi
jmp 0x4273eb
push dword [ebp - 0x40]
lea eax, [ebp - 0x48]
push dword [ebp - 0x34]
push 0x408d04
push eax
call fcn.0041a772
mov edi, eax
add esp, 0x10
test edi, edi
js 0x42710e
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x70]
push 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x70], 0xc
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x68], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x42726c
mov edi, 0xe6
jmp 0x427876
and dword [ebp - 0xc4], 0
push 5
pop eax
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xcc], 0x44
test eax, eax
jne 0x427296
and dword [ebp - 0x8c], eax
jmp 0x42729c
mov dword [ebp - 0x8c], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x90], eax
mov eax, 0x406078
mov dword [ebp - 0xa0], 0x100
test esi, esi
jne 0x4272bc
mov ecx, eax
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x4272c5
mov edx, eax
mov eax, dword [0x48ecb8]
test eax, eax
je 0x4272d3
cmp eax, 0xffffffff
jne 0x4272d5
xor eax, eax
mov edi, dword [ebp - 0x34]
push ecx
push edx
push edi
push 0x408d18
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xcc]
push eax
push esi
xor eax, eax
push eax
push 0x400
push 1
push eax
push eax
push dword [ebp - 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4270e4
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x64]
call fcn.004323bf
push dword [ebp - 0x80]
lea ecx, [ebp - 0x18]
call fcn.004323bf
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x1c], ebx
je 0x42734e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0x10], ebx
je 0x427405
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push 0x408d58
push 0x408d78
push eax
call fcn.0041a772
mov edi, eax
add esp, 0x10
test edi, edi
js 0x427211
push dword [ebp - 0x50]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004323bf
mov edi, dword [ebp - 0x4c]
test edi, edi
jne 0x4273bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov edi, eax
push edi
call fcn.004321e3
mov ebx, dword [ebp - 0x18]
test edi, edi
jns 0x427876
jmp 0x42784c
push ebx
call fcn.00432150
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042e882
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x4273f8
mov eax, 0x8007000e
mov edi, eax
push eax
call fcn.004321e3
mov ebx, dword [ebp - 0x18]
jmp 0x42784c
mov ebx, dword [ebp - 0x18]
mov dword [esi], ebx
push 2
mov dword [esi + 4], edi
pop edi
jmp 0x427433
xor edi, edi
inc edi
push ebx
call fcn.00432150
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042e882
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4273e3
mov ebx, dword [ebp - 0x18]
mov dword [esi], ebx
mov eax, dword [0x48ecb8]
test eax, eax
je 0x427441
cmp eax, 0xffffffff
jne 0x427443
xor eax, eax
push 0x408d88
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0xc
mov edx, esi
push dword [ebp + 0x14]
push ecx
mov ecx, edi
call fcn.0042f744
mov ecx, eax
test ecx, ecx
jne 0x427664
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x427615
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x44]
call fcn.0042e882
mov esi, dword [ebp - 0x44]
mov eax, dword [0x48ecb8]
test esi, esi
jne 0x4274c5
mov edx, dword [0x491330]
test eax, eax
je 0x4274b9
cmp eax, 0xffffffff
jne 0x4274bb
xor eax, eax
mov ecx, 0x408dc8
jmp 0x4275ad
test eax, eax
je 0x4274ce
cmp eax, 0xffffffff
jne 0x4274d0
xor eax, eax
push 0x408e10
push dword [0x491330]
push eax
call fcn.0041aecf
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
je 0x4274f6
push edi
call fcn.0043220c
xor edi, edi
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x38]
call fcn.0042e8b9
push 0
lea eax, [ebp - 0x54]
push eax
push 0xfff
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427592
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x427592
mov byte [eax + esi], 0
mov ecx, esi
lea eax, [ebp - 0x58]
push eax
call fcn.0041a409
mov edi, eax
test edi, edi
js 0x42710e
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0042eecc
mov edi, eax
test edi, edi
js 0x42710e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x38]
call fcn.00432325
mov edi, eax
test edi, edi
js 0x42710e
mov eax, dword [0x48ecb8]
test eax, eax
je 0x427573
cmp eax, 0xffffffff
jne 0x427575
xor eax, eax
mov edi, dword [ebp - 0x28]
push edi
push 0x408e60
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
jmp 0x4274e7
mov eax, dword [0x48ecb8]
mov edx, dword [0x491330]
test eax, eax
je 0x4275a6
cmp eax, 0xffffffff
jne 0x4275a8
xor eax, eax
mov ecx, 0x408e68
push ecx
push edx
push eax
call fcn.0041aecf
mov eax, dword [0x48ecb8]
add esp, 0xc
mov edi, dword [ebp - 0x5c]
test eax, eax
je 0x4275c9
cmp eax, 0xffffffff
jne 0x4275cb
xor eax, eax
push edi
push 0x408eb0
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
cmp edi, 0x800705bb
jne 0x42764f
mov eax, dword [0x48ecb8]
xor esi, esi
xor edi, edi
inc esi
test eax, eax
je 0x4275fb
cmp eax, 0xffffffff
jne 0x4275fd
xor eax, eax
push 0
push 0x408ee8
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
jmp 0x427652
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x42762a
movzx edi, di
or edi, 0x80070000
mov eax, dword [0x48ecb8]
test eax, eax
je 0x427638
cmp eax, 0xffffffff
jne 0x42763a
xor eax, eax
push edi
push 0x408f40
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
mov esi, dword [ebp - 0x60]
test edi, edi
js 0x42784c
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
jmp 0x427876
mov eax, dword [0x48ecb8]
cmp ecx, 1
jne 0x42774e
test eax, eax
je 0x42767b
cmp eax, 0xffffffff
jne 0x42767d
xor eax, eax
push 0x408fa8
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4276e5
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x491330]
test eax, eax
mov eax, dword [0x48ecb8]
jne 0x4276c8
test eax, eax
je 0x4276bf
cmp eax, 0xffffffff
jne 0x4276c1
xor eax, eax
mov ecx, 0x408fe8
jmp 0x4276d8
test eax, eax
je 0x4276d1
cmp eax, 0xffffffff
jne 0x4276d3
xor eax, eax
mov ecx, 0x409040
push ecx
push edx
push eax
call fcn.0041aecf
add esp, 0xc
jmp 0x42771f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x4276fa
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [0x48ecb8]
test eax, eax
je 0x427708
cmp eax, 0xffffffff
jne 0x42770a
xor eax, eax
push ecx
push 0x4090a0
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
mov eax, dword [0x48ecb8]
mov edi, 0xc19001e1
test eax, eax
je 0x427732
cmp eax, 0xffffffff
jne 0x427734
xor eax, eax
push edi
push 0x4090f8
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
jmp 0x42784c
cmp ecx, 0x102
jne 0x427826
test eax, eax
je 0x427763
cmp eax, 0xffffffff
jne 0x427765
xor eax, eax
push 0x409168
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0xc
mov edi, 0xc1900104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4277d1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x491330]
test eax, eax
mov eax, dword [0x48ecb8]
jne 0x4277b4
test eax, eax
je 0x4277ab
cmp eax, 0xffffffff
jne 0x4277ad
xor eax, eax
mov ecx, 0x4091c0
jmp 0x4277c4
test eax, eax
je 0x4277bd
cmp eax, 0xffffffff
jne 0x4277bf
xor eax, eax
mov ecx, 0x409040
push ecx
push edx
push eax
call fcn.0041aecf
add esp, 0xc
jmp 0x42780b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x4277e6
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [0x48ecb8]
test eax, eax
je 0x4277f4
cmp eax, 0xffffffff
jne 0x4277f6
xor eax, eax
push ecx
push 0x4090a0
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
mov eax, dword [0x48ecb8]
test eax, eax
je 0x427819
cmp eax, 0xffffffff
jne 0x42781b
xor eax, eax
push edi
push 0x409200
jmp 0x42773a
mov edi, 0x8000ffff
test eax, eax
je 0x427834
cmp eax, 0xffffffff
jne 0x427836
xor eax, eax
push edi
push ecx
push 0x409250
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x14
mov eax, dword [0x48ecb8]
test eax, eax
je 0x42785a
cmp eax, 0xffffffff
jne 0x42785c
xor eax, eax
push edi
push 0x4092e4
push 0x406200
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x14
push edi
call fcn.00432150
cmp dword [ebp - 0x20], 0
je 0x42788f
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x4278a2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x38]
call fcn.0042e8b9
lea ecx, [ebp - 0x44]
call fcn.0042e8b9
lea ecx, [ebp - 0x24]
call fcn.0042e8b9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4278c7
push eax
call fcn.0043220c
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4278d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4278e2
push eax
call fcn.0043220c
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4278ef
push eax
call fcn.0043220c
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4278fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x427908
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x42791b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x2c], 0
je 0x42792e
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x3c], 0
je 0x42793d
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0047dc27
ret 0x14