Function at 0x40b600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cad8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x448684]
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 edi, dword [ebp + 0x24]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x1c
mov esi, 0xf
push str.softwareZone_LabsZoneAlarm
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.004055e0
mov byte [ebp - 4], 1
push 0xa
push str.instlickey
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
call fcn.004055e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
push str.Create_reg_key
push edi
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a630
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov eax, dword [ebp - 0x28]
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jae 0x40b6b0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 0x50]
cmp ecx, 1
jne 0x40b731
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x40b6e0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push ecx
push 0x20006
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], esi
jae 0x40b701
lea ecx, [ebp + 0xc]
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x40b70c
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 0x1c]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
jne 0x40b7c2
push str.Failed_to_set_lickey_in_registry
jmp 0x40b7c7
cmp ecx, 2
je 0x40b6f6
cmp eax, ebx
jne 0x40b6f6
lea edx, [ebp - 0x2c]
push edx
push str.Failed_to_create
push edi
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a630
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov byte [ebp - 4], 1
mov esi, 0x10
cmp dword [ebp - 0x30], esi
jb 0x40b781
mov eax, dword [ebp - 0x44]
push eax
call fcn.004127b1
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], esi
jb 0x40b7a3
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], esi
jb 0x40b844
mov edx, dword [ebp + 0xc]
push edx
jmp 0x40b83c
push str.Succeeded_to_set_lickey_in_registry
push edi
call fcn.0040a440
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0040aaf0
mov ecx, edi
call fcn.004095f0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], esi
jb 0x40b801
mov edx, dword [ebp - 0x44]
push edx
call fcn.004127b1
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], esi
jb 0x40b823
mov eax, dword [ebp - 0x28]
push eax
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], esi
jb 0x40b844
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004127b1
add esp, 4
mov byte [ebp + 0xc], bl
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], edi
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.004126c6
mov esp, ebp
pop ebp
ret 0x20