Function at 0x7592915f
Capabilities:
Get hostname
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x7594d0ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x6c], eax
xor ecx, ecx
xor eax, eax
mov word [ebp - 0x50], cx
lea edi, [ebp - 0x4e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x68], cx
lea edi, [ebp - 0x66]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x60]
inc edi
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x60], edi
call dword [sym.imp.ntdll.dll_RtlGetNtProductType]
test ebx, ebx
je 0x7592f84e
cmp dword [0x7594d23c], edi
mov ebx, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
je 0x759292b5
lea eax, [ebp - 0x58]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.759265db
test eax, eax
jne 0x7592f866
cmp dword [ebp - 0x60], 2
je 0x759292bc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x5c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x50]
push eax
call ebx
push edi
push edi
lea eax, [ebp - 0x50]
push eax
push 2
call fcn.759272c1
mov esi, eax
cmp esi, edi
je 0x75929238
push esi
push dword [ebp - 0x48]
call fcn.75927239
push esi
call fcn.759292d3
push dword [ebp - 0x48]
call fcn.75927464
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x75929297
cmp word [eax], di
je 0x75929297
push eax
lea eax, [ebp - 0x50]
push eax
call ebx
push dword [ebp - 0x48]
call fcn.75927ee9
mov ebx, eax
mov eax, dword [ebp - 0x54]
cmp eax, edi
jne 0x7592f946
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x48]
call fcn.75928931
jmp 0x75a39c30
mov eax, dword [ebp - 0x6c]
cmp eax, edi
je 0x759292a3
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.75921930
leave
ret 0x10
xor edi, edi
jmp 0x759291ed
cmp dword [0x7594d23c], 1
je 0x759291f7
jmp 0x75929238
push edi
push 5
call fcn.75929905
test eax, eax
mov dword [ebp - 0x48], eax
jne 0x759291bf
jmp 0x759292a6
cmp dword [ebp - 0x58], edi
je 0x7592f923
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
xor eax, eax
cmp dword [ebp - 0x64], edi
setne al
add eax, 3
push eax
call fcn.759272c1
cmp eax, edi
mov dword [ebp - 0x54], eax
je 0x7592f8ae
cmp dword [ebp - 0x60], 2
jne 0x7592f89a
or dword [eax + 4], 1
push eax
push dword [ebp - 0x48]
call fcn.75927239
push dword [ebp - 0x54]
call fcn.759292d3
mov dword [ebp - 0x54], edi
test esi, esi
mov edi, str.CachePrimaryDomain
je 0x7592f906
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push edi
push dword [0x7594d180]
mov dword [ebp - 0x5c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7592f900
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
call ebx
push 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
neg al
sbb eax, eax
inc eax
mov dword [esi], eax
jmp 0x7592f906
mov dword [esi], 1
movzx eax, word [ebp - 0x50]
inc eax
inc eax
push eax
push dword [ebp - 0x4c]
push 1
push 0
push edi
push dword [0x7594d180]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edi, edi
cmp dword [ebp - 0x4c], edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x7592f933
push dword [ebp - 0x4c]
call esi
cmp dword [ebp - 0x64], edi
je 0x759291ed
push dword [ebp - 0x64]
call esi
jmp 0x759291ed
and dword [eax + 4], 0xfffffffe
jmp 0x75929268