Function at 0x6b23b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x78ca90]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
xor eax, eax
mov word [ebp - 0x54], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11c]
mov dword [ebp - 8], edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x70], 4
jne 0x6b246b
cmp dword [ebp - 0x30], 0x5a
jne 0x6b246b
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x70], 4
jne 0x6b247e
cmp dword [ebp - 0x30], 0x5a
jne 0x6b247e
mov dword [ebp - 0x58], 1
cmp dword [ebp - 0x70], 4
jne 0x6b2491
cmp dword [ebp - 0x30], 0
jne 0x6b2491
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 4], 0x80000000
jae 0x6b24ad
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x50], ecx
jmp 0x6b24d3
cmp dword [ebp - 0x70], 4
jae 0x6b24cc
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0x50], eax
jmp 0x6b24d3
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0x565
ja 0x6b24e3
mov dword [ebp - 0x40], 1
cmp dword [0x796fc0], 0
jne 0x6b24f1
call fcn.006b2270
cmp dword [0x796fbc], 0
je 0x6b2501
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x6b2514
cmp dword [ebp - 0x4c], 1
jne 0x6b2514
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x14], 0
je 0x6b2527
cmp dword [ebp - 0x58], 1
jne 0x6b2527
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0
je 0x6b253a
cmp dword [ebp - 0x5c], 1
jne 0x6b253a
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0
je 0x6b25fc
cmp dword [ebp - 0x40], 0
jne 0x6b25fc
mov dword [ebp - 0xc4], 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xd4]
movsx eax, word [edx + 0x10ec]
test eax, eax
je 0x6b2575
mov dword [ebp - 0x3c], 1
jmp 0x6b2599
lea ecx, [ebp - 0x54]
push ecx
push 0x211
mov edx, dword [ebp + 8]
push edx
call fcn.00611b60
add esp, 0xc
movsx eax, word [ebp - 0x54]
test eax, eax
je 0x6b2599
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0
je 0x6b25bc
push 1
lea ecx, [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call fcn.006b1d60
add esp, 0xc
mov dword [ebp - 0x74], eax
jmp 0x6b25d7
push 0
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.006b1d60
add esp, 0xc
mov dword [ebp - 0x74], eax
push 0
push 0x3c
push 0x79fbe0
lea edx, [ebp - 0xb0]
push edx
call fcn.00401990
add esp, 0x10
mov eax, dword [0x79fbd0]
mov dword [ebp - 0x60], eax
jmp 0x6b2813
push str.NETAPI32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x6b2618
or eax, 0xffffffff
jmp 0x6b2984
push str.NetWkstaTransportEnum
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
push str.NetApiBufferFree
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x68], 0
je 0x6b2648
cmp dword [ebp - 0x44], 0
jne 0x6b265a
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x6b2984
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x6c]
push edx
push 0x1000
lea eax, [ebp - 0x10]
push eax
push 0
push 0
call dword [ebp - 0x68]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x6b2695
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x6b2984
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
jmp 0x6b26b6
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x14
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x6c]
jae 0x6b2802
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc8], 0
jmp 0x6b26e6
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xc8], edx
cmp dword [ebp - 0xc8], 0xc
jge 0x6b270a
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx*2]
mov byte [ebp + eax - 0xc0], cl
jmp 0x6b26d7
mov dword [ebp - 0xc8], 0
jmp 0x6b2725
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xc8], edx
cmp dword [ebp - 0xc8], 6
jge 0x6b27e6
mov eax, dword [ebp - 0xc8]
movsx ecx, byte [ebp + eax*2 - 0xc0]
push ecx
call fcn.0066a9c0
add esp, 4
test eax, eax
je 0x6b2766
mov edx, dword [ebp - 0xc8]
movsx eax, byte [ebp + edx*2 - 0xc0]
sub eax, 0x30
mov dword [ebp - 0xd0], eax
jmp 0x6b277d
mov ecx, dword [ebp - 0xc8]
movsx edx, byte [ebp + ecx*2 - 0xc0]
sub edx, 0x37
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xc8]
movsx ecx, byte [ebp + eax*2 - 0xbf]
push ecx
call fcn.0066a9c0
add esp, 4
test eax, eax
je 0x6b27b1
mov edx, dword [ebp - 0xc8]
movsx eax, byte [ebp + edx*2 - 0xbf]
sub eax, 0x30
mov dword [ebp - 0xd4], eax
jmp 0x6b27c8
mov ecx, dword [ebp - 0xc8]
movsx edx, byte [ebp + ecx*2 - 0xbf]
sub edx, 0x37
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd0]
shl eax, 4
add eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc8]
mov byte [ebp + ecx - 0x24], al
jmp 0x6b2716
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.006b29a0
add esp, 0xc
jmp 0x6b26a4
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x44]
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x38], 0
jmp 0x6b282c
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x60]
jae 0x6b2973
cmp dword [ebp - 0xc], 0
je 0x6b28d0
mov dword [ebp - 0xc], 0
push 0
push 6
mov eax, dword [ebp - 0x38]
imul eax, eax, 6
lea ecx, [ebp + eax - 0xb0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
add eax, 8
push eax
call fcn.00401990
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11c]
movsx eax, word [edx + 2]
cmp eax, 0x67
je 0x6b2894
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11c]
mov eax, 2
mov word [edx + 2], ax
push 0
push 6
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xb0]
push edx
mov eax, dword [0x796de0]
imul eax, eax, 6
add eax, 0x79fe20
push eax
call fcn.00401990
add esp, 0x10
mov ecx, dword [0x796de0]
add ecx, 1
mov dword [0x796de0], ecx
jmp 0x6b296e
call fcn.0064bdd0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
movsx ecx, word [eax + 2]
cmp ecx, 0x67
jne 0x6b28f8
mov edx, 0x67
mov eax, dword [ebp - 0x18]
mov word [eax + 2], dx
jmp 0x6b2904
mov ecx, 2
mov edx, dword [ebp - 0x18]
mov word [edx + 2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x480], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
push 0
push 6
mov eax, dword [ebp - 0x38]
imul eax, eax, 6
lea ecx, [ebp + eax - 0xb0]
push ecx
mov edx, dword [ebp - 8]
add edx, 8
push edx
call fcn.00401990
add esp, 0x10
push 0
push 6
mov eax, dword [ebp - 0x38]
imul eax, eax, 6
lea ecx, [ebp + eax - 0xb0]
push ecx
mov edx, dword [0x796de0]
imul edx, edx, 6
add edx, 0x79fe20
push edx
call fcn.00401990
add esp, 0x10
mov eax, dword [0x796de0]
add eax, 1
mov dword [0x796de0], eax
jmp 0x6b2823
cmp dword [ebp - 0x60], 0
je 0x6b2982
mov eax, 1
jmp 0x6b2984
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005cfbcb
mov esp, ebp
pop ebp
ret