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

Disassembly:
push 0xc0
mov eax, 0x4759f1
call fcn.00472e78
mov ebx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], eax
push 0x44
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xcc]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
and dword [ebp - 0x5c], esi
or dword [ebp - 0x20], 0xffffffff
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0xd
test eax, eax
jne 0x41de4e
mov ecx, 0x80070057
mov ebx, ecx
call fcn.00427566
mov edi, dword [ebp - 0x14]
jmp 0x41e3c4
cmp dword [ebp + 0x18], 0
je 0x41de3a
and dword [ebp - 0x64], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], 2
test edi, edi
je 0x41dfc7
cmp edi, 0xffffffff
je 0x41dfc7
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x41dea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov ebx, eax
mov ecx, ebx
call fcn.00427566
mov edi, dword [ebp - 0x14]
jmp 0x41e3c0
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x18]
call fcn.0041dcaa
mov ebx, eax
test ebx, ebx
js 0x41de91
lea eax, [ebp - 0x30]
push eax
push 2
pop eax
push eax
push eax
push 0
push 0x2000000
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x41de82
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
call fcn.00426845
mov ebx, eax
test ebx, ebx
js 0x41de91
cmp dword [ebp - 0x34], 0
jne 0x41df1f
cmp dword [ebp - 0x18], 0
je 0x41def8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41de82
mov dword [ebp - 0x34], 0x4092ec
jmp 0x41df26
mov dword [ebp - 0x34], 0x4092e0
mov esi, dword [ebp + 8]
mov eax, 0x406c74
mov edx, esi
test esi, esi
jne 0x41df36
mov edx, eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x41df3f
mov eax, ebx
mov ecx, dword [0x479b84]
test ecx, ecx
je 0x41df4e
cmp ecx, 0xffffffff
jne 0x41df50
xor ecx, ecx
push dword [ebp - 0x34]
push edi
push edx
push eax
push dword [ebp - 0x38]
push 0x409300
push dword [0x47c110]
push ecx
call fcn.0041704b
add esp, 0x18
lea eax, [ebp - 0x1c]
mov edx, edi
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x18]
push esi
push ebx
push dword [ebp - 0x38]
call fcn.0042485a
mov ebx, eax
test ebx, ebx
jns 0x41dfbc
mov eax, dword [0x479b84]
test eax, eax
je 0x41df96
cmp eax, 0xffffffff
jne 0x41df98
xor eax, eax
push ebx
push 0x409370
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
mov ecx, ebx
call fcn.00427566
mov esi, dword [ebp - 0x1c]
jmp 0x41de98
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
jmp 0x41e0f2
push ebx
push eax
lea eax, [ebp - 0x14]
push 0x4093dc
push eax
call fcn.00416afb
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x41de91
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x74]
push 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x74], 0xc
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x6c], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, eax
test ebx, ebx
js 0x41de91
push 5
pop eax
mov word [ebp - 0x9c], ax
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xc4], ebx
test eax, eax
jne 0x41e045
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
jmp 0x41e051
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
mov edi, dword [ebp + 8]
mov eax, 0x406c74
mov dword [ebp - 0xa0], 0x100
mov ecx, edi
test edi, edi
jne 0x41e06b
mov ecx, eax
mov edx, dword [ebp - 0x50]
test edx, edx
jne 0x41e074
mov edx, eax
mov eax, dword [0x479b84]
test eax, eax
je 0x41e082
cmp eax, 0xffffffff
jne 0x41e084
mov eax, ebx
mov ebx, dword [ebp - 0x38]
push ecx
push edx
push ebx
push 0x4093f0
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x18
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
mov edi, dword [ebp - 0x14]
xor eax, eax
push eax
push 0x400
push 1
push eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41e0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov ebx, eax
mov ecx, ebx
call fcn.00427566
jmp 0x41e3c0
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x20], ebx
je 0x41e111
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 0x10], ebx
je 0x41e18c
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push 0x409430
push 0x409450
push eax
call fcn.00416afb
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x41e0d7
push dword [ebp - 0x4c]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41e0c8
xor ecx, ecx
call fcn.0042757e
push 8
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x44], eax
test ebx, ebx
jne 0x41e182
mov ecx, 0x8007000e
mov ebx, ecx
call fcn.00427566
jmp 0x41e3c4
mov ecx, dword [ebp - 0x48]
mov dword [ebx], esi
mov dword [eax + 4], ecx
jmp 0x41e1b5
mov dword [ebp - 0x54], 1
xor ecx, ecx
call fcn.0042757e
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x44], eax
test ebx, ebx
je 0x41e171
mov dword [ebx], esi
mov eax, dword [0x479b84]
test eax, eax
je 0x41e1c3
cmp eax, 0xffffffff
jne 0x41e1c5
xor eax, eax
push 0x409460
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0xc
mov edx, ebx
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.00425436
mov ecx, eax
test ecx, ecx
jne 0x41e51b
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41e4dc
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 - 0x40]
call fcn.004240f6
mov esi, dword [ebp - 0x40]
mov eax, dword [0x479b84]
test esi, esi
jne 0x41e248
mov edx, dword [0x47c110]
test eax, eax
je 0x41e23c
cmp eax, 0xffffffff
jne 0x41e23e
xor eax, eax
mov ecx, 0x4094a0
jmp 0x41e347
test eax, eax
je 0x41e251
cmp eax, 0xffffffff
jne 0x41e253
xor eax, eax
push 0x4094e8
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0xc
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41e27a
mov ecx, eax
call fcn.00427347
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41e296
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
push 0
lea eax, [ebp - 0x58]
push eax
push 0xfff
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e32c
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x41e32c
mov byte [eax + esi], 0
mov ecx, esi
lea eax, [ebp - 0x5c]
push eax
call fcn.004167c5
mov ebx, eax
test ebx, ebx
js 0x41e31d
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00424daa
mov ebx, eax
test ebx, ebx
js 0x41e31d
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
call fcn.0042743a
mov ebx, eax
test ebx, ebx
js 0x41e31d
mov eax, dword [0x479b84]
test eax, eax
je 0x41e2fe
cmp eax, 0xffffffff
jne 0x41e300
xor eax, eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x409538
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
jmp 0x41e267
mov ecx, ebx
call fcn.00427566
mov esi, dword [ebp - 0x1c]
jmp 0x41e3c0
mov eax, dword [0x479b84]
mov edx, dword [0x47c110]
test eax, eax
je 0x41e340
cmp eax, 0xffffffff
jne 0x41e342
xor eax, eax
mov ecx, 0x409540
push ecx
push edx
push eax
call fcn.0041704b
mov eax, dword [0x479b84]
add esp, 0xc
mov ebx, dword [ebp - 0x60]
test eax, eax
je 0x41e363
cmp eax, 0xffffffff
jne 0x41e365
xor eax, eax
push ebx
push 0x409588
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
cmp ebx, 0x800705bb
jne 0x41e3b1
mov eax, dword [0x479b84]
xor ebx, ebx
mov dword [ebp - 0x64], 1
test eax, eax
je 0x41e399
cmp eax, 0xffffffff
jne 0x41e39b
xor eax, eax
push 0
push 0x4095c0
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
mov esi, dword [ebp - 0x1c]
test ebx, ebx
js 0x41e3c4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
test ebx, ebx
jns 0x41e3ee
mov eax, dword [0x479b84]
test eax, eax
je 0x41e3d2
cmp eax, 0xffffffff
jne 0x41e3d4
xor eax, eax
push ebx
push 0x4099bc
push 0x406d68
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x14
mov ecx, ebx
call fcn.0042757e
cmp dword [ebp - 0x24], 0
je 0x41e408
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x20], 0
je 0x41e41b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41e432
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x40]
call fcn.0041702b
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x41e451
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x41e45c
mov ecx, edi
call fcn.00427347
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41e46a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41e476
call fcn.00427347
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41e484
mov ecx, eax
call fcn.00427347
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41e492
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e49d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x41e4b0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x30], 0
je 0x41e4c3
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x3c], 0
je 0x41e4d2
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00472e55
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x41e4f1
movzx ebx, bx
or ebx, 0x80070000
mov eax, dword [0x479b84]
test eax, eax
je 0x41e4ff
cmp eax, 0xffffffff
jne 0x41e501
xor eax, eax
push ebx
push 0x409618
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
jmp 0x41e3b4
mov eax, dword [0x479b84]
cmp ecx, 1
jne 0x41e605
test eax, eax
je 0x41e532
cmp eax, 0xffffffff
jne 0x41e534
xor eax, eax
push 0x409680
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41e59c
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x47c110]
test eax, eax
mov eax, dword [0x479b84]
jne 0x41e57f
test eax, eax
je 0x41e576
cmp eax, 0xffffffff
jne 0x41e578
xor eax, eax
mov ecx, 0x4096c0
jmp 0x41e58f
test eax, eax
je 0x41e588
cmp eax, 0xffffffff
jne 0x41e58a
xor eax, eax
mov ecx, 0x409718
push ecx
push edx
push eax
call fcn.0041704b
add esp, 0xc
jmp 0x41e5d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x41e5b1
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [0x479b84]
test eax, eax
je 0x41e5bf
cmp eax, 0xffffffff
jne 0x41e5c1
xor eax, eax
push ecx
push 0x409778
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
mov eax, dword [0x479b84]
mov ebx, 0xc19001e1
test eax, eax
je 0x41e5e9
cmp eax, 0xffffffff
jne 0x41e5eb
xor eax, eax
push ebx
push 0x4097d0
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
jmp 0x41e3c4
cmp ecx, 0x102
jne 0x41e6dd
test eax, eax
je 0x41e61a
cmp eax, 0xffffffff
jne 0x41e61c
xor eax, eax
push 0x409840
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0xc
mov ebx, 0xc1900104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41e688
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x47c110]
test eax, eax
mov eax, dword [0x479b84]
jne 0x41e66b
test eax, eax
je 0x41e662
cmp eax, 0xffffffff
jne 0x41e664
xor eax, eax
mov ecx, 0x409898
jmp 0x41e67b
test eax, eax
je 0x41e674
cmp eax, 0xffffffff
jne 0x41e676
xor eax, eax
mov ecx, 0x409718
push ecx
push edx
push eax
call fcn.0041704b
add esp, 0xc
jmp 0x41e6c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x41e69d
movzx ecx, cx
or ecx, 0x80070000
mov eax, dword [0x479b84]
test eax, eax
je 0x41e6ab
cmp eax, 0xffffffff
jne 0x41e6ad
xor eax, eax
push ecx
push 0x409778
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x10
mov eax, dword [0x479b84]
test eax, eax
je 0x41e6d0
cmp eax, 0xffffffff
jne 0x41e6d2
xor eax, eax
push ebx
push 0x4098d8
jmp 0x41e5f1
mov ebx, 0x8000ffff
test eax, eax
je 0x41e6eb
cmp eax, 0xffffffff
jne 0x41e6ed
xor eax, eax
push ebx
push ecx
push 0x409928
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x14
jmp 0x41e3b4