Function at 0x10041fd
Capabilities:
Create process on windows
Create process suspended
Create thread
Set environment variable
Terminate process

Disassembly:
sub esp, 0x88
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
mov esi, 0x80000000
push 0x10088a0
mov dword [esp + 0x18], ebx
mov dword [0x1008448], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor edi, edi
inc edi
mov dword [0x1008024], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x10088b8], eax
call fcn.010027b4
call fcn.01003272
mov eax, dword [0x1008014]
and eax, 0xffff0000
cmp eax, 0xcab00000
jne 0x1003d2a
push 0x20000001
jmp 0x1003d86
test dword [0x1008014], esi
jne 0x1003d38
mov dword [0x1008030], edi
and byte [0x1008017], 0x7f
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1008774], eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x1002d57
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1003d6a
push 8
jmp 0x1003d86
push 0xffffffffffffffff
push dword [0x1008774]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1008764]
cmp eax, ebx
jne 0x1003d8b
push 0x4c7
call fcn.01002cb9
cmp dword [0x1008038], ebx
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
je 0x1003dc5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [0x1008764]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1008770]
push dword [0x1008764]
call dword [sym.imp.USER32.dll_SetParent]
jmp 0x1003e05
push dword [0x1008034]
push ebx
push 0xc
push 0x68
push eax
call esi
mov eax, dword [0x1008010]
add eax, 0xffff
shr eax, 0x10
shl eax, 0x10
push eax
push ebx
push 0x401
push 0x6a
push dword [0x1008764]
call esi
push ebx
push edi
push 0x404
push 0x6a
push dword [0x1008764]
call esi
push ebp
push ebx
push ebx
push 0x1008780
call fcn.01002f1b
mov edi, dword [0x1008010]
or dword [esp + 0x1c], 0xffffffff
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x18], eax
je 0x1003e7d
mov eax, 0x10000
cmp edi, eax
mov ebp, edi
jbe 0x1003e35
mov ebp, eax
push ebp
push 0x1008c20
push dword [esp + 0x20]
call fcn.01002f5a
add esp, 0xc
push ebp
push 0x1008c20
push dword [esp + 0x18]
call fcn.010027de
cmp dword [0x1008038], ebx
mov dword [esp + 0x10], eax
jne 0x1003e73
push ebx
push ebx
push 0x405
push 0x6a
push dword [0x1008764]
call esi
sub edi, ebp
jne 0x1003e28
cmp dword [esp + 0x10], ebx
je 0x1003e87
push 0x20000001
call fcn.01002cb9
lea eax, [esp + 0x48]
push eax
push ebx
push fcn.010024e0
push 0x10024c1
push 0x1002f82
push fcn.01002f5a
push fcn.01002f1b
push 0x10024ae
push fcn.01002efd
call fcn.01004202
push ebx
push ebx
push dword [esp + 0x44]
mov dword [esp + 0x40], eax
call fcn.010024e0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x48]
call fcn.01004292
add esp, 0x3c
test eax, eax
jne 0x1003ee7
push 0x20000001
call fcn.01002cb9
cmp dword [0x1008038], ebx
jne 0x1003efc
push ebx
push dword [0x1008764]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0100369e
cmp dword [0x1008038], ebx
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebp, 0x10089e0
jne 0x1003fac
push 0x104
push ebp
push 0x20000004
push dword [0x1008020]
call edi
push 0x104
push 0x1008660
push 0x20000006
push dword [0x1008020]
call edi
push ebp
push ebx
push 0xc
push 0x65
push dword [0x1008764]
call esi
push 0x1008660
push ebx
push 0xc
push 0x66
push dword [0x1008764]
call esi
push 0x10088c0
push ebx
push 0xc
push 0x69
push dword [0x1008764]
call esi
push ebx
push ebx
push 0x402
push 0x6a
push dword [0x1008764]
call esi
movzx eax, word [esp + 0x36]
shl eax, 0x10
push eax
push ebx
push 0x401
push 0x6a
push dword [0x1008764]
call esi
push 5
push dword [0x1008764]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
push 0x1003ae1
push ebx
push 0x100219c
push 0x1008780
push dword [esp + 0x28]
call fcn.01005170
add esp, 0x1c
test eax, eax
jne 0x1003fd8
push 0x20000001
call fcn.01002cb9
mov ecx, dword [0x1018c20]
cmp ecx, ebx
mov eax, dword [0x1008764]
jne 0x1003ff5
cmp eax, ebx
jne 0x1003ff5
push 0x4c7
call fcn.01002cb9
cmp dword [0x10088bc], ebx
je 0x1004152
cmp dword [0x1008030], ebx
jne 0x1004152
cmp dword [0x1008038], ebx
jne 0x1004023
push dword [0x100876c]
push ebx
push 0xc
push 0x68
push eax
call esi
mov eax, dword [0x10088bc]
mov esi, 0x1008b00
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004031
push 0x1002264
push esi
call dword [sym.imp.msvcrt.dll_strstr]
cmp eax, ebx
pop ecx
pop ecx
je 0x100405b
push esi
push 0x1002250
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call fcn.01002bf1
mov eax, dword [0x10088bc]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004069
mov eax, dword [0x100802c]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100407a
mov edi, ebp
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1004086
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x11
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
inc eax
mov dword [esp + 0x80], eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push eax
push dword [0x1018c24]
mov dword [esp + 0x60], 0x44
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10040e8
push 0xffffffffffffffff
call fcn.01002cb9
cmp dword [0x1008038], ebx
jne 0x10040fd
push ebx
push dword [0x1008764]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
mov dword [0x1008884], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
mov dword [0x1008884], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x20]
call esi
call fcn.010023bc
cmp dword [esp + 0x14], 0xcabf00d1
jne 0x100414b
mov dword [esp + 0x14], ebx
jmp 0x1004184
call fcn.010025be
jmp 0x1004184
cmp ecx, ebx
jne 0x1004184
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x104
push ebp
push 0x20000002
push dword [0x1008020]
call edi
push 0x10030
push ebp
push ebp
push dword [0x1008764]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x1008448]
test eax, eax
js 0x10041d9
mov esi, 0x40000000
test esi, eax
jne 0x10041cf
push dword [0x100844c]
mov ecx, eax
shr ecx, 4
and ecx, 1
push 0x1008450
push ecx
mov ecx, eax
shr ecx, 1
and ecx, 1
push ecx
and eax, 1
push eax
call fcn.01002d83
test eax, eax
mov eax, dword [0x1008448]
jne 0x10041cb
or eax, esi
mov dword [0x1008448], eax
test esi, eax
je 0x10041d9
push 0x20000007
call fcn.01002cb9
cmp dword [0x1008024], ebx
je 0x10041f2
push 0x10088a0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x1008024], ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x1003cc7