Function at 0x406f30
Capabilities:
Get hostname
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f8e1
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x455014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
lea eax, [ebp - 0xa8]
push esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SOFTWAREMySecretApplicationSettings
push 0x80000001
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4075f2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test eax, eax
je 0x406fd0
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406fc0
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
jmp 0x406fd7
push 0xd
push str.UnknownDevice
lea ecx, [ebp - 0x44]
call fcn.0040d700
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
call fcn.00408250
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00406bd0
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.00408190
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
mov eax, esi
mov dword [ebp - 0x128], 0
or eax, 3
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
add eax, 0xe
mov byte [ebp - 0x138], 0
push eax
call fcn.0040b180
push str.ActivationKey
lea ecx, [ebp - 0x138]
call fcn.0040b340
push edi
lea ecx, [ebp - 0x138]
call fcn.0040b3b0
push str.__ExpiryDate
lea ecx, [ebp - 0x138]
call fcn.0040b340
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x120], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x110], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, esi
or eax, 7
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x120]
call fcn.0040b3b0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, esi
or eax, 0xf
mov dword [ebp - 0x2c], eax
push str.__DeviceName
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 6
call fcn.0040b340
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, esi
or eax, 0x1f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040b3b0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, esi
or eax, 0x3f
mov dword [ebp - 0x2c], eax
push str.__HWID
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.0040b340
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, esi
or eax, 0x7f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040b3b0
or esi, 0xff
mov dword [ebp - 0x2c], esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5c]
call fcn.00408190
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40729d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407293
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0xac]
cmp edx, 0x10
jb 0x4072d7
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4072cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
cmp edx, 0x10
jb 0x40732c
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp edx, 0x10
jb 0x407381
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407377
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
cmp edx, 0x10
jb 0x4073d6
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4073cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
cmp edx, 0x10
jb 0x40742b
mov ecx, dword [ebp - 0x120]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407421
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
cmp edx, 0x10
jb 0x407480
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407476
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40761c
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x5c]
inc ecx
cmp dword [ebp - 0x48], 0x10
push ecx
cmovae eax, dword [ebp - 0x5c]
push eax
push 1
push 0
push str.Config
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4074e6
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4074dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407621
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x40752c
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407522
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407621
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp edx, 0x10
jb 0x407575
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40756b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407621
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp edx, 0x10
jb 0x4075c0
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4075b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407621
push edx
push ecx
call fcn.0041e4c9
add esp, 8
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x407601
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4075e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407621
push edx
push ecx
call fcn.0041e4c9
add esp, 8
jmp 0x407601
mov edx, str.Failed_to_write_TR._n
mov ecx, 0x497e28
call fcn.0040f8e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041df22
mov esp, ebp
pop ebp
ret
call fcn.00426b63
call fcn.00426b63
int3