Function at 0x58dfe0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609eee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
mov eax, dword [0x6ccf78]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], ebx
jne 0x58e6d0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x44], bx
lea eax, [ebp - 0x48]
push 1
push eax
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00561cb0
mov eax, dword [esi + 0x490]
cmp eax, ebx
je 0x58e060
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x58e060
mov edx, dword [esi + 0x490]
mov eax, dword [edx + 0xc]
push eax
call fcn.005dbbd0
mov dword [ebp - 0x30], eax
jmp 0x58e063
mov dword [ebp - 0x30], ebx
mov edx, dword [esi + 0x474]
mov ecx, dword [esi + 0x470]
cmp edx, ebx
jl 0x58e079
jg 0x58e094
cmp ecx, ebx
ja 0x58e094
mov eax, dword [esi + 0x44]
cmp eax, 4
je 0x58e094
cmp eax, 5
je 0x58e094
mov eax, dword [esi + 0x308]
mov byte [ebp - 0x14], 0
cmp eax, ebx
je 0x58e098
mov byte [ebp - 0x14], 1
mov eax, dword [esi + 0x44]
cmp eax, 4
je 0x58e0ad
cmp eax, 5
je 0x58e0ad
cmp dword [esi + 0x308], ebx
je 0x58e0b3
mov eax, ecx
or eax, edx
jne 0x58e0bf
mov ecx, dword [esi + 0x478]
mov edx, dword [esi + 0x47c]
mov edi, dword [ebp - 0x48]
cmp edi, ebx
jne 0x58e0c9
lea edi, [ebp - 0x44]
mov eax, dword [esi + 0x54]
cmp eax, ebx
jne 0x58e0d3
lea eax, [esi + 0x58]
mov ebx, dword [ebp - 0x30]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x14]
push eax
push edx
push ecx
mov ecx, dword [esi + 0x164]
shr ecx, 0x10
and ecx, 1
push ecx
lea ecx, [ebp - 0x3d8]
call fcn.0043d230
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 2
call fcn.005db266
cmp eax, 1
jne 0x58e62e
mov eax, dword [ebp - 0x1a8]
cmp eax, 1
jne 0x58e1e9
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
mov ebx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0xcc], 0x3c
test eax, eax
mov dword [ebp - 0xc8], ebx
jne 0x58e14c
lea eax, [esi + 0x58]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xbc], eax
push edx
mov dword [ebp - 0xb0], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x58e62e
mov eax, dword [0x6a1f50]
test eax, eax
jne 0x58e62e
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x90], 0x3c
test eax, eax
mov dword [ebp - 0x8c], ebx
jne 0x58e1a7
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.005df326
mov eax, dword [ebp - 0x14]
push 0x3f
push eax
call fcn.005c2c70
add esp, 8
test eax, eax
jne 0x58e1dc
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x14]
call fcn.005df266
jmp 0x58e62e
cmp eax, 2
jne 0x58e3ea
mov eax, dword [esi + 0x54]
xor edi, edi
cmp eax, edi
jne 0x58e1fe
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
call fcn.00401f50
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x58e21b
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.005c2b92
mov ebx, eax
xor edx, edx
add esp, 8
cmp ebx, edx
je 0x58e3de
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x1c], dx
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, edx
jne 0x58e24a
lea eax, [ebp - 0x28]
mov ecx, str._n__select___s_
test ecx, ecx
je 0x58e313
cmp eax, edx
je 0x58e313
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x50], dx
call fcn.00401f50
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00401070
push str._n__select___s_
lea ecx, [ebp - 0x3c]
call fcn.00401ec0
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.00401f40
push eax
call fcn.005c2c42
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005db66d
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x20], edx
je 0x58e2f8
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x54]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f40
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.005c2bd2
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005c2c42
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00401070
mov edx, dword [ebp - 0x20]
add ebx, 2
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x90]
mov word [ebx], 0
mov ebx, 0x3c
mov esi, 0x40
rep stosd dword es:[edi], eax
test edx, edx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x80], 0x6a0e1c
jne 0x58e355
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x7c], edx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x58e3d2
mov eax, dword [0x6a1f50]
test eax, eax
jne 0x58e3d2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x58e37c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.005df326
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
lea edx, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
push edx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xbc], str.explorer.exe
mov dword [ebp - 0xb8], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x14]
call fcn.005df266
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jmp 0x58e629
cmp eax, 3
jne 0x58e62e
xor eax, eax
xor bl, bl
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0x160], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x58e434
cmp dword [ebp - 0x150], 2
jne 0x58e434
cmp dword [ebp - 0x15c], 6
jb 0x58e434
mov bl, 1
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
test bl, bl
mov dword [ebp - 0x90], 0x3c
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x74], 1
je 0x58e575
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x80], str.rundll32.exe
test eax, eax
jne 0x58e477
lea eax, [esi + 0x58]
mov ecx, str.shell32.dll_OpenAs_RunDLL__s
test ecx, ecx
je 0x58e541
test eax, eax
je 0x58e541
xor ebx, ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00401f50
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00401070
push str.shell32.dll_OpenAs_RunDLL__s
lea ecx, [ebp - 0x3c]
call fcn.00401ec0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x58e4c8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
push eax
call fcn.005c2c42
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005db66d
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x20], edx
je 0x58e529
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f40
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.005c2bd2
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005c2c42
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x58e55d
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x58e622
lea eax, [ebp - 0x90]
lea edx, [ebp - 0x1c]
push eax
mov dword [ebp - 0x7c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x58e622
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x58e57f
lea eax, [esi + 0x58]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], eax
push ecx
mov dword [ebp - 0x84], str.openas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x58e622
mov eax, dword [0x6a1f50]
test eax, eax
jne 0x58e622
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x58e5b4
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.005df326
mov edx, dword [ebp - 0x14]
push 0x3f
push edx
call fcn.005c2c70
add esp, 8
test eax, eax
jne 0x58e61a
mov ecx, 0xf
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xcc]
push ecx
mov dword [ebp - 0xcc], 0x3c
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], 0x6a37bc
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x14]
call fcn.005df266
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00401070
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0x12
call fcn.00401070
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 0x10
call fcn.005d8a93
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xf
call fcn.005e6efd
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xe
call fcn.005e6efd
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0xd
call fcn.005e6dad
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0xc
call fcn.005e6d75
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 0xb
call fcn.004351f0
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 0xa
call fcn.005e6dad
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 1
call fcn.005daea7
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret