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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x30c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServiceslanmanserverparameters
push reloc.WS2_32.dll_bind
mov esi, ecx
mov dword [ebp - 0x30c], ebx
mov byte [ebp - 0x104], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
jne 0x422bb7
mov eax, dword [ebp - 0x30c]
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x304]
push edx
push ebx
push ebx
push str.srvcomment
push eax
mov dword [ebp - 0x314], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x422ba3
push ebx
push ebx
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x304]
push edx
push ebx
push 0xfde9
call edi
test eax, eax
jle 0x422b88
xor eax, eax
jmp 0x422b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x422b9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422b9f
mov eax, 0xffffe5d4
cmp eax, ebx
je 0x422bab
mov byte [ebp - 0x104], bl
jmp 0x422bb7
cmp byte [ebp - 0x104], bl
jne 0x422c3e
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x304]
push ecx
push 5
mov dword [ebp - 0x308], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x422bef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x422c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x422c38
push ebx
push ebx
push 0x100
lea edx, [ebp - 0x104]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x304]
push eax
push ebx
push 0xfde9
call edi
test eax, eax
jle 0x422c1d
xor eax, eax
jmp 0x422c34
mov eax, 0xffffe5a8
jmp 0x422c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x422c2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422c34
mov eax, 0xffffe5d4
cmp eax, ebx
je 0x422c42
mov byte [ebp - 0x104], bl
cmp eax, ebx
jne 0x422c4a
cmp byte [ebp - 0x104], bl
jne 0x422c6d
mov ecx, dword [str.My_Computer]
mov edx, dword [0x44ebfc]
mov eax, dword [0x44ec00]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x104]
mov byte [ebp - 5], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422c80
sub eax, edx
cmp eax, 0x3f
jb 0x422c93
mov eax, 0x3f
movzx ecx, al
push ecx
lea edx, [ebp - 0x104]
mov byte [esi + 0x18d4], al
push edx
lea eax, [esi + 0x18d5]
push eax
call fcn.0043a0d0
mov eax, dword [ebp - 0x30c]
add esp, 0xc
cmp eax, ebx
je 0x422cc4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov eax, dword [esi]
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov edx, dword [esi]
lea ecx, [ebp - 0x308]
push ecx
add edx, 0x14
push edx
push 4
mov dword [ebp - 0x308], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x310]
push ecx
push ebx
call sub.NETAPI32.dll_NetGetJoinInformation
test eax, eax
jne 0x422d7a
mov eax, dword [ebp - 0x318]
cmp eax, 2
je 0x422d41
cmp eax, 3
jne 0x422d6e
mov eax, dword [esi]
mov edx, dword [ebp - 0x310]
push ebx
push ebx
push 0x20
add eax, 0x34
push eax
push 0xffffffffffffffff
push edx
push ebx
push 0xfde9
call edi
test eax, eax
jg 0x422d6e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x422d6e
call esi
mov eax, dword [ebp - 0x310]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret