Function at 0x4392d0
Capabilities:
Check os version
Get disk size
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4401
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x52cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xe], dl
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 0
mov eax, dword [0x532808]
test al, 1
jne 0x43934e
or eax, 1
mov dword [0x532808], eax
mov dword [ebp - 4], 1
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x53280c], eax
mov byte [ebp - 4], 1
push 0x4dd9d0
call fcn.004aa176
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [0x532808]
test al, 2
jne 0x439390
or eax, 2
mov dword [0x532808], eax
mov dword [ebp - 4], 3
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x532804], eax
mov byte [ebp - 4], 3
push 0x4dd970
call fcn.004aa176
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [0x532808]
test al, 4
jne 0x4393d2
or eax, 4
mov dword [0x532808], eax
mov dword [ebp - 4], 5
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x532800], eax
mov byte [ebp - 4], 5
push 0x4dd910
call fcn.004aa176
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [0x532808]
test al, 8
jne 0x43940f
or eax, 8
mov dword [0x532808], eax
mov dword [ebp - 4], 7
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x532810], eax
mov byte [ebp - 4], 7
push 0x4dd8b0
call fcn.004aa176
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [0x532804]
cmp dword [eax - 0xc], 0
je 0x439427
call fcn.0043bdd0
test al, al
je 0x439b9f
mov eax, dword [0x5323f8]
mov esi, dword [0x532810]
lea edi, [eax - 0x10]
add esi, 0xfffffff0
or ebx, 0xffffffff
cmp edi, esi
je 0x439482
cmp dword [esi + 0xc], 0
jl 0x439474
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x439474
mov ecx, edi
call fcn.004027c0
mov edi, eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43946a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [edi + 0x10]
mov dword [0x532810], eax
jmp 0x439482
push dword [eax - 0xc]
mov ecx, 0x532810
push eax
call fcn.00402690
mov ecx, 0x53280c
call fcn.004023a0
mov ecx, 0x532804
call fcn.004023a0
mov ecx, 0x532800
call fcn.004023a0
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xa
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.Volatile_Environment
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4396d8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4396c8
mov dword [ebp - 0x18], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x82
or eax, ecx
jge 0x439550
push 0x82
lea ecx, [ebp - 0x1c]
call fcn.00402750
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push 0
push str.AppData
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439597
push dword [esi - 8]
push esi
call fcn.004aa565
add esp, 8
test eax, eax
js 0x43958d
cmp eax, dword [esi - 8]
jg 0x43958d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x4395a2
push 0x80070057
call fcn.00401a60
lea ecx, [ebp - 0x1c]
call fcn.004023a0
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x53280c]
mov dword [ebp - 0x18], 0x104
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x82
or ecx, edx
jge 0x4395d7
push 0x82
mov ecx, 0x53280c
call fcn.00402750
mov eax, dword [0x53280c]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push str.Local_AppData
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43962a
mov eax, dword [0x53280c]
push dword [eax - 8]
push eax
call fcn.004aa565
mov edx, eax
add esp, 8
test edx, edx
js 0x43958d
mov ecx, dword [0x53280c]
cmp edx, dword [ecx - 8]
jg 0x43958d
mov dword [ecx - 0xc], edx
mov eax, dword [0x53280c]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x439634
mov ecx, 0x53280c
call fcn.004023a0
mov dword [ebp - 0x18], 0x104
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x82
or eax, ecx
jge 0x43965f
push 0x82
lea ecx, [ebp - 0x20]
call fcn.00402750
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4396ad
push dword [edi - 8]
push edi
call fcn.004aa565
add esp, 8
test eax, eax
js 0x43958d
cmp eax, dword [edi - 8]
jg 0x43958d
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4396d8
push 0x53280c
lea ecx, [ebp - 0x20]
call fcn.004025b0
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4396d8
push 0x53280c
lea ecx, [ebp - 0x20]
call fcn.004025b0
mov edi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
cmp ecx, 6
ja 0x439701
jne 0x43986c
cmp eax, 1
ja 0x439701
mov eax, 1
jmp 0x439876
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov byte [ebp - 0xd], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4397d0
mov dword [ebp - 0x18], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x82
or eax, ecx
jge 0x439753
push 0x82
lea ecx, [ebp - 0x1c]
call fcn.00402750
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push 0
push str.Isolation
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4397bd
push dword [esi - 8]
push esi
call fcn.004aa565
add esp, 8
test eax, eax
js 0x43958d
cmp eax, dword [esi - 8]
jg 0x43958d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov byte [ebp - 0xd], cl
cmp dword [esi - 0xc], ecx
jl 0x4397bd
push str.PMIL
push esi
call fcn.004aa70f
add esp, 8
test eax, eax
je 0x4397bd
sub eax, esi
sar eax, 1
jne 0x4397bd
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xd], 0
je 0x439873
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_ExplorerAdvancedOptionsCRYPTOPROTECTEDMODESECURITY
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43986c
lea eax, [ebp - 0x18]
push eax
push 0x82
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
call fcn.00402400
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push str.DefaultValue
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x1c]
push dword [esi - 8]
push esi
call fcn.004aa565
add esp, 8
test eax, eax
js 0x43958d
cmp eax, dword [esi - 8]
jg 0x43958d
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi - 0xc], 0
jl 0x439873
push str.PMIL
push esi
call fcn.004aa70f
add esp, 8
test eax, eax
je 0x439873
sub eax, esi
sar eax, 1
jne 0x439873
mov eax, 1
jmp 0x439876
mov eax, dword [ebp - 0x24]
cmp dword [0x52e31c], reloc.OLEAUT32.dll_SysReAllocString
jne 0x4398a4
push 0x5323f8
mov ecx, 0x532804
call fcn.004025b0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x53280c
call fcn.004025b0
jmp 0x439946
test eax, eax
je 0x4398f2
call fcn.004390c0
test al, al
je 0x439882
cmp byte [0x531ea8], 0
jne 0x439882
push str.Software_
lea ecx, [ebp - 0x2c]
call fcn.004024a0
mov byte [ebp - 4], 0xd
push eax
mov ecx, 0x532804
call fcn.004025b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.00402550
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x53280c
call fcn.004025b0
jmp 0x439946
call fcn.00439100
test al, al
jne 0x43990a
push str.Packageswindows_ie_ac_001AC
mov ecx, 0x53280c
call fcn.00417230
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppContainerStoragewindows_ie_ac_001Software_
lea ecx, [ebp - 0x2c]
call fcn.004024a0
mov byte [ebp - 4], 0xe
push eax
mov ecx, 0x532804
call fcn.004025b0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x439946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x532804]
cmp dword [eax - 0xc], 0
jl 0x439983
push str.windows_ie_ac_001
push eax
call fcn.004aa70f
add esp, 8
test eax, eax
je 0x439983
sub eax, dword [0x532804]
sar eax, 1
test eax, eax
jle 0x439983
push 0x5323f8
mov ecx, 0x532800
call fcn.004025b0
jmp 0x439a26
mov edx, dword [0x531d90]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 5
jne 0x4399b2
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x4399ea
cmp byte [0x531ea8], 0
jne 0x4399ea
push str.Software_
lea ecx, [ebp - 0x2c]
call fcn.004024a0
mov byte [ebp - 4], 0x12
push eax
mov ecx, 0x532800
call fcn.004025b0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x2c]
jmp 0x439a0d
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppContainerStoragewindows_ie_ac_001Software_
lea ecx, [ebp - 0x38]
call fcn.004024a0
mov byte [ebp - 4], 0x10
push eax
mov ecx, 0x532800
call fcn.004025b0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x439a26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [0x52e31c]
cmp ebx, reloc.OLEAUT32.dll_SysReAllocString
je 0x439ac6
cmp byte [0x52e282], 0
je 0x439ac6
lea ecx, [ebp - 0x24]
call fcn.00438f40
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
mov ecx, 0x532804
push dword [eax - 0xc]
push eax
call fcn.0040f690
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x439a84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00438f40
mov byte [ebp - 4], 0x16
mov eax, dword [eax]
mov ecx, 0x532800
push dword [eax - 0xc]
push eax
call fcn.0040f690
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x439ac0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [0x52e31c]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push dword [0x532804]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x439b06
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x532804]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x439b0f
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [0x52e31c]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push dword [0x532800]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x439b55
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x532800]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x439b5e
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x439b7e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x439b9c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x30]
cmp byte [ebp - 0xe], 0
je 0x439bba
mov ecx, dword [0x532800]
lea ecx, [ecx - 0x10]
call fcn.004027c0
add eax, 0x10
mov dword [ebx], eax
jmp 0x439bcd
mov ecx, dword [0x532804]
lea ecx, [ecx - 0x10]
call fcn.004027c0
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret