Function at 0x51ec00
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597dde
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x612678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xb4]
push 0xa4
push 0
mov dword [ebp - 0x3bc], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3a4], ebx
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x3b8], 3
call fcn.0055cad0
add esp, 0xc
mov dword [ebp - 0x3b4], 0xa4
lea eax, [ebp - 0x3a0]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x398], eax
test eax, eax
jne 0x51f0ce
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x3b8]
push eax
push 0
push str.DigitalProductId
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3a0]
mov esi, eax
mov dword [ebp - 0x398], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x51f1fd
sub esp, 0x68
mov edi, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x3a4], esp
push str.Amazon::SystemInfo::getWindowsLicense
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov dword [ebp - 0x3a8], esp
mov esi, esp
push 0xffffffffffffffff
push 0x59e6a0
mov dword [ebp - 4], 1
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 0x19a
push ecx
mov dword [ebp - 0x3ac], esp
mov esi, esp
push 0xffffffffffffffff
push str.SystemInfoWin
mov byte [ebp - 4], 2
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 3
sub esp, 0x10
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x3b0], esp
push dword [ebp - 0x398]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push ecx
mov dword [ebp - 0x398], esp
mov esi, esp
push 0xffffffffffffffff
push str.errorCode
mov byte [ebp - 4], 4
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x39c], esp
mov esi, esp
push 0xffffffffffffffff
push str.initialReadOfProductIdRegistryFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 0
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 6
call fcn.005130e0
mov byte [ebp - 4], 7
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.005158f0
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00515040
mov ecx, eax
call fcn.00515020
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00515840
mov ecx, eax
call fcn.00515030
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00515040
push eax
mov ecx, edi
call fcn.00429600
lea ecx, [ebp - 0x394]
call fcn.00429560
lea ecx, [ebp - 0x394]
call fcn.00516570
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0
call fcn.005133a0
lea eax, [ebp - 0x3a0]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x398], eax
test eax, eax
jne 0x51ef88
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x3b8]
push eax
push 0
push str.DigitalProductId
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x398], eax
test eax, eax
je 0x51f0bd
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
sub esp, 0x68
mov edi, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call eax
push ecx
mov dword [ebp - 0x3b0], esp
mov esi, esp
push 0xffffffffffffffff
push 0x59e6a0
mov dword [ebp - 4], 0xc
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 0x1a4
push ecx
mov dword [ebp - 0x3ac], esp
mov esi, esp
push 0xffffffffffffffff
push str.SystemInfoWin
mov byte [ebp - 4], 0xd
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push 4
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push dword [ebp - 0x398]
call eax
push ecx
mov dword [ebp - 0x3a4], esp
mov esi, esp
push 0xffffffffffffffff
push str.errorCode
mov byte [ebp - 4], 0xf
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x398], esp
mov esi, esp
push 0xffffffffffffffff
push str.readProductIdRegistryFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x11
call fcn.005130e0
mov byte [ebp - 4], 0x12
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.005158f0
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.00515040
mov ecx, eax
call fcn.00515020
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00515840
mov ecx, eax
call fcn.00515030
mov byte [ebp - 4], 0x16
jmp 0x51f08d
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
sub esp, 0x68
mov edi, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call eax
push ecx
mov dword [ebp - 0x3b0], esp
mov esi, esp
push 0xffffffffffffffff
push 0x59e6a0
mov dword [ebp - 4], 0x17
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 0x1aa
push ecx
mov dword [ebp - 0x3ac], esp
mov esi, esp
push 0xffffffffffffffff
push str.SystemInfoWin
mov byte [ebp - 4], 0x18
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push 4
sub esp, 0x10
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push dword [ebp - 0x398]
call eax
push ecx
mov dword [ebp - 0x3a4], esp
mov esi, esp
push 0xffffffffffffffff
push str.errorCode
mov byte [ebp - 4], 0x1a
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x398], esp
mov esi, esp
push 0xffffffffffffffff
push str.openProductIdRegistryFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
push 0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x1c
call fcn.005130e0
mov byte [ebp - 4], 0x1d
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.005158f0
mov ecx, eax
mov byte [ebp - 4], 0x1f
call fcn.00515040
mov ecx, eax
call fcn.00515020
mov ecx, eax
mov byte [ebp - 4], 0x20
call fcn.00515840
mov ecx, eax
call fcn.00515030
mov byte [ebp - 4], 0x21
mov ecx, eax
call fcn.00515040
push eax
mov ecx, edi
call fcn.00429600
lea ecx, [ebp - 0x224]
call fcn.00429560
lea ecx, [ebp - 0x224]
call fcn.00516570
lea ecx, [ebp - 0x11c]
call fcn.005133a0
push dword [ebp - 0x3a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x51f1fd
sub esp, 0x68
mov ebx, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
mov edi, dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
push ecx
mov dword [ebp - 0x3b0], esp
mov esi, esp
push 0xffffffffffffffff
push 0x59e6a0
mov dword [ebp - 4], 0x22
call edi
add esp, 8
mov dword [esi], eax
push 0x1b3
push ecx
mov dword [ebp - 0x3ac], esp
mov esi, esp
push 0xffffffffffffffff
push str.SystemInfoWin
mov byte [ebp - 4], 0x23
call edi
add esp, 8
mov dword [esi], eax
push 3
sub esp, 0x10
mov byte [ebp - 4], 0x24
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push dword [ebp - 0x398]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push ecx
mov dword [ebp - 0x398], esp
mov esi, esp
push 0xffffffffffffffff
push str.errorCode
mov byte [ebp - 4], 0x25
call edi
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x3c4], esp
mov esi, esp
push 0xffffffffffffffff
push str.initialOpenOfProductIdRegistryFailed
call edi
add esp, 8
mov dword [esi], eax
push 0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x27
call fcn.005130e0
mov byte [ebp - 4], 0x28
mov ecx, eax
mov byte [ebp - 4], 0x29
call fcn.005158f0
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.00515040
mov ecx, eax
call fcn.00515020
mov ecx, eax
mov byte [ebp - 4], 0x2b
call fcn.00515840
mov ecx, eax
call fcn.00515030
mov byte [ebp - 4], 0x2c
mov ecx, eax
call fcn.00515040
push eax
mov ecx, ebx
call fcn.00429600
lea ecx, [ebp - 0x224]
call fcn.00429560
lea ecx, [ebp - 0x224]
call fcn.00516570
lea ecx, [ebp - 0x11c]
call fcn.005133a0
mov ebx, dword [ebp - 0x3a4]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x3bc], 1
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0xb4]
shr eax, 4
and eax, reloc.WS2_32.dll_ntohs
jns 0x51f247
dec eax
or eax, 0xfffffff0
inc eax
movzx eax, byte [eax + 0x5a7d44]
mov ecx, ebx
push eax
call fcn.00460a80
movzx ecx, byte [ebp + esi - 0xb4]
and ecx, 0xf
movzx ecx, byte [ecx + 0x5a7d44]
push ecx
mov ecx, ebx
call fcn.00460a80
inc esi
cmp esi, 0xa4
jb 0x51f230
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00556510
mov esp, ebp
pop ebp
ret