Function at 0x140037970
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 0x1178], eax
je 0x1400379ca
mov qword [rsi + 0x1140], 0x3f3
xor r14d, r14d
mov dword [rsi + 0x1148], r14d
xor eax, eax
jmp 0x140037fb0
cmp qword [rsi + 0x1150], 0
je 0x1400379c3
xor r14d, r14d
mov qword [rsi + 0x1170], r14
mov dword [rsi + 0x1158], r14d
mov qword [rsi + 8], r14
mov rax, qword [rsi + 0x10]
mov word [rax], r14w
mov rax, qword [rsi + 0x20]
mov word [rax], r14w
mov qword [rsi + 0x30], r14
mov dword [rsi + 0x38], r14d
mov qword [rsi + 0x1140], r14
mov dword [rsi + 0x1148], r14d
xor eax, eax
mov qword [rsi + 0x1120], rax
mov dword [rsi + 0x1128], eax
mov dword [rsi + 0x84], r14d
lea r13, [rsi + 0x98]
mov rdx, rbx
mov rcx, r13
call fcn.140036e20
mov rcx, qword [r13]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140037a42
mov edx, dword [r13 + 8]
cmp eax, edx
jae 0x140037fed
mov r8, rcx
cmp eax, 1
jle 0x140037aac
cdqe
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140037aac
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140037a71
cmp eax, edx
jae 0x140038009
lea edx, [rax + 1]
mov rcx, r13
call fcn.140036d40
mov rcx, qword [r13]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x140037a96
mov eax, dword [0x1402ed690]
mov dword [rcx], eax
mov r8, qword [r13]
lea rdx, str.MEMORY_
mov rcx, r8
call fcn.14024bf20
mov ecx, r14d
test eax, eax
sete cl
mov dword [rsi + 0x115c], ecx
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], r14d
mov edx, 0x12c
lea rcx, [rbp - 0x10]
call fcn.140036d40
mov rax, qword [rbp - 0x10]
mov word [rax], r14w
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], r14d
mov edx, 0x12c
lea rcx, [rbp - 0x20]
call fcn.140036d40
mov rax, qword [rbp - 0x20]
mov word [rax], r14w
mov edx, 0x5c
mov rcx, qword [rdi]
call fcn.1402413c0
mov r12, rax
test rax, rax
jne 0x140037b52
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140036d40
xor r8d, r8d
lea rdx, [0x1402e82f0]
mov r12, qword [rbp - 0x10]
mov rcx, r12
call fcn.14024d848
mov word [r12], r14w
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140036e20
mov r15, qword [rbp - 0x20]
jmp 0x140037bbe
add r12, 2
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [r12 + rbx*2], 0
jne 0x140037b60
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140036d40
mov ebx, ebx
mov r8d, ebx
mov rdx, r12
mov r15, qword [rbp - 0x20]
mov rcx, r15
call fcn.14024d848
mov word [r15 + rbx*2], r14w
mov rdi, qword [rdi]
sub r12, rdi
sar r12, 1
mov edx, r12d
lea rcx, [rbp - 0x10]
call fcn.140036d40
mov ebx, r12d
mov r8d, r12d
mov rdx, rdi
mov r12, qword [rbp - 0x10]
mov rcx, r12
call fcn.14024d848
mov word [r12 + rbx*2], r14w
mov rcx, qword [r13]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140037bd0
cmp eax, dword [r13 + 8]
jae 0x140038025
cmp eax, 3
jb 0x140037f8a
mov rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], 0
jne 0x140037bf4
cmp eax, dword [rbp - 8]
jae 0x140038041
cmp eax, 2
jb 0x140037f8a
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140037c20
cmp eax, dword [rbp - 0x18]
jae 0x14003805d
cmp eax, 2
jb 0x140037f8a
mov rax, qword [rsi + 0xa8]
mov word [rax], r14w
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r14d
mov edx, 0x12c
lea rcx, [rbp - 0x40]
call fcn.140036c80
mov rbx, qword [rbp - 0x40]
mov byte [rbx], 0
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], r14d
mov edx, 0x12c
lea rcx, [rbp - 0x30]
call fcn.140036c80
mov rax, qword [rbp - 0x30]
mov byte [rax], 0
mov rdi, qword [rsi + 0x1190]
mov byte [rax], 0
mov rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], 0
jne 0x140037c93
shl eax, 2
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.140036c80
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x28], eax
mov r13, qword [rbp - 0x30]
mov qword [rsp + 0x20], r13
mov r9d, 0xffffffff
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + r13], 0
mov byte [rbx], 0
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r15 + rax*2], 0
jne 0x140037cf0
shl eax, 2
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140036c80
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x28], eax
mov rbx, qword [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + rbx], 0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [0x140038450]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r13
mov rdx, rbx
mov rcx, qword [rsi + 0x1150]
call rdi
test eax, eax
je 0x140037f30
mov rdi, qword [rsi + 0xa8]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x140037d80
mov ecx, dword [rsi + 0xb0]
cmp eax, ecx
jae 0x140037fd1
test eax, eax
je 0x140037f30
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140037db0
cmp ebx, ecx
jae 0x140038079
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140036d40
mov ebx, ebx
mov r8d, ebx
mov rdx, rdi
mov r15, qword [rbp - 0x20]
mov rcx, r15
call fcn.14024d848
mov word [r15 + rbx*2], r14w
mov rcx, r13
call fcn.140095d64
nop
mov rcx, qword [rbp - 0x40]
call fcn.140095d64
mov rax, qword [rsi + 0xa8]
mov word [rax], r14w
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r14d
mov edx, 0x12c
lea rcx, [rbp - 0x40]
call fcn.140036c80
mov rbx, qword [rbp - 0x40]
mov byte [rbx], 0
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], r14d
mov edx, 0x12c
lea rcx, [rbp - 0x30]
call fcn.140036c80
mov rax, qword [rbp - 0x30]
mov byte [rax], 0
mov rdi, qword [rsi + 0x1190]
mov byte [rax], 0
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r12 + rax*2], 0
jne 0x140037e50
shl eax, 2
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.140036c80
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x28], eax
mov r13, qword [rbp - 0x30]
mov qword [rsp + 0x20], r13
mov r9d, 0xffffffff
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + r13], 0
mov byte [rbx], 0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140037eb0
shl eax, 2
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140036c80
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x28], eax
mov rbx, qword [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + rbx], 0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [0x140038450]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r13
mov rdx, rbx
mov rcx, qword [rsi + 0x1150]
call rdi
test eax, eax
jne 0x140037d70
mov rcx, r13
call fcn.140095d64
nop
mov rcx, rbx
call fcn.140095d64
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.140038720
cmp dword [rsi + 0x1158], 0
je 0x140037f67
cmp qword [rsi + 8], 0
je 0x140037f67
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rsi + 0x1128], 0
jne 0x140037f9c
cmp dword [rsi + 0x1144], 0
jne 0x140037f9c
cmp dword [rsi + 0x1140], 0
jne 0x140037f9c
mov r14d, 1
jmp 0x140037f9c
mov qword [rsi + 0x1140], 0x3ea
mov dword [rsi + 0x1148], r14d
mov rcx, r15
call fcn.140095d64
nop
mov rcx, r12
call fcn.140095d64
mov eax, r14d
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
nop
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
int3
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
nop
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
int3
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
int3
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
nop
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x48], rax
lea rdx, [0x140337f08]
lea rcx, [rbp + 0x48]
call fcn.140241d30
int3