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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b2ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x5ce180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x138], 0
call fcn.00402b80
lea eax, [ebp - 0x15c]
push eax
call fcn.00405da0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push dword [ebp - 0x15c]
push eax
call fcn.00405c70
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x13c]
cmp dword [eax - 0xc], 2
jl 0x4020b8
push 2
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403040
mov dword [ebp - 0x138], 1
mov ecx, 0x5b0920
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4020ab
test dx, dx
je 0x4020a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4020ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x402085
xor eax, eax
jmp 0x4020b0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4020b8
mov bl, 1
jmp 0x4020ba
xor bl, bl
or esi, 0xffffffff
test byte [ebp - 0x138], 1
je 0x4020e3
mov edx, dword [ebp - 0x134]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4020e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4022a7
mov eax, dword [ebp - 0x13c]
xor edi, edi
mov edx, dword [eax - 0xc]
lea ecx, [edx - 2]
test ecx, ecx
cmovns edi, ecx
cmp edi, edx
jl 0x40211c
add eax, 0xfffffff0
push eax
call fcn.00403af0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x138], eax
jmp 0x4021e4
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x402159
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x402159
mov ebx, dword [ebp - 0x13c]
mov eax, ebx
test eax, eax
jne 0x402148
test edi, edi
jne 0x402b6f
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x402b60
jmp 0x402179
call fcn.00413f1a
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x13c]
mov ecx, eax
mov eax, ebx
test ecx, ecx
je 0x402b65
jmp 0x40213c
add eax, 0x10
mov dword [ebp - 0x138], eax
test edi, edi
js 0x402b6f
cmp edi, dword [eax - 8]
jg 0x402b6f
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x138]
add edi, edi
mov word [edi + eax], cx
test edi, edi
je 0x4021e4
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x4021d4
push edi
test ebx, ebx
je 0x4021c3
push ebx
push eax
call fcn.0054e620
add esp, 0xc
jmp 0x4021e4
push 0
push eax
call fcn.0054eba0
mov eax, ebx
add esp, 0xc
test eax, eax
jne 0x4021e4
call fcn.00551c4d
mov dword [eax], 0x16
call fcn.00551b4f
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x134]
call fcn.00403bf0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x13c]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x40226b
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x402256
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x402256
push edx
call fcn.00403af0
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40224b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x140]
add eax, 0x10
mov dword [ebp - 0x13c], eax
jmp 0x402265
push dword [eax - 0xc]
lea ecx, [ebp - 0x13c]
push eax
call fcn.004033b0
mov eax, dword [ebp - 0x134]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402286
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x138]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4022a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edx, edx
lea ecx, [ebp - 0x158]
call fcn.00401d70
mov edx, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x154]
call fcn.00401d70
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x14c]
test ebx, ebx
je 0x4022e9
call fcn.00401e00
test eax, eax
je 0x4022e9
mov edi, 1
jmp 0x402abd
lea ecx, [ebp - 0x148]
call fcn.0040e280
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 6
call fcn.0040e280
mov byte [ebp - 4], 7
lea eax, [ebp - 0x158]
push eax
test ebx, ebx
je 0x4024fa
lea eax, [ebp - 0x150]
push 0x5b092c
push eax
call fcn.004035b0
add esp, 0xc
push 0x5b0928
push eax
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 8
push eax
call fcn.00403950
add esp, 0xc
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 9
call fcn.00403bf0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x148]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x4023c4
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4023af
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x4023af
push edx
call fcn.00403af0
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4023a4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x140]
add eax, 0x10
mov dword [ebp - 0x148], eax
jmp 0x4023be
push dword [eax - 0xc]
lea ecx, [ebp - 0x148]
push eax
call fcn.004033b0
mov eax, dword [ebp - 0x134]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 9
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4023df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x138]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402400
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x150]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402421
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x138]
push 0x5b092c
push eax
call fcn.004035b0
add esp, 0xc
push 0x5b0928
push eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0xe
push eax
call fcn.00403950
add esp, 0xc
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xf
call fcn.00403bf0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x144]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x4024d6
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4024c1
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x4024c1
push edx
call fcn.00403af0
add esp, 4
mov dword [ebp - 0x150], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4024b6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x150]
add eax, 0x10
mov dword [ebp - 0x144], eax
jmp 0x4024d0
push dword [eax - 0xc]
lea ecx, [ebp - 0x144]
push eax
call fcn.004033b0
mov eax, dword [ebp - 0x134]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xf
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4024f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
jmp 0x4026d9
lea eax, [ebp - 0x138]
push str._u__s__
push eax
call fcn.004035b0
add esp, 0xc
push 0x5b0928
push eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0xb
push eax
call fcn.00403950
add esp, 0xc
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xc
call fcn.00403bf0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x148]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x4025a8
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x402593
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x402593
push edx
call fcn.00403af0
add esp, 4
mov dword [ebp - 0x150], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x402588
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x150]
add eax, 0x10
mov dword [ebp - 0x148], eax
jmp 0x4025a2
push dword [eax - 0xc]
lea ecx, [ebp - 0x148]
push eax
call fcn.004033b0
mov eax, dword [ebp - 0x134]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4025c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x140]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4025e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x138]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402605
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x138]
push str._u__s__
push eax
call fcn.004035b0
add esp, 0xc
push 0x5b0928
push eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0x11
push eax
call fcn.00403950
add esp, 0xc
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x12
call fcn.00403bf0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x144]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x4026ba
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4026a5
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x4026a5
push edx
call fcn.00403af0
add esp, 4
mov dword [ebp - 0x150], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40269a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x150]
add eax, 0x10
mov dword [ebp - 0x144], eax
jmp 0x4026b4
push dword [eax - 0xc]
lea ecx, [ebp - 0x144]
push eax
call fcn.004033b0
mov eax, dword [ebp - 0x134]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x12
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4026d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x140]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4026f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x138]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402717
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x160], 0
push 0x118
lea eax, [ebp - 0x12c]
movlpd qword [ebp - 0x178], xmm0
push 0
push eax
movlpd qword [ebp - 0x170], xmm0
movlpd qword [ebp - 0x168], xmm0
mov dword [ebp - 0x198], 0x3c
mov dword [ebp - 0x194], 0x40
movlpd qword [ebp - 0x1b4], xmm0
movlpd qword [ebp - 0x1ac], xmm0
movlpd qword [ebp - 0x1a4], xmm0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1d4], 0x3c
mov dword [ebp - 0x1d0], 0x40
call fcn.0054eba0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 6
mov edi, str.runas
mov eax, edi
mov dword [ebp - 0x188], str.regsvr32.exe
mov ebx, str.open
cmovb eax, ebx
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x184], eax
call fcn.00414151
test eax, eax
je 0x4027fe
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x4027fe
mov eax, dword [eax + 0x20]
jmp 0x402800
xor eax, eax
cmp dword [ebp - 0x12c], 6
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x144]
cmovb edi, ebx
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 1
mov dword [ebp - 0x1c8], edi
mov dword [ebp - 0x1c4], str.regsvr32.exe
mov dword [ebp - 0x1c0], eax
call fcn.00414151
test eax, eax
je 0x402859
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x402859
mov eax, dword [eax + 0x20]
jmp 0x40285b
xor eax, eax
push dword [ebp - 0x158]
mov dword [ebp - 0x1cc], eax
xor edi, edi
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 1
mov dword [ebp - 0x138], 0
call fcn.00405580
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
test eax, eax
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
je 0x4028d2
lea ecx, [ebp - 0x198]
push ecx
call eax
cmp dword [ebp - 0x14c], edi
je 0x402964
test eax, eax
je 0x40294b
push 0xffffffffffffffff
push dword [ebp - 0x160]
call ebx
push dword [ebp - 0x160]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [ebp - 0x138], 1
push dword [ebp - 0x154]
call fcn.00405580
add esp, 4
test eax, eax
je 0x402927
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call eax
cmp dword [ebp - 0x14c], 0
je 0x402a0f
test eax, eax
je 0x4029ce
push 0xffffffffffffffff
push dword [ebp - 0x19c]
call ebx
push dword [ebp - 0x19c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
cmp dword [ebp - 0x138], 0
je 0x402a79
test edi, edi
je 0x402a79
mov edi, 1
jmp 0x402a7b
lea ecx, [ebp - 0x134]
call fcn.0040e280
mov byte [ebp - 4], 0x14
push dword [ebp - 0x158]
push 0x34
jmp 0x402983
test eax, eax
jne 0x4028bb
lea ecx, [ebp - 0x134]
call fcn.0040e280
mov byte [ebp - 4], 0x15
push dword [ebp - 0x158]
push 0x35
lea eax, [ebp - 0x134]
push eax
call fcn.0040e590
add esp, 0xc
push 0
push 0
push dword [ebp - 0x134]
call fcn.0040e510
mov byte [ebp - 4], 7
add esp, 0xc
mov edx, dword [ebp - 0x134]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4028dc
lea ecx, [ebp - 0x14c]
call fcn.0040e280
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x14c]
push dword [ebp - 0x154]
push 0x34
push eax
call fcn.0040e590
add esp, 0xc
push 0
push 0
push dword [ebp - 0x14c]
call fcn.0040e510
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14c]
jmp 0x402a56
test eax, eax
jne 0x402911
lea ecx, [ebp - 0x134]
call fcn.0040e280
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x134]
push dword [ebp - 0x154]
push 0x35
push eax
call fcn.0040e590
add esp, 0xc
push 0
push 0
push dword [ebp - 0x134]
call fcn.0040e510
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x134]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40292c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40292c
xor edi, edi
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x144]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402a9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x148]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402abd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x154]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x158]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402aff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402b20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x402b42
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c4e2
mov esp, ebp
pop ebp
ret
call fcn.00403cd0
push 0x80004005
call fcn.00403dc0
push 0x80070057
call fcn.00403dc0
int3