Function at 0x14000fd30
Capabilities:
Check if file exists
Create process on windows
Delete file
Enumerate files on windows
Get common file path
Get session user name
Schedule task via schtasks
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0xb68]
sub rsp, 0xc60
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rbp + 0xb30], rax
movsxd rax, dword [0x14003b8a8]
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
xor esi, esi
mov qword [r11 + 0x18], rdi
test eax, eax
jne 0x140010111
mov rax, qword [0x140033138]
lea r8, [rbp + 0x600]
mov rcx, qword [0x140033570]
test rax, rax
mov qword [r11 - 0x10], r12
mov r9d, 0x104
mov qword [r11 - 0x18], r13
cmovne rcx, rax
mov qword [r11 - 0x20], r14
mov edx, 0x39b
mov qword [r11 - 0x28], r15
mov dword [0x14003aa20], esi
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x14003aa28]
lea r8, [rbp + 0x600]
mov edx, 0x7da
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
call fcn.14000f2e0
mov r15d, esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rbx, [0x14002b5a8]
mov qword [0x14003bcd0], rax
mov qword [rsp + 0x50], rbx
mov r13d, esi
mov r14d, esi
lea rdi, [0x140000000]
nop dword [rax + rax]
lea rdx, [0x14003ae60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
movsxd rax, r13d
imul rcx, rax, 0x20c
lea r12, [rcx + 0x2b3a0]
add r12, rdi
lea rcx, [rbp - 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
call fcn.14000f3a0
cmp dword [rbx], 0
je 0x14000fe59
lea rcx, [rbp - 0x20]
call fcn.14000f550
cmp dword [0x140031a38], 0
je 0x14001000d
cmp qword [0x14003bcd0], 0
je 0x14001000d
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x250
call fcn.140015400
lea rdx, [0x14003ac50]
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, r12
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str..
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001000d
lea edi, [r15 + 1]
nop word [rax + rax]
lea rdx, [0x14002c134]
lea rcx, [rbp + 0x21c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000ffe0
lea rdx, [0x14002c138]
lea rcx, [rbp + 0x21c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000ffe0
test byte [rbp + 0x1f0], 0x10
jne 0x14000ffe0
movsxd rbx, edi
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x14003bcd0]
mov r9, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [0x14003bcd0], rax
test rax, rax
je 0x140010001
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x14003bcd0]
mov qword [rcx + r14*8], rax
mov rax, qword [0x14003bcd0]
mov rcx, qword [rax + r14*8]
test rcx, rcx
je 0x14000ffe0
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [0x14003bcd0]
lea rdx, [0x14002c088]
mov rcx, qword [rcx + r14*8]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x14003bcd0]
lea rdx, [rbp + 0x21c]
mov rcx, qword [rcx + r14*8]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
inc r15d
inc edi
inc r14
lea rdx, [rbp + 0x1f0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000fef0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x50]
lea rdi, [0x140000000]
add rbx, 0x20c
inc r13d
mov qword [rsp + 0x50], rbx
cmp r13d, 5
jb 0x14000fe10
mov r14, qword [rsp + 0xc48]
lea eax, [r15 + 5]
mov r13, qword [rsp + 0xc50]
xor r9d, r9d
mov r12, qword [rsp + 0xc58]
mov edx, 0x7db
movzx ecx, ax
mov r8d, 0x401
shl rcx, 0x10
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x14003aa28]
mov dword [0x14003b69c], eax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
call fcn.14000f7b0
mov r15, qword [rsp + 0xc40]
xor esi, esi
test eax, eax
mov ecx, esi
sete cl
cmp dword [0x140031a38], esi
mov dword [0x14003aa20], ecx
je 0x1400100de
mov rax, qword [0x140033138]
lea r8, [rbp + 0x600]
mov rcx, qword [0x140033570]
test rax, rax
mov r9d, 0x104
mov edx, 0x39c
cmovne rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x14003aa28]
lea r8, [rbp + 0x600]
mov edx, 0x7da
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x1400107b9
mov eax, dword [0x14003b69c]
mov edx, 0x7db
mov rcx, qword [0x14003aa28]
dec eax
movsxd r9, eax
mov r8d, 0x403
mov dword [0x14003b8a8], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x1400107b9
cmp rax, 4
ja 0x140010147
dec eax
movsxd rcx, eax
lea rax, [0x140000000]
mov rcx, qword [rax + rcx*8 + 0x2bde0]
call fcn.1400108d0
test eax, eax
jne 0x1400107b9
mov dword [0x14003aa20], 1
jmp 0x1400107b9
cmp eax, dword [0x14003b69c]
jge 0x14001019c
mov rcx, qword [0x14003bcd0]
test rcx, rcx
je 0x1400101c4
mov rcx, qword [rcx + rax*8 - 0x28]
call fcn.1400108d0
test eax, eax
jne 0x140010173
mov dword [0x14003aa20], 1
movsxd rbx, dword [0x14003b8a8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x14003bcd0]
xor edx, edx
mov rcx, rax
mov r8, qword [r8 + rbx*8 - 0x28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400107b9
cmp qword [0x14003bcd0], rsi
je 0x1400101c4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x14003bcd0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x14003bcd0], rsi
cmp dword [0x14003aa30], esi
je 0x1400105ce
cmp dword [0x14003b068], esi
je 0x1400104d9
lea rdx, [0x14003b8b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [0x14003b8b0]
xor r8d, r8d
lea rdx, [0x14002c140]
lea rcx, [0x14003b8b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [0x14003b8b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, [0x14003b8b0]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400103af
lea rdx, [0x14003ae60]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.ClAdmin.exe
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0xa20]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x1f0]
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x104
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0x810]
mov qword [rsp + 0x30], rsi
lea r8, [0x14003b070]
mov dword [rsp + 0x28], 0x104
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r8d, 0x18c
lea rdx, str._Task_version_1.2__xmlns_http:__schemas.microsoft.com_windows_2004_02_mit_task___RegistrationInfo__Author_Pyonkichi__Author___RegistrationInfo__Principals__Principal_id_Author___LogonType_InteractiveToken__LogonType__RunLevel_HighestAvailable__RunLevel___Principal___Principals__Triggers__LogonTrigger__Enabled_true__Enabled___LogonTrigger___Triggers__Actions_Context_Author___Exec__Command__
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp + 0xa20]
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x140010311
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xa20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r8d, 0x16
lea rdx, [0x14002c7d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp + 0x810]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140010360
mov r8, rbx
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
mov rcx, rdi
lea rdx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r8d, 0x2b2
lea rdx, str.__Arguments___Exec___Actions__Settings__RunOnlyIfIdle_false__RunOnlyIfIdle__IdleSettings__StopOnIdleEnd_false__StopOnIdleEnd___IdleSettings__DisallowStartIfOnBatteries_false__DisallowStartIfOnBatteries__StopIfGoingOnBatteries_false__StopIfGoingOnBatteries__WakeToRun_false__WakeToRun__RunOnlyIfNetworkAvailable_false__RunOnlyIfNetworkAvailable__AllowStartOnDemand_true__AllowStartOnDemand__StartWhenAvailable_true__StartWhenAvailable__RestartOnFailure__Interval_PT1M__Interval__Count_10__Count___RestartOnFailure__ExecutionTimeLimit_PT0S__ExecutionTimeLimit__AllowHardTerminate_false__AllowHardTerminate__Enabled_true__Enabled__Hidden_false__Hidden__Priority_2__Priority___Settings___Task_
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call section..text
cmp eax, 0x258
jb 0x1400104a9
lea rdx, str.SCHTASKS
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.__Create__TN__CLaunch___F__XML
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14003b8b0]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xorps xmm0, xmm0
lea rdx, [rbp + 0x1f0]
xor eax, eax
xor r9d, r9d
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x28], 0x400
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x20], esi
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x54], 1
movups xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x50], si
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140010489
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400104a9
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14003b8b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x1f0]
mov ecx, 7
call fcn.14000f0d0
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400105ce
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 6]
call fcn.140010b20
call section..text
cmp eax, 0x258
jb 0x1400105ce
lea rdx, str.SCHTASKS
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.__Delete__TN__CLaunch___F
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xorps xmm0, xmm0
lea rdx, [rbp + 0x1f0]
xor eax, eax
xor r9d, r9d
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x28], 0x400
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x20], esi
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x54], 1
movups xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x50], si
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400105ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400105ce
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x14003ac48], esi
je 0x1400105ea
mov r8d, dword [0x14003aa34]
mov edx, 1
lea ecx, [rdx + 0xf]
call fcn.140010b20
call fcn.140011080
lea rdx, [0x14003ae60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.CLaunch.chm
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140010629
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [0x14003ae60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Data_
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x104
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14002c088]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Mode1.cic
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400106d9
lea rdx, [0x14003ae60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Data_
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Mode1.cic
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400106f1
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [0x14003ae60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Data_
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x104
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14002c088]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Mode2.cic
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400107a1
lea rdx, [0x14003ae60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Data_
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Mode2.cic
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400107b9
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x14003aa28]
mov edx, 0x7db
mov r9d, 1
mov qword [rsp + 0x20], rsi
mov r8d, 0x403
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, dword [0x14003b8a8]
xor r9d, r9d
mov rdi, qword [rsp + 0xc80]
inc eax
cmp eax, dword [0x14003b69c]
mov rsi, qword [rsp + 0xc78]
mov rbx, qword [rsp + 0xc70]
mov dword [0x14003b8a8], eax
jle 0x140010891
mov rcx, qword [0x1400330c8]
xor r8d, r8d
mov edx, 0x46b
call qword [sym.imp.USER32.dll_PostMessageW]
cmp dword [0x14003aa20], 0
lea r8, [rbp + 0x600]
mov rcx, qword [0x140033570]
mov r9d, 0x104
mov rax, qword [0x140033138]
mov edx, 0x39d
jne 0x140010854
mov edx, 0x39e
test rax, rax
cmovne rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x14003aa28]
lea r8, [rbp + 0x600]
mov edx, 0x7da
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [0x1400330c8]
mov r9d, 4
xor r8d, r8d
mov edx, 0x470
jmp 0x1400108a3
mov rcx, qword [0x14003aa28]
mov edx, 0x111
mov r8d, 1
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rbp + 0xb30]
xor rcx, rsp
call fcn.140013ba0
add rsp, 0xc60
pop rbp
ret