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

Disassembly:
push 0xffffffffffffffff
push 0x40d162
mov eax, dword fs:[0]
push eax
sub esp, 0xf64
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0xf60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413018]
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 0x40fae0
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.00409570
mov dword [esp + 0xf9c], esi
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb10
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.00409570
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.0040b850
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.0040b850
mov byte [esp + 0xf80], 3
mov ecx, dword [esp + 0xf0]
mov eax, 8
cmp dword [esp + 0x104], eax
jae 0x408fa0
lea ecx, [esp + 0xf0]
cmp dword [esp + 0x120], eax
mov eax, dword [esp + 0x10c]
jae 0x408fb7
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 0x408fe2
mov ebx, dword [0x40fb1c]
mov ebp, dword [0x40fb20]
mov dword [eax], ebx
mov dword [eax + 4], ebp
lea eax, [esp + 0x15c]
mov edx, eax
jmp 0x409010
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409010
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x409030
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409030
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 0x409056
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 0x409070
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x409090
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409090
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 0x4090b6
mov eax, dword [0x40fb24]
mov dword [edi], eax
mov eax, 0x415648
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4090d0
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4090f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4090f0
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 0x409116
mov ecx, dword [0x40fb28]
mov dx, word [0x40fb2c]
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 0x409175
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 0x409190
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 0x4091b6
mov edx, dword [0x40fb28]
mov cx, word [0x40fb2c]
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.0040afd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf80], 4
push ecx
mov ecx, dword [esp + 0x50]
call fcn.0040ae40
mov bl, 6
mov byte [esp + 0xf80], bl
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x409228
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 0x40f710
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.00407d40
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.00407d40
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb38
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.00407d40
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40fb3c
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.00407d40
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.00408140
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 0x409342
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.0040b9fa
add esp, 0xf70
ret