Function at 0x6d5bead0
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x1628
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x1624], eax
mov eax, dword [esp + 0x162c]
mov dword [esp + 4], eax
call fcn.6d5bbc30
test eax, eax
jne 0x6d5bee2b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll__wcsicmp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
xor edi, edi
cmp dword [esp + 0x1644], edi
je 0x6d5bec11
call fcn.6d5bddf0
lea ecx, [esp + 0x634]
push ecx
call fcn.6d5bd0b0
add esp, 4
test eax, eax
jne 0x6d5beb4e
push 1
push edi
call fcn.6d5be390
add esp, 8
jmp 0x6d5bec82
lea edx, [esp + 0x634]
push str.1.6.0_10
push edx
call ebp
add esp, 8
test eax, eax
jns 0x6d5beb6f
push 1
push edi
call fcn.6d5be390
add esp, 8
call fcn.6d5bc490
mov dword [esp + 0x10], edi
test eax, eax
je 0x6d5bebae
lea eax, [esp + 0x10]
push eax
push 0x2021f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x6d5bebe0
push str.ScheduleId
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x6d5bebde
lea edx, [esp + 0x10]
push edx
push 0x2021f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x6d5bebe0
push str.ScheduleId
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x634]
push ecx
push str.11.181.2
call ebp
add esp, 8
test eax, eax
jle 0x6d5bec82
call fcn.6d5bad70
call fcn.6d5be4f0
mov dword [esp + 0x1640], 1
jmp 0x6d5bec82
call fcn.6d5bc490
mov dword [esp + 0x10], edi
test eax, eax
je 0x6d5bec50
lea edx, [esp + 0x10]
push edx
push 0x2021f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x6d5bec82
push str.ScheduleId
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x10]
push eax
jmp 0x6d5bec80
lea ecx, [esp + 0x10]
push ecx
push 0x2021f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x6d5bec82
push str.ScheduleId
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x10]
push edx
call ebx
push 0x400
lea eax, [esp + 0xe38]
push eax
lea ecx, [esp + 0x63c]
push ecx
call fcn.6d5bcce0
add esp, 0xc
test eax, eax
je 0x6d5bee27
cmp dword [esp + 0x14], edi
jne 0x6d5becb8
lea edx, [esp + 0xe34]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x634]
push str.1.6.0_01
push eax
call ebp
add esp, 8
test eax, eax
js 0x6d5becec
call fcn.6d5bdef0
test eax, eax
je 0x6d5becec
lea ecx, [esp + 0xe34]
push ecx
call fcn.6d5be730
add esp, 4
jmp 0x6d5bee27
lea edx, [esp + 0x18]
push edx
push 0x2021f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x6d5bee27
lea eax, [esp + 0x10]
push eax
push 0x20219
push edi
push str.SOFTWAREJavaSoftAuto_Update
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x6d5bed87
push 0x206
lea edx, [esp + 0x432]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x438], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x42c]
push eax
push edi
push edi
push 0x2c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.jusched.exe
lea ecx, [esp + 0x430]
push ecx
lea edx, [esp + 0x22c]
push str._sJavaJava_Update_s
push edx
call esi
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call ebx
jmp 0x6d5beda9
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.jusched.exe
push ecx
lea edx, [esp + 0x22c]
push str._s_bin_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x20]
push str.__s_
push ecx
call esi
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x6d5bedc7
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x20]
push eax
push 1
push edi
push str.SunJavaUpdateSched
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.6d5bd320
add esp, 4
cmp dword [esp + 0x1640], edi
je 0x6d5bee27
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x22c]
push edx
call fcn.6d5babb0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1624]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1628
ret