Function at 0x44d4b0
Capabilities:
Check os version
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ec
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], 0
je 0x44da4b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x44da4b
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esi], 0
je 0x44d4f8
mov dword [eax], 0
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44d542
cmp dword [esp + 0x60], 2
je 0x44d52d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Netapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x44d54f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetApiBufferFree
push edi
call ebx
test eax, eax
mov dword [esp + 0x2c], eax
je 0x44d64a
push str.NetWkstaGetInfo
push edi
call ebx
test eax, eax
mov dword [esp + 0x28], eax
je 0x44d64a
cmp dword [esp + 0x54], 5
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jb 0x44d62b
push str.NetGetJoinInformation
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d612
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
call eax
test eax, eax
jne 0x44d612
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x44d5c5
mov dword [esi], eax
jmp 0x44d60a
cmp eax, 2
jne 0x44d5e4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44d62b
mov ecx, dword [ebp + 8]
push 0
push 0
push 0x10
mov dword [esi], 2
push ecx
jmp 0x44d601
cmp eax, 3
jne 0x44d612
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44d62b
mov edx, dword [ebp + 8]
push 0
push 0
push 0x10
mov dword [esi], 3
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44d61f
push eax
call dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44d801
xor eax, eax
push str.Advapi32.dll
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jne 0x44d662
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.LsaOpenPolicy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x44d6b6
push str.LsaQueryInformationPolicy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44d6b6
mov eax, dword [esp + 0x24]
push str.LsaFreeMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x30], eax
je 0x44d6b6
mov ecx, dword [esp + 0x24]
push str.LsaClose
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x34], eax
jne 0x44d6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
mov esi, eax
call edi
push ebx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
push edx
push 0x64
push 0
call dword [esp + 0x34]
test eax, eax
jne 0x44d7f2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x44], eax
push 0x80000001
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
push edx
push eax
mov dword [esp + 0x5c], eax
call edi
test eax, eax
jne 0x44d7e5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 3
push ecx
call esi
test eax, eax
jne 0x44d7dc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0044c3d0
mov edi, dword [esp + 0x30]
add esp, 8
test edi, edi
je 0x44d7d3
mov esi, dword [ebp + 8]
push 0
push 0
push 0x10
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
je 0x44d77b
mov edx, dword [ebp + 0xc]
mov dword [edx], 3
jmp 0x44d7c2
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
push 0
push 0
push 0x10
lea eax, [esp + 0xfc]
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
lea eax, [esp + 0xf0]
push eax
push esi
call fcn.0045ba9a
add esp, 8
test eax, eax
jne 0x44d7b9
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
jmp 0x44d7c2
mov edx, dword [ebp + 0xc]
mov dword [edx], 2
push edi
mov dword [esp + 0x20], 0
call fcn.0045932f
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44d7f2
push eax
call dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x44d845
mov esi, dword [ebp + 0xc]
cmp dword [esi], 3
jne 0x44d845
xor eax, eax
lea edx, [esp + 0x50]
mov ecx, 0x27
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x54], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44d841
cmp dword [esp + 0x54], 5
jb 0x44d841
cmp byte [esp + 0xea], 2
jne 0x44d841
mov dword [esi], 4
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44da2c
push str.GetComputerNameExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44d8d7
lea eax, [esp + 0x10]
push eax
push 0
push 3
mov dword [esp + 0x1c], 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
mov eax, dword [esp + 0x10]
jne 0x44d8a0
test eax, eax
jne 0x44d8a2
mov eax, 0x400
mov dword [esp + 0x10], eax
jmp 0x44d8a4
test eax, eax
jbe 0x44d8d7
push eax
call fcn.00459619
mov edi, dword [ebp + 0x10]
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x44d8e3
lea ecx, [esp + 0x10]
push ecx
push eax
push 3
call esi
test eax, eax
jne 0x44d8da
mov edx, dword [edi]
push edx
call fcn.0045932f
add esp, 4
mov dword [edi], 0
jmp 0x44d8e3
mov edi, dword [ebp + 0x10]
cmp dword [edi], 0
jne 0x44da28
lea eax, [esp + 0x20]
push eax
mov ebx, 1
push ebx
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44da1d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1fc]
push edx
mov byte [esp + 0x200], al
lea eax, [esp + 0x18]
push eax
push 0
push str.Domain
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x400
call esi
test eax, eax
jne 0x44da1d
cmp dword [esp + 0x10], ebx
jne 0x44da1d
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Hostname
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x104
mov byte [esp + 0x108], 0
call esi
test eax, eax
jne 0x44da1d
cmp dword [esp + 0x10], ebx
jne 0x44da1d
mov al, byte [esp + 0xf0]
test al, al
je 0x44da1d
lea eax, [esp + 0x1f8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d9b0
sub eax, edx
mov esi, eax
lea eax, [esp + 0xf0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d9c5
sub eax, edx
inc eax
test esi, esi
jle 0x44d9d7
lea eax, [eax + esi + 1]
push eax
call fcn.00459619
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x44da1d
test esi, esi
jle 0x44da0a
lea ecx, [esp + 0x1f8]
push ecx
lea edx, [esp + 0xf4]
push edx
push str._s._s
push eax
call fcn.00458ee7
add esp, 0x10
jmp 0x44da1d
lea ecx, [esp + 0xf0]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x44da13
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x44da40
push eax
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret