Function at 0x4139a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41ab3c]
movups xmm0, xmmword [str.SoftwareSkyCompress]
push esi
push edi
push 0
mov dword [ebp - 0x20], eax
mov al, byte [0x41ab40]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x394]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0x80000001
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x413a21
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413d41
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x40
lea eax, [ebp - 0x70]
mov dword [ebp - 0x38c], 0x40
push 0
push eax
mov dword [ebp - 0x390], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x390]
push eax
push 0
push str.Guid
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413a83
push ecx
lea eax, [ebp - 0x70]
mov edx, 0x40
push eax
push ecx
mov ecx, 0x41f23e
call fcn.00409060
push 0x104
lea eax, [ebp - 0x178]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x390], 1
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x104
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x390]
push eax
push 0
push str.InstallFilename
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413c76
lea esi, [ebp - 0x178]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x413ae6
sub esi, ecx
cmp esi, 4
jle 0x413b54
cmp byte [ebp + esi - 0x17c], 0x2e
jne 0x413b54
movsx eax, byte [ebp + esi - 0x17b]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
push eax
call edi
add esp, 4
cmp eax, 0x65
jne 0x413b54
movsx eax, byte [ebp + esi - 0x17a]
push eax
call edi
add esp, 4
cmp eax, 0x78
jne 0x413b54
movsx eax, byte [ebp + esi - 0x179]
push eax
call edi
add esp, 4
cmp eax, 0x65
jne 0x413b54
add esi, 0xfffffffc
cmp esi, 0x104
jae 0x413d3b
mov byte [ebp + esi - 0x178], 0
lea eax, [ebp - 0x178]
push 0x41ab5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x178]
push 0x41ab60
push eax
call edi
add esp, 0x14
xor esi, esi
test eax, eax
je 0x413bb4
cmp esi, 5
jge 0x413bb4
lea eax, [ebp - 0x398]
inc esi
push eax
push 0x41ab60
push 0
call edi
add esp, 0xc
mov dword [ebp + esi*4 - 0x3b0], eax
test eax, eax
jne 0x413b90
push 0x104
lea eax, [ebp - 0x280]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x390], 1
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x104
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x390]
push eax
push 0
push str.Version
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x39c], 0
mov edi, eax
jne 0x413c25
cmp esi, 2
jle 0x413c76
mov ecx, dword [ebp - 0x3ac]
cmp byte [ecx], 0
je 0x413c47
push ecx
push ecx
jmp 0x413c37
cmp esi, 3
jle 0x413c76
mov eax, dword [ebp - 0x3ac]
cmp byte [eax], 0
je 0x413c47
push ecx
push eax
push ecx
mov edx, 0x104
mov ecx, 0x41f138
call fcn.00409060
test edi, edi
jne 0x413c65
push ecx
lea eax, [ebp - 0x280]
mov edx, 0x104
push eax
push ecx
mov ecx, 0x41f034
call fcn.00409060
jmp 0x413c76
mov eax, dword [ebp - 0x3a8]
cmp byte [eax], 0
je 0x413c76
push eax
call fcn.00409aa0
push 0x104
lea eax, [ebp - 0x388]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x390], 1
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x104
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x390]
push eax
push 0
push str.LogicBear
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, 1
test eax, eax
jne 0x413d15
mov ecx, str.W2e3Ux891
lea eax, [ebp - 0x388]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413d00
test dl, dl
je 0x413cfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413d00
add eax, 2
add ecx, 2
test dl, dl
jne 0x413ce0
xor ecx, ecx
jmp 0x413d04
sbb ecx, ecx
or ecx, esi
movzx eax, byte [0x41e6ec]
test ecx, ecx
cmove eax, esi
mov byte [0x41e6ec], al
mov ecx, dword [ebp - 0x394]
test ecx, ecx
je 0x413d26
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00413d41
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00413eb6
int3