Function at 0x4089d0
Capabilities:
Get hostname
Get session user name
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b082
mov eax, dword fs:[0]
push eax
sub esp, 0xf64
mov eax, dword [0x410018]
xor eax, esp
mov dword [esp + 0xf60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x410018]
xor eax, esp
push eax
lea eax, [esp + 0xf78]
mov dword fs:[0], eax
xor esi, esi
push 0x7fc
lea eax, [esp + 0x77c]
push esi
push eax
mov dword [esp + 0x780], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x204
lea ecx, [esp + 0x164]
push esi
push ecx
mov dword [esp + 0x168], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x204
lea edx, [esp + 0x574]
push esi
push edx
mov dword [esp + 0x578], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x778]
mov edi, 0x104
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x160]
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.uqhvyctgo
mov dword [esp + 0x44], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x140]
call fcn.00407f70
mov dword [esp + 0xf9c], esi
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40c80c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x124]
call fcn.00407f70
add esp, 0x1c
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x128]
mov byte [esp + 0xf84], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x128]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push 0
push 0
lea ecx, [esp + 0xf4]
call dword [sym.imp.MSVCP90.dll_protected:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Tidy_bool__unsigned_int_]
mov eax, dword [esp + 0x18]
push edi
push esi
push ebx
push ebp
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.00409b50
mov byte [esp + 0xf80], 2
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x10c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push 0
push 0
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP90.dll_protected:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Tidy_bool__unsigned_int_]
mov ecx, dword [esp + 0x18]
push edi
push esi
push ebx
push ebp
push ecx
lea edx, [esp + 0xe4]
push edx
call fcn.00409b50
mov byte [esp + 0xf80], 3
mov ecx, dword [esp + 0xd4]
mov eax, 8
cmp dword [esp + 0xe8], eax
jae 0x408bc0
lea ecx, [esp + 0xd4]
cmp dword [esp + 0x104], eax
mov eax, dword [esp + 0xf0]
jae 0x408bd7
lea eax, [esp + 0xf0]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x570]
push edx
push 0
push 0xffff
push ecx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [esp + 0x774]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408c02
mov ebx, dword [0x40c818]
mov ebp, dword [0x40c81c]
mov dword [eax], ebx
mov dword [eax + 4], ebp
lea eax, [esp + 0x15c]
mov edx, eax
jmp 0x408c30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408c30
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x408c50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408c50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x774]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408c76
mov dword [eax], ebx
mov dword [eax + 4], ebp
lea eax, [esp + 0x56c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408c90
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x408cb0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408cb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x774]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408cd6
mov ecx, dword [0x40c820]
mov dx, word [0x40c824]
mov dword [eax], ecx
push 0x204
mov word [eax + 4], dx
lea eax, [esp + 0x36c]
push 0
push eax
mov dword [esp + 0x370], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x368]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x364]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d35
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408d50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x774]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408d76
mov edx, dword [0x40c820]
mov cx, word [0x40c824]
mov dword [eax], edx
mov word [eax + 4], cx
push 0xfde9
lea eax, [esp + 0x778]
lea edx, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
call fcn.004092d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf80], 4
push ecx
mov ecx, dword [esp + 0x50]
call fcn.00409140
mov bl, 6
mov byte [esp + 0xf80], bl
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x408de8
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x144]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0xf
sub esp, 0x1c
mov byte [esp + 0xfa0], 7
lea edx, [esp + 0x160]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00407160
add esp, 0x20
lea ecx, [esp + 0x140]
mov byte [esp + 0xf80], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf80], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0xf80], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xec]
mov byte [esp + 0xf80], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x108]
mov byte [esp + 0xf80], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x124]
mov dword [esp + 0xf80], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xf78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf60]
xor ecx, esp
call fcn.00409cfa
add esp, 0xf70
ret