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

Disassembly:
mov eax, 0x103734a
call fcn.01027f98
sub esp, 0x2b4
mov eax, dword [0x10400ac]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1010dc8
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 0x1010dbc
push 0x1010d38
mov dword [ebp - 0x25c], eax
call fcn.01011ab4
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.01011b28
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x1010d20
push esi
mov dword [ebp - 0x254], edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x103293b
push 6
push 0x1010d10
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1032c79
add esi, 0xc
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
jmp 0x1032941
mov dword [ebp - 0x258], ebx
xor eax, eax
lea edi, [ebp - 0x241]
stosb byte es:[edi], al
lea eax, [ebp - 0x241]
push eax
push 0x1010ce8
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 0x1032983
push 0x1010cd0
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 0x10329ef
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 0x1010ca4
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 0x1010c90
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 0x1032ae2
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 0x1010c78
push dword [ebp - 0x24c]
mov dword [ebp - 0x274], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032acd
inc eax
cmp dword [ebp - 0x248], eax
jne 0x1032acd
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 0x1032b1b
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 0x1032b0b
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 0x1032b90
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 0x100b594
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 0x1010c40
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 0x1032c56
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 0x1010c20
push dword [ebp - 0x24c]
mov dword [ebp - 0x250], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032c4a
cmp dword [ebp - 0x248], 1
jne 0x1032c4a
push edi
lea eax, [ebp - 0x3c]
push 0x100274c
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.01011bd1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, edi
call fcn.01027c7a
pop edi
pop esi
pop ebx
leave
ret 0xc