Function at 0x40b580
Capabilities:
Check os version
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x43514c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x138], 0
push 0x118
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00414a20
add esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x144], 0
xor ecx, ecx
mov word [ebp - 0x140], cx
mov dword [ebp - 0x138], 0x11c
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
jne 0x40b619
jmp 0x40b7ae
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessId]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
test eax, eax
jne 0x40b650
jmp 0x40b7ae
mov dword [ebp - 0x150], 0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
test eax, eax
jne 0x40b677
jmp 0x40b7ae
mov ecx, dword [ebp - 0x158]
cmp ecx, dword [ebp - 0x150]
jne 0x40b68a
jmp 0x40b7ae
cmp dword [ebp - 0x134], 6
jae 0x40b698
jmp 0x40b7ae
cmp dword [ebp - 0x134], 6
jne 0x40b741
cmp dword [ebp - 0x130], 0
jne 0x40b741
push 0x42c8d0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x15c], eax
push 0x42c8e0
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], 0
jmp 0x40b6f6
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0x300
jae 0x40b73f
mov ecx, dword [ebp - 0x148]
add ecx, dword [ebp - 0x144]
mov dx, word [ecx]
mov word [ebp - 0x140], dx
movzx eax, word [ebp - 0x140]
cmp eax, 0x1d38
jne 0x40b73d
mov ecx, dword [ebp - 0x148]
add ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 2]
mov dword [ebp - 0x13c], edx
jmp 0x40b73f
jmp 0x40b6e7
jmp 0x40b7a6
cmp dword [ebp - 0x134], 6
jne 0x40b7a6
cmp dword [ebp - 0x130], 1
jne 0x40b7a6
push 0x42c8f4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x40b76f
jmp 0x40b7ae
push 0x42c914
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b78c
jmp 0x40b7ae
call dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b79a
jmp 0x40b7ae
mov ecx, dword [ebp - 8]
add ecx, 0x30
mov dword [ebp - 0x13c], ecx
xor edx, edx
jne 0x40b5f9
cmp dword [ebp - 0x13c], 0
je 0x40b7c0
mov eax, dword [ebp - 0x13c]
mov byte [eax], 1
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x40b81d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcessId]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x14c], 0
je 0x40b7f5
push 0
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x13c], 0
je 0x40b82f
mov ecx, dword [ebp - 0x13c]
mov byte [ecx], 0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413194
mov esp, ebp
pop ebp
ret