Function at 0x1032848
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov eax, 0x103730a
call fcn.01027f58
sub esp, 0x2b4
mov eax, dword [0x10400ac]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1010d84
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x248], esp
xor edi, edi
push edi
push 0x400000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push 0x38
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
push 0x1010d78
push 0x1010cf8
mov dword [ebp - 0x25c], eax
call fcn.01011a74
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.01011ae8
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x1010ce0
push esi
mov dword [ebp - 0x254], edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10328fb
push 6
push 0x1010cd0
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1032c39
add esi, 0xc
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
jmp 0x1032901
mov dword [ebp - 0x258], ebx
xor eax, eax
lea edi, [ebp - 0x241]
stosb byte es:[edi], al
lea eax, [ebp - 0x241]
push eax
push 0x1010ca8
lea ecx, [ebp - 0x284]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov byte [ebp - 4], 2
xor esi, esi
cmp dword [ebp - 0x258], esi
je 0x1032943
push 0x1010c90
lea ecx, [ebp - 0x284]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
jmp 0x10329af
xor eax, eax
lea edi, [ebp - 0x241]
stosb byte es:[edi], al
lea eax, [ebp - 0x241]
push eax
push dword [ebp - 0x254]
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2a4]
push 0x1010c64
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0xc
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x284]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push 0x1010c50
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 0x260], esi
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x24c]
push eax
push ebx
push esi
lea ecx, [ebp - 0x294]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x80000002
push ebx
call esi
test eax, eax
jne 0x1032aa2
and word [ebp - 0x40], ax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push 0x1010c38
push dword [ebp - 0x24c]
mov dword [ebp - 0x274], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032a8d
inc eax
cmp dword [ebp - 0x248], eax
jne 0x1032a8d
mov dword [ebp - 0x260], eax
xor eax, eax
lea edi, [ebp - 0x241]
stosb byte es:[edi], al
lea eax, [ebp - 0x241]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x25c]
push eax
call dword [0x1001188]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x260], 0
jne 0x1032adb
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x248], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1032acb
and word [ebp - 0x32], ax
mov word [ebp - 0x34], 0x2e
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x34]
push eax
call dword [0x10011b0]
cmp dword [ebp - 0x258], 0
jne 0x1032b50
xor eax, eax
lea edi, [ebp - 0x241]
stosb byte es:[edi], al
lea eax, [ebp - 0x241]
push eax
push dword [ebp - 0x254]
lea ecx, [ebp - 0x2a4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x270]
push 0x100b514
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x25c]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov edi, dword [ebp - 0x250]
push 0x1010c00
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x270]
push eax
mov dword [edi], 9
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x294]
call dword [0x1001188]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [ebp - 0x24c]
push eax
push 1
push 0
lea ecx, [ebp - 0x294]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push ebx
call esi
test eax, eax
jne 0x1032c16
and word [ebp - 0x14], ax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push 0x1010be0
push dword [ebp - 0x24c]
mov dword [ebp - 0x250], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032c0a
cmp dword [ebp - 0x248], 1
jne 0x1032c0a
push edi
lea eax, [ebp - 0x3c]
push 0x100273c
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x294]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.01011b91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, edi
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 0xc