Function at 0x140002770
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x140071060]
xor rax, rsp
mov qword [rbp + 0x300], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x100]
call fcn.140020c50
mov r8d, 0x100
lea rdx, [rbp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x100]
call fcn.140020384
xor esi, esi
mov word [rax + 2], si
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea r8d, [rsi + 5]
lea rdx, [0x140050978]
lea rcx, [rsp + 0x30]
call fcn.140004ba0
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x60]
call fcn.140005320
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002861
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000285c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d31
call fcn.14001e184
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140004ba0
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x40]
call fcn.14001d670
mov r8d, eax
test eax, eax
jne 0x140002904
mov ecx, dword [rbp - 0x30]
bt ecx, 0xa
jae 0x1400028f9
mov edx, dword [rbp - 0x2c]
cmp edx, 0xa000000c
jne 0x1400028ea
lea ecx, [rax + 4]
jmp 0x14000291f
cmp edx, 0xa0000003
jne 0x1400028f9
mov ecx, 0xa
jmp 0x14000291f
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x14000291f
sub eax, 2
je 0x14000291a
sub eax, 1
je 0x14000291a
sub eax, 0x32
je 0x14000291a
cmp eax, 0x46
mov ecx, esi
jne 0x14000291f
mov ecx, 1
mov dword [rbp - 0x70], r8d
lea rax, [0x140071c80]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
test ecx, ecx
je 0x1400029a1
cmp ecx, 1
sete bl
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140002983
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000297e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d37
call fcn.14001e184
test bl, bl
je 0x1400029ae
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140050988]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140002cb8
mov bl, 1
test r8d, r8d
jne 0x140002d22
jmp 0x140002941
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov r8d, 0xa
lea rdx, str.loader.sys
lea rcx, [rsp + 0x50]
call fcn.140004ba0
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x70]
call fcn.140005320
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140002a32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d3d
call fcn.14001e184
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x20]
call fcn.140020c50
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x20]
call fcn.140004940
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 0x24], edx
cmp qword [rbp + 0x78], 0
jne 0x140002ab6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400509b8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140002c5c
lea rcx, [rbp - 0x10]
call fcn.140003d60
lea rcx, [rbp - 8]
call fcn.140004840
test rax, rax
jne 0x140002af9
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x20]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140001e80
call fcn.1400012e0
mov rdi, rax
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140002b30
lea rcx, [rsp + 0x30]
call fcn.140004ba0
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400061b0
test eax, eax
sete dil
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002b9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d43
call fcn.14001e184
test dil, dil
je 0x140002c45
call fcn.1400012e0
mov rdi, rax
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140002bd0
mov r8, rbx
lea rcx, [rsp + 0x30]
call fcn.140004ba0
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140006690
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002c38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d49
call fcn.14001e184
call fcn.1400012e0
mov rcx, rax
call fcn.1400065e0
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rbp - 0x20]
call fcn.140002d60
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140002ca7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ca2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d4f
call fcn.14001e184
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140002cf4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d1c
call fcn.14001e184
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14001e160
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140025ed4
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
call fcn.140002710
nop
call fcn.140025ed4
int3
call fcn.140025ed4
nop
call fcn.140025ed4
nop
call fcn.140025ed4
int3
call fcn.140025ed4
nop
call fcn.140025ed4
int3