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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a8f0
push eax
mov eax, 0x496c
mov dword fs:[0], esp
call fcn.0040a0f0
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 1
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CWnd::UpdateData
lea ecx, [esi + 0x78]
push 1
call sub.MFC42u.DLL_CString::GetBuffer
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4054e8
xor edi, edi
jmp 0x405519
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.0040a0f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edi, esp
push ebx
push ebx
push eax
push edi
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esi + 0x70]
push ebx
push edx
push edi
call fcn.00409850
add esp, 0xc
lea ecx, [esi + 0x78]
mov edi, eax
push 0xffffffffffffffff
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 1
push edi
lea ecx, [ebp - 0x28]
call fcn.004098f0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1976]
mov word [ebp - 0x1978], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x2576]
mov word [ebp - 0x2578], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x2176]
mov word [ebp - 0x2178], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1176]
mov word [ebp - 0x1178], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1576]
mov word [ebp - 0x1578], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x2578]
push eax
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x1978]
push edx
push eax
call edi
mov esi, dword [esi + 0x64]
lea ecx, [ebp - 0x2178]
push esi
push ecx
call edi
lea edx, [ebp - 0x28]
push str.NetworkOutEx1
push edx
call fcn.004096d0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x2976]
mov word [ebp - 0x2978], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x2978]
push 0x200
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.00409560
push str.Continue
lea edx, [ebp - 0x2978]
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x30
test eax, eax
je 0x405669
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00409910
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00409d30
or eax, 0xffffffff
jmp 0x4059ec
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x4976]
mov word [ebp - 0x4978], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x4978]
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x4978]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4056b1
add edi, 2
jmp 0x4056b7
lea edi, [ebp - 0x4978]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
push str.Systemapi32.dll
push edi
call esi
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.00409390
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.004093e0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x176]
mov word [ebp - 0x178], bx
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x178]
lea ecx, [ebp - 0x78]
push edx
push 0x40e2f0
stosw word es:[edi], ax
call fcn.004094d0
lea eax, [ebp - 0x178]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::CString_2
push 0x40e2ec
push 0x40e2e8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::Replace
lea ecx, [ebp - 0x10]
push ebx
push ecx
call fcn.00401a70
mov eax, dword [eax]
lea edx, [ebp - 0x1178]
push eax
push edx
call esi
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00409d30
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1578]
push eax
push ecx
call esi
lea edx, [ebp - 0x2578]
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.004096d0
lea ecx, [ebp - 0x1978]
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.004096d0
lea eax, [ebp - 0x1178]
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.004096d0
lea edx, [ebp - 0x2178]
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.004096d0
lea ecx, [ebp - 0x1578]
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.004096d0
add esp, 0x30
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xd76]
mov word [ebp - 0xd78], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x14], ebx
push 0x40ec58
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
push 0x20019
push ebx
push str.SOFTWAREDocGuarder
push connect
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40595b
mov cx, word [0x40ec58]
xor eax, eax
mov word [ebp - 0x978], cx
mov ecx, 0x1ff
lea edi, [ebp - 0x976]
mov edx, dword [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x978]
push eax
lea eax, [ebp - 0x10]
push ecx
push eax
push ebx
push 0x40e4cc
push edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], 0x400
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40594a
lea ecx, [ebp - 0x978]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40594a
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1d77]
mov byte [ebp - 0x1d78], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x978]
test edx, edx
stosb byte es:[edi], al
jne 0x405896
mov dword [ebp - 0x10], ebx
jmp 0x4058d5
lea eax, [ebp - 0x978]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0040a0f0
mov edi, esp
push ebx
push ebx
push esi
push edi
lea ecx, [ebp - 0x978]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
mov dword [ebp - 0x10], edi
lea edx, [ebp - 0x978]
test edx, edx
je 0x40591d
lea eax, [ebp - 0x978]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0040a0f0
mov edi, esp
push ebx
push ebx
push esi
push edi
lea ecx, [ebp - 0x978]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
mov edx, edi
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x1d78]
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00408610
add esp, 0xc
lea ecx, [ebp - 0x1d78]
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40595b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xd78]
push edx
push eax
call esi
lea ecx, [ebp - 0xd78]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea edx, [ebp - 0xd78]
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00409680
lea ecx, [ebp - 0x30]
push 4
lea edx, [ebp - 0x28]
push ecx
push edx
mov dword [ebp - 0x30], ebx
call fcn.00409750
mov esi, dword [ebp - 0x30]
add esp, 0x24
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00409d30
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4059b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409d30
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004093c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00409910
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00409d30
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4984]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4