Function at 0x4058d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x4058e0
push ecx
push ebx
push esi
push edi
mov eax, 0x405880
call fcn.004024f0
xor eax, eax
push ebp
push 0x40658d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
call sub.user32.dll_PostMessageW
push 0
push 0
push 0
push 0
push 0x40872c
call sub.user32.dll_PeekMessageW
mov byte [0x4086a0], 0
mov byte [0x4086a1], 0
mov byte [0x4086a2], 0
mov byte [0x4086a3], 0
mov byte [0x4086a4], 0
mov byte [0x4086a5], 0
mov byte [0x4086a6], 0
mov byte [0x4086a7], 0
mov byte [0x4086a8], 0
call fcn.00402dfc
cmp eax, 2
jl 0x406527
xor esi, esi
jmp 0x405cf0
inc esi
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00402d50
mov edx, dword [ebp - 0x14]
mov eax, 0x4086b4
call fcn.004018c4
mov eax, dword [0x4086b4]
cmp word [eax], 0x2f
jne 0x405cfe
mov eax, dword [0x4086b4]
call fcn.00401a28
mov edi, eax
sub edi, 2
jl 0x405cf0
inc edi
mov ebx, 2
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x66
jne 0x4059d1
mov byte [0x4086a0], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x75
jne 0x4059f8
cmp byte [0x4086a2], 0
je 0x4059ec
call fcn.0040534c
mov byte [0x4086a1], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x55
jne 0x405a26
cmp byte [0x4086a1], 0
je 0x405a13
call fcn.0040534c
mov byte [0x4086a1], 1
mov byte [0x4086a2], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x70
jne 0x405a60
mov eax, dword [0x4086ac]
xor edx, edx
call fcn.00401b40
je 0x405a46
call fcn.0040534c
lea eax, [ebp - 0x18]
call fcn.00402e80
mov edx, dword [ebp - 0x18]
mov eax, 0x4086ac
call fcn.004018c4
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x50
jne 0x405a94
mov eax, dword [0x4086ac]
xor edx, edx
call fcn.00401b40
je 0x405a80
call fcn.0040534c
mov eax, 0x4086ac
mov edx, 0x4065a0
call fcn.004018c4
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x77
jne 0x405ace
mov eax, dword [0x4086b0]
xor edx, edx
call fcn.00401b40
je 0x405ab4
call fcn.0040534c
lea eax, [ebp - 0x1c]
call fcn.00402e80
mov edx, dword [ebp - 0x1c]
mov eax, 0x4086b0
call fcn.004018c4
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x57
jne 0x405b02
mov eax, dword [0x4086b0]
xor edx, edx
call fcn.00401b40
je 0x405aee
call fcn.0040534c
mov eax, 0x4086b0
mov edx, 0x4065a0
call fcn.004018c4
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x64
jne 0x405b29
cmp byte [0x4086a8], 0
je 0x405b1d
call fcn.0040534c
mov byte [0x4086a7], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x44
jne 0x405b57
cmp byte [0x4086a7], 0
je 0x405b44
call fcn.0040534c
mov byte [0x4086a7], 1
mov byte [0x4086a8], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x72
jne 0x405b7e
cmp byte [0x4086a6], 0
je 0x405b72
call fcn.0040534c
mov byte [0x4086a5], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x52
jne 0x405bac
cmp byte [0x4086a5], 0
je 0x405b99
call fcn.0040534c
mov byte [0x4086a5], 1
mov byte [0x4086a6], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x6b
jne 0x405c00
call fcn.00402dfc
sub eax, 2
cmp esi, eax
jge 0x405bf6
inc esi
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00402d50
mov edx, dword [ebp - 0x20]
mov eax, 0x4086bc
call fcn.004018c4
mov eax, dword [0x4086bc]
cmp word [eax], 0x2f
jne 0x405ce8
call fcn.0040534c
jmp 0x405ce8
call fcn.0040534c
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x73
je 0x405c1a
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x53
jne 0x405c75
call fcn.00402dfc
sub eax, 2
cmp esi, eax
jge 0x405c5a
inc esi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.00402d50
mov edx, dword [ebp - 0x24]
mov eax, 0x4086c4
call fcn.004018c4
mov eax, dword [0x4086c4]
cmp word [eax], 0x2f
jne 0x405c4e
call fcn.0040534c
mov eax, 0x4086c4
call fcn.00405710
jmp 0x405c5f
call fcn.0040534c
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x53
jne 0x405ce8
mov byte [0x4086a4], 1
jmp 0x405ce8
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x62
je 0x405c8f
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x42
jne 0x405ce8
call fcn.00402dfc
sub eax, 2
cmp esi, eax
jge 0x405ccf
inc esi
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.00402d50
mov edx, dword [ebp - 0x28]
mov eax, 0x4086c0
call fcn.004018c4
mov eax, dword [0x4086c0]
cmp word [eax], 0x2f
jne 0x405cc3
call fcn.0040534c
mov eax, 0x4086c0
call fcn.00405710
jmp 0x405cd4
call fcn.0040534c
mov eax, dword [0x4086b4]
cmp word [eax + ebx*2 - 2], 0x42
jne 0x405ce8
mov byte [0x4086a3], 1
inc ebx
dec edi
jne 0x4059b8
call fcn.00402dfc
dec eax
cmp esi, eax
jl 0x405976
mov eax, 0x4086b4
call fcn.00405710
mov eax, 0x4086c8
mov edx, dword [0x4086b4]
call fcn.004018c4
inc esi
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.00402d50
mov edx, dword [ebp - 0x2c]
mov eax, 0x4086cc
call fcn.004018c4
mov eax, 0x4086cc
call fcn.00405710
mov eax, dword [0x4086ac]
xor edx, edx
call fcn.00401b40
jne 0x405d5f
lea eax, [ebp - 0x30]
call fcn.00402fc8
mov edx, dword [ebp - 0x30]
mov eax, 0x4086ac
call fcn.004018c4
jmp 0x405daf
mov eax, dword [0x4086ac]
mov edx, 0x4065a0
call fcn.00401b40
jne 0x405daf
mov eax, dword [0x4086cc]
call fcn.00405664
test al, al
je 0x405d9a
lea edx, [ebp - 0x34]
mov eax, dword [0x4086cc]
call fcn.00402f64
mov edx, dword [ebp - 0x34]
mov eax, 0x4086ac
call fcn.004018c4
jmp 0x405daf
lea eax, [ebp - 0x38]
call fcn.00402fc8
mov edx, dword [ebp - 0x38]
mov eax, 0x4086ac
call fcn.004018c4
mov eax, dword [0x4086c8]
call fcn.00405664
test al, al
jne 0x405dd3
mov eax, 0x4086c8
mov ecx, dword [0x4086c8]
mov edx, dword [0x4086ac]
call fcn.00401a94
mov eax, dword [0x4086c8]
call fcn.00402e5c
test al, al
je 0x405def
mov eax, dword [0x4086c8]
call fcn.004051ec
test al, al
jne 0x405df6
push 3
call sub.KERNEL32.DLL_ExitProcess
mov eax, dword [0x4086cc]
call fcn.00405664
test al, al
jne 0x405e1a
mov eax, 0x4086cc
mov ecx, dword [0x4086cc]
mov edx, dword [0x4086ac]
call fcn.00401a94
mov eax, dword [0x4086b0]
xor edx, edx
call fcn.00401b40
jne 0x405e3f
lea eax, [ebp - 0x3c]
call fcn.00402fc8
mov edx, dword [ebp - 0x3c]
mov eax, 0x4086b0
call fcn.004018c4
jmp 0x405e8f
mov eax, dword [0x4086b0]
mov edx, 0x4065a0
call fcn.00401b40
jne 0x405e8f
mov eax, dword [0x4086cc]
call fcn.00405664
test al, al
je 0x405e7a
lea edx, [ebp - 0x40]
mov eax, dword [0x4086cc]
call fcn.00402f64
mov edx, dword [ebp - 0x40]
mov eax, 0x4086b0
call fcn.004018c4
jmp 0x405e8f
lea eax, [ebp - 0x44]
call fcn.00402fc8
mov edx, dword [ebp - 0x44]
mov eax, 0x4086b0
call fcn.004018c4
inc esi
mov eax, 0x4086d0
call fcn.00401888
jmp 0x405ede
lea edx, [ebp - 0x48]
mov eax, esi
call fcn.00402d50
mov edx, dword [ebp - 0x48]
mov eax, 0x4086b8
call fcn.004018c4
mov eax, 0x4086b8
call fcn.004041d8
push dword [0x4086d0]
push 0x4065a8
push dword [0x4086b8]
mov eax, 0x4086d0
mov edx, 3
call fcn.00401af8
inc esi
call fcn.00402dfc
cmp esi, eax
jle 0x405e9c
mov eax, 0x4086d0
call fcn.00405710
mov eax, dword [0x4086c0]
xor edx, edx
call fcn.00401b40
je 0x405f46
mov eax, dword [0x4086c0]
mov edx, 0x4065b0
call fcn.00401b40
jne 0x405f22
mov eax, 0x4086c0
mov edx, dword [0x4086c8]
call fcn.004018c4
jmp 0x405f46
mov eax, dword [0x4086c0]
call fcn.00405664
test al, al
jne 0x405f46
mov eax, 0x4086c0
mov ecx, dword [0x4086c0]
mov edx, dword [0x4086ac]
call fcn.00401a94
mov eax, dword [0x4086c4]
xor edx, edx
call fcn.00401b40
je 0x405f9b
mov eax, dword [0x4086c4]
mov edx, 0x4065b0
call fcn.00401b40
jne 0x405f77
mov eax, 0x4086c4
mov edx, dword [0x4086c8]
call fcn.004018c4
jmp 0x405f9b
mov eax, dword [0x4086c4]
call fcn.00405664
test al, al
jne 0x405f9b
mov eax, 0x4086c4
mov ecx, dword [0x4086c4]
mov edx, dword [0x4086ac]
call fcn.00401a94
lea edx, [ebp - 0x4c]
mov eax, dword [0x4086c8]
call fcn.004057a8
mov edx, dword [ebp - 0x4c]
mov eax, 0x4086d4
call fcn.004018c4
mov eax, dword [0x4086d4]
xor edx, edx
call fcn.00401b40
jne 0x405fca
push 2
call sub.KERNEL32.DLL_ExitProcess
lea ecx, [ebp - 0x50]
mov eax, 0x4086d4
mov edx, 0x4065b8
call fcn.00402b40
mov edx, dword [ebp - 0x50]
mov eax, 0x4086d8
call fcn.004018c4
mov al, byte [0x4086a1]
or al, byte [0x4086a5]
jne 0x406016
mov eax, dword [0x4086c0]
xor edx, edx
call fcn.00401b40
jne 0x406016
mov eax, dword [0x4086c4]
xor edx, edx
call fcn.00401b40
jne 0x406016
xor ebx, ebx
jmp 0x406018
mov bl, 1
mov eax, dword [0x4086bc]
xor edx, edx
call fcn.00401b40
jne 0x406048
mov eax, 0x4086bc
mov edx, dword [0x4086d4]
call fcn.004018c4
mov eax, 0x4086dc
mov edx, dword [0x4086d8]
call fcn.004018c4
jmp 0x406067
lea ecx, [ebp - 0x54]
mov eax, 0x4086bc
mov edx, 0x4065b8
call fcn.00402b40
mov edx, dword [ebp - 0x54]
mov eax, 0x4086dc
call fcn.004018c4
cmp byte [0x4086a0], 0
jne 0x406090
mov eax, dword [0x4086dc]
call fcn.00403a48
mov edx, dword [0x4086bc]
call fcn.00403158
test al, al
jne 0x406090
mov byte [0x4086a0], 1
test bl, bl
je 0x40612c
call fcn.004037bc
mov dword [0x4086e8], eax
call fcn.004037bc
mov dword [0x4086ec], eax
mov eax, dword [0x4086c8]
call fcn.0040326c
mov dword [0x4086e0], eax
mov eax, dword [0x4086e0]
mov byte [eax + 0x18], 0
call fcn.004037bc
mov dword [0x4086e4], eax
mov eax, dword [0x4086e0]
mov edx, dword [0x4086e4]
call fcn.00403290
mov eax, dword [0x4086e4]
call fcn.004035bc
mov edi, eax
dec edi
test edi, edi
jl 0x406118
inc edi
xor esi, esi
lea ecx, [ebp - 0x58]
mov eax, dword [0x4086e4]
mov edx, esi
call fcn.004035c4
mov ecx, dword [ebp - 0x58]
mov edx, dword [0x4086ec]
mov eax, dword [0x4086e8]
call fcn.00404650
inc esi
dec edi
jne 0x4060f2
mov eax, dword [0x4086e4]
call fcn.004037dc
mov eax, dword [0x4086e0]
call fcn.004037dc
lea edx, [ebp - 0x5c]
mov eax, dword [0x4086c8]
call fcn.00404720
mov edx, dword [ebp - 0x5c]
mov eax, 0x408748
mov ecx, dword [0x4039c4]
call fcn.004022ec
cmp byte [0x4086a6], 0
je 0x406177
lea edx, [ebp - 0x60]
mov eax, dword [0x4086ec]
call fcn.00404ef4
mov edx, dword [ebp - 0x60]
mov eax, 0x40874c
mov ecx, dword [0x4039c4]
call fcn.004022ec
jmp 0x4061a0
cmp byte [0x4086a5], 0
je 0x4061a0
lea edx, [ebp - 0x64]
mov eax, dword [0x4086e8]
call fcn.004049b4
mov edx, dword [ebp - 0x64]
mov eax, 0x40874c
mov ecx, dword [0x4039c4]
call fcn.004022ec
mov eax, dword [0x4086c0]
xor edx, edx
call fcn.00401b40
je 0x406232
cmp byte [0x4086a3], 0
je 0x4061f3
cmp byte [0x4086a6], 0
je 0x4061d6
mov edx, dword [0x4086c0]
mov eax, dword [0x40874c]
call fcn.00404fc4
jmp 0x406232
lea edx, [ebp - 0x68]
mov eax, dword [0x4086ec]
call fcn.00404ef4
mov eax, dword [ebp - 0x68]
mov edx, dword [0x4086c0]
call fcn.00404fc4
jmp 0x406232
cmp byte [0x4086a5], 0
je 0x406217
cmp byte [0x4086a6], 0
jne 0x406217
mov edx, dword [0x4086c0]
mov eax, dword [0x40874c]
call fcn.00404fc4
jmp 0x406232
lea edx, [ebp - 0x6c]
mov eax, dword [0x4086e8]
call fcn.004049b4
mov eax, dword [ebp - 0x6c]
mov edx, dword [0x4086c0]
call fcn.00404fc4
cmp byte [0x4086a8], 0
je 0x4062a2
mov eax, dword [0x4086ec]
call fcn.004035bc
mov edi, eax
dec edi
test edi, edi
jl 0x406317
inc edi
xor esi, esi
lea ecx, [ebp - 0x70]
mov eax, dword [0x4086ec]
mov edx, esi
call fcn.004035c4
mov edx, dword [ebp - 0x70]
mov eax, 0x4086d4
call fcn.004018c4
lea ecx, [ebp - 0x74]
mov eax, 0x4086d4
mov edx, 0x4065b8
call fcn.00402b40
mov eax, dword [ebp - 0x74]
call fcn.00403a48
push eax
mov eax, dword [0x4086d4]
call fcn.00401a18
mov edx, eax
pop eax
call fcn.004044ec
inc esi
dec edi
jne 0x406253
jmp 0x406317
cmp byte [0x4086a7], 0
je 0x406317
mov eax, dword [0x4086e8]
call fcn.004035bc
mov esi, eax
dec esi
cmp esi, 0
jl 0x406317
lea ecx, [ebp - 0x78]
mov eax, dword [0x4086e8]
mov edx, esi
call fcn.004035c4
mov edx, dword [ebp - 0x78]
mov eax, 0x4086d4
call fcn.004018c4
lea ecx, [ebp - 0x7c]
mov eax, 0x4086d4
mov edx, 0x4065b8
call fcn.00402b40
mov eax, dword [ebp - 0x7c]
call fcn.00403a48
push eax
mov eax, dword [0x4086d4]
call fcn.00401a18
mov edx, eax
lea eax, [ebp - 0x80]
call fcn.004019b0
mov edx, dword [ebp - 0x80]
pop eax
call fcn.00403134
dec esi
cmp esi, 0xffffffff
jne 0x4062bd
cmp byte [0x4086a0], 0
je 0x406334
mov eax, dword [0x408748]
call fcn.004048bc
mov eax, 0x408748
call fcn.004039f8
mov eax, 0x4086f0
mov edx, 0x3c
call fcn.004025f0
mov dword [0x4086f0], 0x3c
mov dword [0x4086f4], 0x40
mov eax, dword [0x4086cc]
call fcn.00401a18
mov dword [0x408700], eax
mov eax, dword [0x4086d0]
call fcn.00401a18
mov dword [0x408704], eax
mov dword [0x40870c], 1
mov eax, dword [0x4086b0]
call fcn.00401a18
mov dword [0x408708], eax
push 0x4086f0
call sub.shell32.dll_ShellExecuteExW
test byte [0x4086a0], bl
je 0x40652c
push 0xffffffffffffffff
mov eax, dword [0x408728]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [0x4086c4]
xor edx, edx
call fcn.00401b40
je 0x40640c
cmp byte [0x4086a4], 0
je 0x4063eb
lea edx, [ebp - 0x84]
mov eax, dword [0x4086ec]
call fcn.00404ef4
mov eax, dword [ebp - 0x84]
mov edx, dword [0x4086c4]
call fcn.00404fc4
jmp 0x40640c
lea edx, [ebp - 0x88]
mov eax, dword [0x4086e8]
call fcn.004049b4
mov eax, dword [ebp - 0x88]
mov edx, dword [0x4086c4]
call fcn.00404fc4
cmp byte [0x4086a2], 0
je 0x40648b
mov eax, dword [0x4086ec]
call fcn.004035bc
mov edi, eax
dec edi
test edi, edi
jl 0x406512
inc edi
xor esi, esi
lea ecx, [ebp - 0x8c]
mov eax, dword [0x4086ec]
mov edx, esi
call fcn.004035c4
mov edx, dword [ebp - 0x8c]
mov eax, 0x4086d4
call fcn.004018c4
lea ecx, [ebp - 0x90]
mov eax, 0x4086d4
mov edx, 0x4065b8
call fcn.00402b40
mov eax, dword [ebp - 0x90]
call fcn.00403a48
push eax
mov eax, dword [0x4086d4]
call fcn.00401a18
mov edx, eax
pop eax
call fcn.004044ec
inc esi
dec edi
jne 0x40642d
jmp 0x406512
cmp byte [0x4086a1], 0
je 0x406512
mov eax, dword [0x4086e8]
call fcn.004035bc
mov esi, eax
dec esi
cmp esi, 0
jl 0x406512
lea ecx, [ebp - 0x94]
mov eax, dword [0x4086e8]
mov edx, esi
call fcn.004035c4
mov edx, dword [ebp - 0x94]
mov eax, 0x4086d4
call fcn.004018c4
lea ecx, [ebp - 0x98]
mov eax, 0x4086d4
mov edx, 0x4065b8
call fcn.00402b40
mov eax, dword [ebp - 0x98]
call fcn.00403a48
push eax
mov eax, dword [0x4086d4]
call fcn.00401a18
mov edx, eax
lea eax, [ebp - 0x9c]
call fcn.004019b0
mov edx, dword [ebp - 0x9c]
pop eax
call fcn.00403134
dec esi
cmp esi, 0xffffffff
jne 0x4064a6
cmp byte [0x4086a5], 0
je 0x40652c
mov eax, dword [0x40874c]
call fcn.004048bc
jmp 0x40652c
call fcn.0040534c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406594
lea eax, [ebp - 0x9c]
mov edx, 5
call fcn.004018a0
lea eax, [ebp - 0x88]
mov edx, dword [0x4039c4]
mov ecx, 2
call fcn.00401d88
lea eax, [ebp - 0x80]
mov edx, 5
call fcn.004018a0
lea eax, [ebp - 0x6c]
mov edx, dword [0x4039c4]
mov ecx, 5
call fcn.00401d88
lea eax, [ebp - 0x58]
mov edx, 0x12
call fcn.004018a0
ret