Function at 0x1400393d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov rdi, rcx
mov ebp, 1
mov rcx, qword [0x14009b028]
lea r15, [0x14009b028]
mov r13b, 4
cmp rcx, r15
je 0x14003942c
test byte [rcx + 0x1c], r13b
je 0x14003942c
cmp byte [rcx + 0x19], 5
jb 0x14003942c
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x72]
lea r8, [0x1400896c8]
call fcn.140001024
mov rcx, qword [rdi + 0x198]
test rcx, rcx
je 0x140039479
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
jne 0x140039479
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14003949b
test byte [rcx + 0x1c], r13b
je 0x14003949b
cmp byte [rcx + 0x19], 2
jb 0x14003949b
mov r9d, dword [rdi + 0x20]
lea edx, [rax + 0x74]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400896c8]
call fcn.140001050
jmp 0x14003949b
mov rcx, rdi
call fcn.1400391a4
lea r14d, [rax + 0x678]
mov ecx, r14d
mov ebx, r14d
call fcn.140066e68
mov rsi, rax
test rax, rax
jne 0x1400394a2
xor eax, eax
jmp 0x140039ae6
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov ebx, 0x678
lea r8, [rdi + 0x498]
mov dword [rsi], ebx
lea rcx, [rsi + 0x470]
mov rax, qword [rdi + 0x10]
mov edx, 0x100
mov qword [rsi + 8], rax
mov rax, qword [rdi + 0x18]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi + 0x1a0]
mov qword [rsi + 0x180], rax
mov rax, qword [rdi + 0x1a8]
mov qword [rsi + 0x188], rax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x18], eax
mov eax, dword [rdi + 0x734]
mov dword [rsi + 0x28], eax
mov eax, dword [rdi + 0x698]
mov dword [rsi + 0x670], eax
mov qword [rsp + 0x70], rbx
call fcn.140002b44
test eax, eax
jns 0x140039555
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14003954e
test byte [rcx + 0x1c], r13b
je 0x14003954e
cmp byte [rcx + 0x19], 2
jb 0x14003954e
mov edx, 0x75
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400896c8]
mov r9d, eax
call fcn.140001050
xor ebp, ebp
jmp 0x140039adc
lea r8, [rdi + 0x288]
mov edx, 0x100
lea rcx, [rsi + 0x22c]
call fcn.140002b44
test eax, eax
jns 0x140039590
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14003954e
test byte [rcx + 0x1c], r13b
je 0x14003954e
cmp byte [rcx + 0x19], 2
jb 0x14003954e
mov edx, 0x76
jmp 0x14003953b
mov eax, dword [rdi + 0x40]
mov dword [rsi + 0x2c], eax
mov eax, dword [rdi + 0xe8]
mov dword [rsi + 0xc0], eax
mov eax, dword [rdi + 0x17c]
mov dword [rsi + 0x154], eax
mov eax, dword [rdi + 0x178]
mov dword [rsi + 0x150], eax
mov eax, dword [rdi + 0x184]
mov dword [rsi + 0x158], eax
cmp dword [rdi + 0x24], 2
jne 0x1400395de
mov rax, qword [rdi + 0x248]
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x220], rcx
mov eax, dword [rdi + 0x250]
mov dword [rsi + 0x228], eax
mov rax, qword [rdi + 0x488]
mov qword [rsi + 0x460], rax
mov rax, qword [rdi + 0x490]
mov qword [rsi + 0x468], rax
mov rcx, qword [rdi + 0x198]
test rcx, rcx
je 0x140039649
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
mov qword [rsi + 0x178], rbx
lea rcx, [rsi + 0x678]
mov rdx, qword [rdi + 0x198]
mov r8d, eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
lea rax, [rbx + 0x678]
mov qword [rsp + 0x70], rax
mov rcx, qword [rdi + 0x1b8]
lea rdx, [rsi + 0x190]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], r14d
mov r8, rsi
call fcn.140068760
xorps xmm0, xmm0
mov dword [rsp + 0x20], r14d
movups xmmword [rsi + 0x450], xmm0
mov rcx, qword [rdi + 0x38]
lea r9, [rsp + 0x70]
mov r8, rsi
lea rdx, [rsi + 0x20]
call fcn.140068760
cmp dword [rdi + 0x24], 0x20
je 0x140039699
cmp dword [rdi + 0x24], 8
jne 0x1400396b3
mov rcx, qword [rdi + 0x48]
lea rdx, [rsi + 0x30]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], r14d
mov r8, rsi
call fcn.140068760
lea rdx, [rsi + 0x38]
mov dword [rsp + 0x20], r14d
lea rcx, [rdi + 0x50]
mov r8, rsi
lea r9, [rsp + 0x70]
call fcn.140038b7c
test eax, eax
jne 0x14003971b
lea ebp, [rax + 0x7a]
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140039adc
test byte [rcx + 0x1c], r13b
je 0x140039adc
cmp byte [rcx + 0x19], 2
jb 0x140039adc
lea edx, [rax + 0x77]
mov r9d, dword [rdi + 0x20]
lea r8, [0x1400896c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140039adc
lea rdx, [rsi + 0x98]
mov dword [rsp + 0x20], r14d
lea rcx, [rdi + 0xb0]
mov r8, rsi
lea r9, [rsp + 0x70]
call fcn.140038c28
test eax, eax
jne 0x140039772
lea ebp, [rax + 0x7a]
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140039adc
test byte [rcx + 0x1c], r13b
je 0x140039adc
cmp byte [rcx + 0x19], 2
jb 0x140039adc
lea edx, [rax + 0x78]
jmp 0x140039702
lea rdx, [rsi + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rdi + 0xf0]
mov r8, rsi
lea r9, [rsp + 0x70]
call fcn.140038cd4
test eax, eax
jne 0x1400397cc
lea ebp, [rax + 0x7a]
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140039adc
test byte [rcx + 0x1c], r13b
je 0x140039adc
cmp byte [rcx + 0x19], 2
jb 0x140039adc
lea edx, [rax + 0x79]
jmp 0x140039702
mov rcx, qword [rdi + 0x190]
lea rdx, [rsi + 0x170]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], r14d
mov r8, rsi
call fcn.140068760
lea rdx, [rsi + 0x198]
mov dword [rsp + 0x20], r14d
lea rcx, [rdi + 0x1c0]
mov r8, rsi
lea r9, [rsp + 0x70]
call fcn.140038cd4
test eax, eax
jne 0x140039845
lea ebp, [rax + 0x7a]
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140039adc
test byte [rcx + 0x1c], r13b
je 0x140039adc
cmp byte [rcx + 0x19], 2
jb 0x140039adc
mov edx, ebp
jmp 0x140039702
cmp dword [rdi + 0x24], 8
jne 0x1400398c2
mov r9d, r14d
lea r8, [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call fcn.140038ea0
mov ebp, eax
test eax, eax
jne 0x1400398c2
mov rax, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rax, r14
je 0x140039adc
test byte [rax + 0x1c], r13b
je 0x140039adc
cmp byte [rax + 0x19], 2
jb 0x140039adc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rbp + 0x7b]
mov r9d, dword [rdi + 0x20]
lea r8, [0x1400896c8]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.1400013ac
jmp 0x140039adc
mov rcx, qword [rdi + 0x38]
xor r8d, r8d
mov dword [rsp + 0x28], 0x80000080
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call fcn.140069a1c
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003993c
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14003954e
test byte [rcx + 0x1c], r13b
je 0x14003954e
cmp byte [rcx + 0x19], 2
jb 0x14003954e
mov r9d, dword [rdi + 0x20]
lea edx, [rax + 0x7d]
mov rax, qword [rdi + 0x38]
lea r8, [0x1400896c8]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001094
jmp 0x14003954e
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14003f330
test eax, eax
je 0x140039a86
test r12d, r12d
je 0x140039a3d
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x1400399a0
test byte [rcx + 0x1c], r13b
je 0x1400399a0
cmp byte [rcx + 0x19], 2
jb 0x1400399a0
mov r9d, dword [rdi + 0x20]
lea r8, [0x1400896c8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x7d
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14002d54c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400399f3
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x1400399f3
test byte [rax + 0x1c], r13b
je 0x1400399f3
cmp byte [rax + 0x19], 2
jb 0x1400399f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov r9, qword [rsi + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
call fcn.140035c0c
mov rcx, qword [rdi + 0x38]
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140039a82
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140039a82
test byte [rax + 0x1c], r13b
je 0x140039a82
cmp byte [rax + 0x19], 2
jb 0x140039a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov edx, 0x7f
jmp 0x140039a61
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140039a82
test byte [rcx + 0x1c], r13b
je 0x140039a82
cmp byte [rcx + 0x19], 2
jb 0x140039a82
mov edx, 0x80
mov r9d, dword [rdi + 0x20]
lea r8, [0x1400896c8]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14002d54c
xor ebp, ebp
jmp 0x140039ac7
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140039ac7
test byte [rcx + 0x1c], r13b
je 0x140039ac7
cmp byte [rcx + 0x19], 5
jb 0x140039ac7
mov rax, qword [rdi + 0x38]
lea r8, [0x1400896c8]
mov r9d, dword [rdi + 0x20]
mov edx, 0x81
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001094
cmp rbx, 0xffffffffffffffff
je 0x140039adc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rsi
call fcn.140066f24
mov eax, ebp
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret