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

Disassembly:
push 0xffffffffffffffff
push 0x40d1c4
mov eax, dword fs:[0]
push eax
mov eax, 0x11fc
call fcn.0040cb80
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x11f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x1210]
mov dword fs:[0], eax
xor esi, esi
push 0x7fc
lea eax, [esp + 0xa14]
push esi
push eax
mov dword [esp + 0xa18], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x204
lea ecx, [esp + 0x80c]
push esi
push ecx
mov dword [esp + 0x810], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x204
lea edx, [esp + 0x3fc]
push esi
push edx
mov dword [esp + 0x400], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xa10]
mov edi, 0x104
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x808]
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40fac0
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 + 0x1c4]
call fcn.00409600
mov dword [esp + 0x1234], esi
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40faf0
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 + 0x1e0]
call fcn.00409600
add esp, 0x1c
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x121c], 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 + 0x3c]
push edx
lea ecx, [esp + 0x1ac]
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 + 0x194]
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 + 0x14]
push edi
push esi
push ebx
push ebp
push eax
lea ecx, [esp + 0x1a0]
push ecx
call fcn.0040b8b0
mov byte [esp + 0x1218], 2
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c8]
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 + 0x34]
push eax
lea ecx, [esp + 0x1c8]
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 + 0x178]
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 + 0x14]
push edi
push esi
push ebx
push ebp
push ecx
lea edx, [esp + 0x184]
push edx
call fcn.0040b8b0
mov byte [esp + 0x1218], 3
mov ecx, dword [esp + 0x174]
mov eax, 8
cmp dword [esp + 0x188], eax
jae 0x408f04
lea ecx, [esp + 0x174]
cmp dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x190]
jae 0x408f1b
lea eax, [esp + 0x190]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x3f8]
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 + 0xa0c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408f46
mov ebp, dword [0x40fafc]
mov ebx, dword [0x40fb00]
mov dword [eax], ebp
mov dword [eax + 4], ebx
lea eax, [esp + 0x804]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f70
lea edi, [esp + 0xa0c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x408f90
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408f90
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 + 0xa0c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408fb6
mov dword [eax], ebp
mov dword [eax + 4], ebx
lea eax, [esp + 0x3f4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408fd0
lea edi, [esp + 0xa0c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x408ff0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408ff0
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 + 0xa0c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409016
mov eax, dword [0x40fb04]
mov dword [edi], eax
mov eax, 0x415640
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409030
lea edi, [esp + 0xa0c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x409050
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409050
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 + 0xa0c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x409076
mov ecx, dword [0x40fb08]
mov dx, word [0x40fb0c]
mov dword [eax], ecx
xor ebx, ebx
push 0x204
mov word [eax + 4], dx
lea eax, [esp + 0x604]
push ebx
push eax
mov dword [esp + 0x608], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x600]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x5fc]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4090d1
lea edi, [esp + 0xa0c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4090f0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
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 + 0xa0c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x409116
mov edx, dword [0x40fb08]
mov cx, word [0x40fb0c]
mov dword [eax], edx
mov word [eax + 4], cx
push 0xfde9
lea eax, [esp + 0xa10]
lea edx, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
call fcn.0040b030
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1218], 4
push ecx
mov ecx, dword [esp + 0x50]
call fcn.0040aea0
mov byte [esp + 0x1218], 6
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCR90.dll_free]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x409189
push eax
call edi
add esp, 4
push 0x415708
lea ecx, [esp + 0x158]
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 + 0x158]
mov byte [esp + 0x121c], 7
call dword [0x40f1d0]
push 0x41570c
lea ecx, [esp + 0x158]
call dword [0x40f1d0]
push str.____
lea ecx, [esp + 0x158]
call dword [0x40f1d0]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x158]
call dword [0x40f1d0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40f6f8
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 + 0x170]
call fcn.00407ca0
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40fb14
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.00407ca0
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40fb18
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.00407ca0
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40fb1c
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.00407ca0
add esp, 0x1c
push 0x17
sub esp, 0x1c
mov edx, esi
mov ecx, esp
mov dword [esp + 0x34], 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.004080a0
add esp, 0x20
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f0
lea eax, [esp + 0x204]
push ebx
push eax
mov dword [esp + 0x208], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x40fb20
call dword [sym.imp.MSVCR90.dll__wgetenv]
add esp, 4
lea edx, [esp + 0x1fc]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x4092b0
push 0xfde9
lea edx, [esp + 0x200]
lea ecx, [esp + 0xd8]
push edx
lea eax, [esp + 0xd8]
mov dword [esp + 0xd8], ecx
call fcn.0040b030
lea eax, [esp + 0x18]
mov byte [esp + 0x1218], 8
mov ecx, dword [esp + 0xd0]
push eax
call fcn.0040aea0
mov bl, 0xa
mov byte [esp + 0x1218], bl
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0xd4]
cmp eax, ecx
je 0x409322
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x1e4]
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 0x22
sub esp, 0x1c
mov byte [esp + 0x1238], 0xb
mov eax, dword [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
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.004080a0
add esp, 0x20
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x1218], 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 + 0x1218], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x154]
mov byte [esp + 0x1218], 6
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 + 0x1218], 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 0x4093d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x170]
mov byte [esp + 0x1218], 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 + 0x18c]
mov byte [esp + 0x1218], 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 + 0x1c4]
mov byte [esp + 0x1218], 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 + 0x1a8]
mov dword [esp + 0x1218], 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 + 0x1210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11f8]
xor ecx, esp
call fcn.0040c1a6
add esp, 0x1208
ret