Function at 0x43a240
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x43a26a
xor eax, eax
jmp 0x43a717
push str.EnumProcessModules
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43a28c
xor eax, eax
jmp 0x43a717
push str.GetModuleFileNameExA
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43a2ae
xor eax, eax
jmp 0x43a717
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
push 0x497954
mov eax, dword [ebp + 0x10]
push eax
call fcn.0046b260
add esp, 8
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x43a3a4
cmp dword [ebp - 0x9c], 5
jne 0x43a3a4
cmp dword [ebp - 0x98], 0
jne 0x43a3a4
mov edx, dword [ebp + 8]
push edx
call fcn.0043aa60
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x43a323
xor eax, eax
jmp 0x43a717
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x43a39d
mov dword [ebp - 0xac], 0x400
lea edx, [ebp - 0xac]
push edx
push 4
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [ebp - 8]
test eax, eax
je 0x43a386
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [ebp - 4]
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x43a717
xor eax, eax
jmp 0x43a717
push 0x49795c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x43a3c5
xor eax, eax
jmp 0x43a717
mov dword [ebp - 0xbc], 0
push str.AllocateAndGetTcpExTableFromStack
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x43a404
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x43a717
push 2
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea eax, [ebp - 0xbc]
push eax
call dword [ebp - 0xb4]
mov dword [ebp - 0xc0], 0
jmp 0x43a439
mov ecx, dword [ebp - 0xc0]
add ecx, 1
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc0]
cmp eax, dword [edx]
jae 0x43a53b
mov ecx, dword [ebp - 0xc0]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0xbc]
mov ax, word [edx + ecx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
cmp ecx, dword [ebp + 8]
jne 0x43a536
mov edx, dword [ebp - 0xc0]
imul edx, edx, 0x18
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc8]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc8]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x43a509
mov dword [ebp - 0xcc], 0x400
lea edx, [ebp - 0xcc]
push edx
push 4
lea eax, [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [ebp - 8]
test eax, eax
je 0x43a4fc
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call dword [ebp - 4]
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xbc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x43a717
jmp 0x43a42a
mov eax, dword [ebp - 0xbc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x497990
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x43a57f
xor eax, eax
jmp 0x43a717
mov dword [ebp - 0xd8], 0
push str.AllocateAndGetUdpExTableFromStack
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x43a5be
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x43a717
push 2
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea ecx, [ebp - 0xd8]
push ecx
call dword [ebp - 0xd4]
mov dword [ebp - 0xe0], 0
jmp 0x43a5f3
mov edx, dword [ebp - 0xe0]
add edx, 1
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [eax]
jae 0x43a6f2
mov edx, dword [ebp - 0xe0]
imul edx, edx, 0xc
mov eax, dword [ebp - 0xd8]
mov cx, word [eax + edx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
cmp edx, dword [ebp + 8]
jne 0x43a6ed
mov eax, dword [ebp - 0xe0]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xe8]
mov dword [eax], ecx
mov edx, dword [ebp - 0xe8]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
je 0x43a6c3
mov dword [ebp - 0xec], 0x400
lea eax, [ebp - 0xec]
push eax
push 4
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
call dword [ebp - 8]
test eax, eax
je 0x43a6b6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xf0]
push edx
mov eax, dword [ebp - 0xe4]
push eax
call dword [ebp - 4]
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xd8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x43a717
jmp 0x43a5e4
mov ecx, dword [ebp - 0xd8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov esp, ebp
pop ebp
ret