Function at 0x7ef79dfe
Capabilities:
Create process on windows
Create process suspended
Query environment variable
Resume thread
Set environment variable

Disassembly:
mov eax, 0x7ef94914
call fcn.7ef890d8
sub esp, 0x22c
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x7ef964f0
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.7ef865bd
pop ecx
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
and dword [ebp - 0x2c], 0
and dword [ebp - 0x14], 0
push 2
lea eax, [ebp - 0x18]
push eax
push str.TS_EXECUTE_EXTERNAL
call dword [0x7ef96074]
test eax, eax
je 0x7ef79e72
mov dword [ebp - 0x14], 1
push 0
push str.TS_EXECUTE_EXTERNAL
call dword [0x7ef96070]
mov dword [ebp - 0x2c], 1
jmp 0x7ef7a1f5
cmp dword [ebp + 8], 0
je 0x7ef79e88
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.7ef86086
jmp 0x7ef7a1f5
cmp dword [ebp + 0xc], 0
je 0x7ef7a1f5
and dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
cmp eax, 0x22
jne 0x7ef79fc1
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
test eax, eax
je 0x7ef79ed4
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
cmp eax, 0x22
je 0x7ef79ed4
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
jmp 0x7ef79eb6
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
test eax, eax
jne 0x7ef79f14
and dword [ebp - 0x1c0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.7ef86114
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.7ef86114
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.7ef86114
mov eax, dword [ebp - 0x1c0]
jmp 0x7ef7a6f8
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp + 0xc]
dec eax
push eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
lea ecx, [ebp - 0x1c4]
call fcn.7ef86449
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x210], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x210]
lea ecx, [ebp - 0x38]
call fcn.7ef8603d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c4]
call fcn.7ef86114
push 0
push 0
push 1
push 0
push str..exe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x38]
call fcn.7ef7488e
add esp, 0x1c
test eax, eax
jne 0x7ef79fb5
and dword [ebp - 0x1c8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.7ef86114
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.7ef86114
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.7ef86114
mov eax, dword [ebp - 0x1c8]
jmp 0x7ef7a6f8
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x7ef7a1e9
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
test eax, eax
je 0x7ef7a0cd
cmp dword [ebp - 0x3c], 0
jne 0x7ef7a0cd
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
cmp eax, 0x20
jne 0x7ef7a0c1
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1d0]
call fcn.7ef86449
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1e4]
mov eax, dword [eax]
mov dword [ebp - 0x1e8], eax
push 0
push 0
push 1
push 0
push str..exe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1e8]
call fcn.7ef7488e
add esp, 0x1c
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d0]
call fcn.7ef86114
cmp dword [ebp - 0x1cc], 0
je 0x7ef7a0b8
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push str.__s__s
lea eax, [ebp - 0x1d4]
push eax
call fcn.7ef85dd0
add esp, 0x10
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x30]
call fcn.7ef8603d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d4]
call fcn.7ef86114
mov dword [ebp - 0x3c], 1
jmp 0x7ef7a0bf
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
jmp 0x7ef7a0c8
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
jmp 0x7ef79fc5
cmp dword [ebp - 0x3c], 0
jne 0x7ef7a1e9
push 0
push 0
push 1
push 0
push str..exe
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.7ef7488e
add esp, 0x1c
test eax, eax
jne 0x7ef7a19f
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x10000000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef7a169
cmp dword [ebp + 0xc], 0
jne 0x7ef7a126
mov dword [ebp - 0x220], str.NULL
jmp 0x7ef7a12f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
cmp dword [ebp + 8], 0
jne 0x7ef7a141
mov dword [ebp - 0x224], str.NULL
jmp 0x7ef7a14a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push str.CreateProcess_app_s_cmdline_s____0___could_not_find__s___n
call fcn.7ef54190
add esp, 0x14
and dword [ebp - 0x1d8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.7ef86114
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.7ef86114
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.7ef86114
mov eax, dword [ebp - 0x1d8]
jmp 0x7ef7a6f8
push dword [ebp - 0x10]
push str.__s_
lea eax, [ebp - 0x1dc]
push eax
call fcn.7ef85dd0
add esp, 0xc
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x30]
call fcn.7ef8603d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1dc]
call fcn.7ef86114
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.7ef86114
cmp dword [ebp - 0x2c], 0
jne 0x7ef7a2a0
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x7efa5e20
call fcn.7ef6eaba
cmp dword [ebp - 0x44], 2
jne 0x7ef7a224
mov dword [ebp - 0x2c], 1
jmp 0x7ef7a2a0
and dword [ebp - 0x190], 0
and dword [ebp - 0x188], 0
mov byte [ebp - 4], 7
push 0
lea eax, [ebp - 0x190]
push eax
push 1
push dword [ebp - 0x10]
call fcn.7ef80086
add esp, 0x10
test eax, eax
jne 0x7ef7a259
mov dword [ebp - 0x2c], 1
jmp 0x7ef7a291
cmp dword [ebp - 0x18c], 1
jne 0x7ef7a291
and dword [ebp - 0x198], 0
and dword [ebp - 0x194], 0
lea eax, [ebp - 0x198]
push eax
mov ecx, 0x7efa5e20
call fcn.7ef6eaba
cmp dword [ebp - 0x198], 0
jne 0x7ef7a291
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.7ef86114
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c], 0
jne 0x7ef7a59e
lea eax, [ebp - 0x10]
push eax
call fcn.7ef84b82
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x1ec], eax
push dword [0x7efa5e10]
push dword [ebp - 0x1ec]
call fcn.7ef86204
pop ecx
pop ecx
test eax, eax
je 0x7ef7a59e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call fcn.7ef7a706
pop ecx
pop ecx
test eax, eax
je 0x7ef7a59e
cmp dword [ebp + 0x20], 0
je 0x7ef7a4f2
mov eax, dword [ebp + 0x1c]
and ah, 0xfb
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x1b4], 0x7ef96498
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1f4], eax
mov al, byte [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f4]
mov byte [ecx], al
mov eax, dword [ebp - 0x1f4]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x1f4]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x1f4]
and dword [eax + 0xc], 0
and dword [ebp - 0x19c], 0
mov dword [ebp - 0x1b4], 0x7ef96c30
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 9
call dword [0x7ef96084]
mov dword [ebp - 0x1bc], eax
and dword [ebp - 0x1b8], 0
push 9
push str.TS_LOADER
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1b8]
push eax
call section..text
add esp, 0xc
test eax, eax
je 0x7ef7a3e1
push 0xa
push str.TS_MODULE0
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1b8]
push eax
call section..text
add esp, 0xc
test eax, eax
je 0x7ef7a3e1
push 0
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1b8]
push eax
push str._s_c
lea eax, [ebp - 0x1b4]
push eax
call fcn.7ef86788
add esp, 0x10
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1b8]
movsx eax, byte [eax]
test eax, eax
je 0x7ef7a403
mov eax, dword [ebp - 0x1b8]
inc eax
mov dword [ebp - 0x1b8], eax
jmp 0x7ef7a3e1
mov eax, dword [ebp - 0x1b8]
inc eax
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1b8]
movsx eax, byte [eax]
test eax, eax
jne 0x7ef7a37e
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [0x7efa5e10]
push str.TS_LOADER_s_cTS_MODULE0_s_c_c
lea eax, [ebp - 0x1b4]
push eax
call fcn.7ef86788
add esp, 0x1c
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1fc], eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 0x1fc]
mov eax, dword [ebp + 0x1c]
or al, 4
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [0x7ef96060]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x7ef7a4d0
cmp dword [0x7efa5f2c], 0
je 0x7ef7a4ba
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x2c]
push dword [eax + 8]
mov eax, dword [0x7efa5f2c]
mov eax, dword [eax]
mov ecx, dword [0x7efa5f2c]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
and eax, 4
test eax, eax
jne 0x7ef7a4d0
mov eax, dword [ebp + 0x2c]
push dword [eax + 4]
call dword [0x7ef96098]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1ac]
call fcn.7ef54455
mov byte [ebp - 4], 8
mov dword [ebp - 0x1b4], 0x7ef96498
jmp 0x7ef7a59c
push dword [0x7efa5e10]
push str.TS_LOADER
call dword [0x7ef96070]
push dword [ebp - 0x10]
push str.TS_MODULE0
call dword [0x7ef96070]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
or al, 4
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [0x7ef96060]
mov dword [ebp - 0x24], eax
call dword [0x7ef960b0]
mov dword [ebp - 0x20], eax
push 0
push str.TS_LOADER
call dword [0x7ef96070]
push 0
push str.TS_MODULE0
call dword [0x7ef96070]
cmp dword [ebp - 0x24], 0
je 0x7ef7a59c
cmp dword [0x7efa5f2c], 0
je 0x7ef7a586
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x2c]
push dword [eax + 8]
mov eax, dword [0x7efa5f2c]
mov eax, dword [eax]
mov ecx, dword [0x7efa5f2c]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
and eax, 4
test eax, eax
jne 0x7ef7a59c
mov eax, dword [ebp + 0x2c]
push dword [eax + 4]
call dword [0x7ef96098]
jmp 0x7ef7a60f
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
or al, 4
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x7ef96060]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x7ef7a606
cmp dword [0x7efa5f2c], 0
je 0x7ef7a5f0
push dword [ebp + 8]
mov eax, dword [ebp + 0x2c]
push dword [eax + 8]
mov eax, dword [0x7efa5f2c]
mov eax, dword [eax]
mov ecx, dword [0x7efa5f2c]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
and eax, 4
test eax, eax
jne 0x7ef7a606
mov eax, dword [ebp + 0x2c]
push dword [eax + 4]
call dword [0x7ef96098]
call dword [0x7ef960b0]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], 0
je 0x7ef7a624
lea eax, [ebp - 0x18]
push eax
push str.TS_EXECUTE_EXTERNAL
call dword [0x7ef96070]
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x10000000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef7a6bc
cmp dword [ebp - 0x24], 0
jne 0x7ef7a64f
mov dword [ebp - 0x230], str.__failed_
jmp 0x7ef7a659
mov dword [ebp - 0x230], str._success_
cmp dword [ebp + 0xc], 0
jne 0x7ef7a66b
mov dword [ebp - 0x234], str.NULL
jmp 0x7ef7a674
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
cmp dword [ebp + 8], 0
jne 0x7ef7a686
mov dword [ebp - 0x238], str.NULL
jmp 0x7ef7a68f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x2c]
push dword [eax + 8]
mov eax, dword [ebp + 0x2c]
push dword [eax]
push dword [ebp - 0x230]
push dword [ebp - 0x24]
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push str.CreateProcess_app_s_cmdline_s_____x__s__h0x_x__pid0x_x__n
call fcn.7ef54190
add esp, 0x1c
push dword [ebp - 0x20]
call dword [0x7ef96044]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.7ef86114
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.7ef86114
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.7ef86114
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x28