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

Disassembly:
push 0xffffffffffffffff
push 0x40d142
mov eax, dword fs:[0]
push eax
sub esp, 0xf64
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0xf60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41304c]
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 0x40fad8
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.00409550
mov dword [esp + 0xf9c], esi
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb08
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 + 0x15c]
call fcn.00409550
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 + 0x110]
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 + 0x11c]
push ecx
call fcn.0040b810
mov byte [esp + 0xf80], 2
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x144]
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 + 0x144]
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 ecx, dword [esp + 0x18]
push edi
push esi
push ebx
push ebp
push ecx
lea edx, [esp + 0x100]
push edx
call fcn.0040b810
mov byte [esp + 0xf80], 3
mov ecx, dword [esp + 0xf0]
mov eax, 8
cmp dword [esp + 0x104], eax
jae 0x408f80
lea ecx, [esp + 0xf0]
cmp dword [esp + 0x120], eax
mov eax, dword [esp + 0x10c]
jae 0x408f97
lea eax, [esp + 0x10c]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x570]
push edx
push 0
push 0xffff
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
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 0x408fc2
mov ebx, dword [0x40fb14]
mov ebp, dword [0x40fb18]
mov dword [eax], ebx
mov dword [eax + 4], ebp
lea eax, [esp + 0x15c]
mov edx, eax
jmp 0x408ff0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ff0
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x409010
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409010
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 0x409036
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 0x409050
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x409070
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409070
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x774]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409096
mov eax, dword [0x40fb1c]
mov dword [edi], eax
mov eax, 0x415648
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4090b0
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4090d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4090d0
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 0x4090f6
mov ecx, dword [0x40fb20]
mov dx, word [0x40fb24]
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 0x409155
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 0x409170
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 0x409196
mov edx, dword [0x40fb20]
mov cx, word [0x40fb24]
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.0040af90
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf80], 4
push ecx
mov ecx, dword [esp + 0x50]
call fcn.0040ae00
mov bl, 6
mov byte [esp + 0xf80], bl
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x409208
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x415644
lea ecx, [esp + 0xd4]
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 str.____:
lea ecx, [esp + 0xd4]
mov byte [esp + 0xf84], 7
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x415710
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.____:
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40f708
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 esi, [esp + 0xec]
call fcn.00407d20
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb2c
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__]
call fcn.00407d20
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb30
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__]
call fcn.00407d20
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb34
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__]
call fcn.00407d20
add esp, 0x1c
push 0xe
sub esp, 0x1c
mov edx, esi
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.00408120
add esp, 0x20
mov ecx, esi
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 0x409322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xec]
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 + 0x108]
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 + 0x140]
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.0040c106
add esp, 0xf70
ret