Function at 0x10005840
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a69e
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], ecx
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x10069294
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10009320
push str.WINDIR
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1003ac32
add esp, 0xc
test eax, eax
je 0x10005922
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x10005905
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100058fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005c9c
push ecx
push edx
call fcn.10035423
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035415
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x30], 0
je 0x10005c64
push 0x11
mov edx, 0x10070b30
lea ecx, [ebp - 0xec]
call fcn.10002070
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov edx, dword [ebp - 0x30]
mov ecx, edx
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005970
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xbc]
call fcn.10009320
push esi
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xa4]
call fcn.10009b50
push 0x100692fc
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.10009000
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x10005a38
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x10005a06
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100059fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005ca1
push ecx
push edx
call fcn.10035423
add esp, 8
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0xc0]
cmp ecx, 8
jb 0x10005a78
mov edx, dword [ebp - 0xd4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005a6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005ca1
push ecx
push edx
call fcn.10035423
add esp, 8
mov ecx, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
cmp ecx, 8
jb 0x10005ad5
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005acb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005ca1
push ecx
push edx
call fcn.10035423
add esp, 8
mov ecx, dword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp ecx, 8
jb 0x10005b32
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005b28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005ca1
push ecx
push edx
call fcn.10035423
add esp, 8
mov ecx, dword [ebp - 0xd8]
cmp ecx, 8
jb 0x10005b72
mov edx, dword [ebp - 0xec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005b68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005ca1
push ecx
push edx
call fcn.10035423
add esp, 8
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0x44
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x52], eax
xor edx, edx
or eax, 0x100
mov word [ebp - 0x4e], dx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x58], eax
xor eax, eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x44], edx
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push ecx
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x8c]
push 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x4c], edx
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10005c04
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0x40]
mov edi, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x88]
call esi
push dword [ebp - 0x8c]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x10005c5d
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005c53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005c9c
push ecx
push edx
call fcn.10035423
add esp, 8
mov eax, edi
jmp 0x10005907
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x10005905
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100058fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100058fb
call fcn.1003a33a
call fcn.1003a33a
int3