Function at 0x41f0a0
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0xc], 0
call fcn.00425f90
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [edi + 8]
mov ecx, dword [edi + 4]
mov byte [esp + 0xb], dl
test ecx, ecx
je 0x41f174
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x41f0e1
xor dl, dl
jmp 0x41f170
call fcn.004215d0
cmp eax, 3
jl 0x41f27e
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
ja 0x41f27e
push ecx
lea ecx, [esp + 0x3c]
call fcn.00426060
test al, al
je 0x41f27e
mov eax, dword [edi + 4]
mov edx, dword [eax + 4]
sub edx, dword [eax]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar edx, 2
sar eax, 2
test eax, eax
je 0x41f35e
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x41f282
push 0
push 0
lea eax, [edx*4]
push eax
push esi
push 0x20002
push 0
push ecx
call dword [0x4775f8]
test eax, eax
setne al
test al, al
je 0x41f27e
mov dl, 1
mov esi, 0x80000
mov byte [esp + 0xb], dl
cmp byte [edi + 0x10], 0
mov eax, 0x40dbc0
mov dword [esp + 0x64], 1
cmove eax, dword [esp + 0x40]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [esp + 0x40], eax
mov eax, 5
cmovne eax, ecx
mov word [esp + 0x68], ax
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x41f1b1
cmp dword [edi + 0x1c], ecx
jne 0x41f1b1
cmp dword [edi + 0x20], ecx
je 0x41f1cb
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x64], 0x101
mov dword [esp + 0x78], eax
cmp dword [edi + 0x14], ecx
je 0x41f1d6
or esi, 0x1000004
cmp byte [edi + 0x24], cl
je 0x41f1e1
or esi, 0x1000000
mov eax, dword [edi + 0xc]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
test eax, eax
je 0x41f24f
push 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
or esi, 0x400
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x41f27e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x41f218
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
movzx eax, byte [esp + 0x13]
push 0
push dword [esp + 0x18]
push esi
push eax
push 0
push 0
push ecx
push 0
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jmp 0x41f27c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x41f25a
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push esi
movzx eax, dl
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41f28c
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0xb], 0
jmp 0x41f33d
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00425ed0
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x41f300
push esi
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x41f2f6
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x41f2ef
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0xb], 0
jmp 0x41f330
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [edi], 0
je 0x41f30e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f32b
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call fcn.0041e3e0
mov byte [esp + 0xb], 1
lea ecx, [esp + 0x10]
call fcn.00425df0
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x41f354
push ecx
call dword [0x477600]
push dword [esp + 0x7c]
call fcn.004501b0
add esp, 4
mov al, byte [esp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x40dbd0
call fcn.0046be42
int3