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

Disassembly:
push 0xffffffffffffffff
push 0x40c802
mov eax, dword fs:[0]
push eax
sub esp, 0xf64
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0xf60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x412018]
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 0x40ea9c
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.00409190
mov dword [esp + 0xf9c], esi
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40eacc
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.00409190
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.0040af10
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.0040af10
mov byte [esp + 0xf80], 3
mov ecx, dword [esp + 0xf0]
mov eax, 8
cmp dword [esp + 0x104], eax
jae 0x408bc0
lea ecx, [esp + 0xf0]
cmp dword [esp + 0x120], eax
mov eax, dword [esp + 0x10c]
jae 0x408bd7
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 0x408c02
mov ebx, dword [0x40ead8]
mov ebp, dword [0x40eadc]
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
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 0x408cd6
mov eax, dword [0x40eae0]
mov dword [edi], eax
mov eax, 0x414630
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408cf0
lea edi, [esp + 0x774]
sub eax, edx
add edi, 0xfffffffe
jmp 0x408d10
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408d10
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 0x408d36
mov ecx, dword [0x40eae4]
mov dx, word [0x40eae8]
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 0x408d95
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 0x408db0
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 0x408dd6
mov edx, dword [0x40eae4]
mov cx, word [0x40eae8]
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.0040a690
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf80], 4
push ecx
mov ecx, dword [esp + 0x50]
call fcn.0040a500
mov bl, 6
mov byte [esp + 0xf80], bl
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x408e48
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x41462c
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 [0x40e1b0]
push 0x4146f8
lea ecx, [esp + 0xd4]
call dword [0x40e1b0]
push str.____:
lea ecx, [esp + 0xd4]
call dword [0x40e1b0]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call dword [0x40e1b0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40e6c0
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.00407960
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40eaf0
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.00407960
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40eaf4
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.00407960
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40eaf8
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.00407960
add esp, 0x1c
push 0x12
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.00407d60
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 0x408f62
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.0040b0ba
add esp, 0xf70
ret