Function at 0x10003481
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
mov eax, 0x1004892b
call fcn.100484e0
sub esp, 0x200
push ebx
push esi
push edi
lea ecx, [ebp - 0x194]
call fcn.10006dc7
and dword [ebp - 4], 0
lea edx, [ebp - 0x194]
cmp dword [ebp - 0x180], 7
lea ecx, [ebp - 0xa8]
cmova edx, dword [ebp - 0x194]
call fcn.10007b76
push str.UseConsole
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.10001786
push str.Dll_Injection
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10001786
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xa8]
call fcn.10007ce3
pop ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.100017e9
lea ecx, [ebp - 0x34]
call fcn.1000184d
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.1000184d
cmp dword [ebp - 0x68], 0xf
lea ecx, [ebp - 0x7c]
mov esi, dword [ebp - 0x6c]
lea ebx, [ebp - 0x7c]
cmova ecx, dword [ebp - 0x7c]
lea edi, [ebp - 0x7c]
cmova ebx, dword [ebp - 0x7c]
add esi, ecx
cmp dword [ebp - 0x68], 0xf
cmova edi, dword [ebp - 0x7c]
cmp edi, esi
je 0x10003552
sub ebx, edi
movsx eax, byte [edi]
push eax
call fcn.1002a004
mov byte [edi + ebx], al
inc edi
pop ecx
cmp edi, esi
jne 0x10003540
mov edx, str.true
lea ecx, [ebp - 0x7c]
call fcn.10005348
test al, al
je 0x1000357e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x10003579
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x1000357e
call fcn.1000741a
lea ecx, [ebp - 0x54]
call fcn.10006d26
push str..env
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.100054e8
pop ecx
lea ecx, [ebp - 0x54]
call fcn.1000181f
mov byte [ebp - 4], 8
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 7
lea ecx, [ebp - 0x17c]
cmova edx, dword [ebp - 0x34]
call fcn.10006a40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.1000181f
cmp dword [ebp - 0x168], 0xf
lea eax, [ebp - 0x17c]
lea ecx, [ebp - 0x60]
cmova eax, dword [ebp - 0x17c]
push eax
call fcn.10002d7b
pop ecx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x10003606
lea edx, [eax + 4]
cmp dword [edx + 0x14], 0xf
mov eax, dword [edx + 0x10]
jbe 0x100035ff
mov edx, dword [edx]
push eax
call fcn.10005dc5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea edi, [ebp - 0x34]
xor eax, eax
lea ecx, [ebp - 0x34]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x103
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.10006bca
push 7
pop edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], edi
push 0x104
cmova eax, dword [ebp - 0x34]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
cmp dword [ebp - 0x20], edi
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push esi
lea ecx, [ebp - 0x54]
call fcn.10004b07
lea ecx, [ebp - 0x34]
call fcn.1000181f
push str..dll
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x108]
call fcn.100054e8
pop ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xf
call fcn.1000181f
cmp dword [ebp - 0xf4], edi
lea edx, [ebp - 0x108]
push 1
cmova edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x1f4]
call fcn.10006e9e
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x54]
mov dword [esp], str.ProxyPath
call fcn.10001786
mov esi, str.Dll_Injection
mov byte [ebp - 4], 0x11
push esi
lea ecx, [ebp - 0x34]
call fcn.10001786
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x12
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xa8]
call fcn.10007ce3
pop ecx
cmp dword [eax + 0x14], 0xf
jbe 0x100036ff
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0xd8]
call fcn.10006b05
lea ecx, [ebp - 0x34]
call fcn.1000184d
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x15
call fcn.1000184d
push str.TargetPath
lea ecx, [ebp - 0x54]
call fcn.10001786
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.10001786
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x17
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xa8]
call fcn.10007ce3
pop ecx
cmp dword [eax + 0x14], 0xf
jbe 0x10003759
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.10006b05
lea ecx, [ebp - 0x34]
call fcn.1000184d
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1a
call fcn.1000184d
push str.DllPath
lea ecx, [ebp - 0x54]
call fcn.10001786
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
call fcn.10001786
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x1c
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xa8]
call fcn.10007ce3
pop ecx
cmp dword [eax + 0x14], 0xf
jbe 0x100037b3
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0xf0]
call fcn.10006b05
lea ecx, [ebp - 0x34]
call fcn.1000184d
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1f
call fcn.1000184d
cmp dword [ebp - 0xac], edi
lea edx, [ebp - 0xc0]
push 1
cmova edx, dword [ebp - 0xc0]
lea ecx, [ebp - 0x1dc]
call fcn.10006e9e
mov byte [ebp - 4], 0x20
lea edx, [ebp - 0xd8]
cmp dword [ebp - 0xc4], edi
lea ecx, [ebp - 0x1ac]
push 1
cmova edx, dword [ebp - 0xd8]
call fcn.10006e9e
mov byte [ebp - 4], 0x21
lea edx, [ebp - 0xf0]
cmp dword [ebp - 0xdc], edi
lea ecx, [ebp - 0x1c4]
push 1
cmova edx, dword [ebp - 0xf0]
call fcn.10006e9e
cmp dword [ebp - 0x19c], 0
lea edi, [ebp - 0x90]
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0x44
seta byte [ebp - 0xd]
mov dword [ebp - 0x148], ebx
xor eax, eax
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x11c], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
movups xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 1
push 0x14
mov byte [ebp - 4], 0x23
call fcn.1000a124
mov ecx, dword [ebp - 0x14]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x64], edx
mov edi, edx
add esp, 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [edx], vtable.std::_Ref_count_resource_std::nullptr_t__class__void___cdecl_MainInjector::Run_void_::_2::_lambda_1__.0
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
mov cl, byte [ebp - 0xd]
lea eax, [ebp - 0x1dc]
test cl, cl
mov byte [ebp - 4], 0x24
lea edi, [ebp - 0x1ac]
cmove edi, eax
lea ebx, [ebp - 0xd8]
lea eax, [ebp - 0xc0]
cmove ebx, eax
lea esi, [ebp - 0x1f4]
lea eax, [ebp - 0x1c4]
cmove esi, eax
lea edx, [ebp - 0xf0]
lea eax, [ebp - 0x108]
cmove eax, edx
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x80], eax
mov edx, edi
jbe 0x1000394f
mov edx, dword [edi]
lea ecx, [ebp - 0x164]
call fcn.10006f69
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x164]
cmp dword [ebp - 0x150], 7
cmova eax, dword [ebp - 0x164]
cmp dword [edi + 0x14], 7
jbe 0x1000397a
mov edi, dword [edi]
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
push eax
xor eax, eax
push eax
push 4
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10003ce7
mov ecx, dword [ebp - 0x90]
xor edi, edi
and dword [ebp - 0x3c], edi
cmp byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], edi
je 0x10003b19
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jmp 0x100039f8
lea ecx, [eax + 0x10]
cmp dword [ecx + 0x10], 0
jbe 0x100039ed
mov edx, str.Dll_Injection
call fcn.10005348
test al, al
jne 0x100039ed
inc edi
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 0x1c]
call fcn.100059bb
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xd], 0
je 0x100039d2
test edi, edi
jne 0x10003a06
xor ecx, ecx
jmp 0x10003a1e
or eax, 0xffffffff
xor edx, edx
div edi
cmp eax, 0x410
jb 0x10003d12
imul ecx, edi, 0x410
push 0x10
pop edx
call fcn.10005548
mov edi, 0x208
mov edx, eax
mov ecx, edi
call fcn.10005548
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.100076e2
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x14], eax
mov eax, esi
lea ecx, [ecx*2 + 2]
jbe 0x10003a58
mov eax, dword [esi]
push edi
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push eax
call fcn.10007702
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xa8]
add esp, 0xc
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ecx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp byte [eax + 0xd], 0
jne 0x10003ab0
lea ecx, [eax + 0x10]
lea eax, [ecx + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.10003d7a
lea ecx, [ebp - 0x1c]
call fcn.100059bb
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xd], 0
je 0x10003a8c
mov edi, dword [ebp - 0x14]
push 0
push 4
lea eax, [ebp - 0x58]
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003d2d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push 0
push 4
add eax, 4
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003d2d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 0
push 4
add eax, 4
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003d2d
add dword [ebp - 0x14], 4
jmp 0x10003ba9
mov edx, 0x218
call fcn.100076e2
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
lea ecx, [eax*2 + 2]
mov eax, esi
jbe 0x10003b3d
mov eax, dword [esi]
push 0x208
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push eax
call fcn.10007702
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x58]
add esp, 0xc
push 0
push 4
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003d2d
push 0
push 4
lea ecx, [ebp - 0x38]
push ecx
lea eax, [edi + 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003d2d
push 0
push 4
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [edi + 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003d2d
lea eax, [ebx + 0x14]
cmp dword [eax], 7
mov dword [ebp - 0x1c], eax
jbe 0x10003bb6
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 7
jbe 0x10003bbe
mov esi, dword [esi]
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x14], 7
jbe 0x10003bc9
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x90]
push ebx
push esi
push eax
push edi
call fcn.100074d5
add esp, 0x10
mov edx, str.Wait_for
mov ecx, 0x1005d3e0
call fcn.10005577
cmp byte [ebp - 0xd], 0
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0xd8]
cmove edx, ecx
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 7
mov esi, dword [edx + 0x10]
jbe 0x10003c0d
mov edx, dword [edx]
push esi
mov ecx, eax
call fcn.10005fc9
pop ecx
mov edx, str...._n
mov ecx, eax
call fcn.10005577
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x164]
call fcn.1000181f
mov ecx, dword [ebp - 0x64]
call fcn.10002124
lea ecx, [ebp - 0x1c4]
call fcn.1000181f
lea ecx, [ebp - 0x1ac]
call fcn.1000181f
lea ecx, [ebp - 0x1dc]
call fcn.1000181f
lea ecx, [ebp - 0xf0]
call fcn.1000181f
lea ecx, [ebp - 0xc0]
call fcn.1000181f
lea ecx, [ebp - 0xd8]
call fcn.1000181f
lea ecx, [ebp - 0x1f4]
call fcn.1000181f
lea ecx, [ebp - 0x108]
call fcn.1000181f
lea ecx, [ebp - 0x60]
call fcn.10004a84
lea ecx, [ebp - 0x17c]
call fcn.1000184d
lea ecx, [ebp - 0x7c]
call fcn.1000184d
lea ecx, [ebp - 0xa8]
call fcn.10003f02
lea ecx, [ebp - 0x194]
call fcn.1000181f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push str.Failed_to_launch
lea ecx, [ebp - 0x54]
call fcn.10004b07
push ebx
mov edx, eax
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x20c]
call fcn.10005526
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0x27
call fcn.10008aed
push str.Unsigned_integer_overflow
lea ecx, [ebp - 0x48]
call fcn.1000209a
push 0x10059880
lea eax, [ebp - 0x48]
push eax
call fcn.1002497f
mov ecx, str.Failed_to_run_WriteProcessMemory
call fcn.10008a59
int3