Function at 0x14002409c
Capabilities:
Delete file
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x240
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1401e3028]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r15d, r15d
mov qword [rbp - 0x68], r8
mov word [rcx], r15w
mov r14, r8
or qword [r8], 0xffffffffffffffff
mov rax, rcx
cmp dword [0x14022602c], r15d
mov ebx, r15d
mov qword [rsp + 0x50], rcx
mov r13d, r15d
mov qword [rsp + 0x48], r15
mov qword [rbp - 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x78], r15
mov dword [rsp + 0x40], r15d
mov qword [r8 + 0x10], r15
mov qword [r8 + 8], r15
jne 0x14002490c
lea ecx, [r15 + 0x20]
test byte [0x14022699c], cl
je 0x14002414c
mov dword [rsp + 0x30], r15d
lea r9, str..tmp
mov qword [rsp + 0x28], r15
mov rcx, rax
mov qword [rsp + 0x20], r15
call fcn.140024bdc
jmp 0x140024874
call fcn.14015319c
mov rbx, rax
mov eax, InitCommonControls
test rbx, rbx
je 0x140024179
mov word [rbx + 8], ax
movzx eax, ax
bts eax, 0x10
mov qword [rbx], r15
mov dword [rbx + 8], eax
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
jmp 0x14002417c
mov rbx, r15
test rbx, rbx
je 0x140024902
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
mov r8d, edx
call fcn.140032440
test al, al
je 0x140024902
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rbp - 0x18]
mov r15, qword [0x140226988]
mov qword [rsp + 0x68], r15
cmp rdi, qword [rbp - 0x10]
jae 0x140024272
mov esi, 0x30
xor r14d, r14d
mov r8, rsi
lea rcx, [rbp - 0x50]
xor edx, edx
call fcn.140130a00
mov r9, rsi
lea r8, [rbp - 0x50]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov qword [rsp + 0x48], rax
cmp rax, rsi
je 0x140024208
mov r8, rsi
lea rcx, [rbp - 0x50]
xor edx, edx
call fcn.140130a00
mov rdi, qword [rbp - 0x10]
jmp 0x140024253
cmp dword [rbp - 0x30], 0x1000
jne 0x140024253
cmp dword [rbp - 0x2c], 4
je 0x14002421d
cmp dword [rbp - 0x2c], 0x40
jne 0x140024253
cmp dword [rbp - 0x28], 0x20000
jne 0x140024253
mov rcx, qword [rbp - 0x38]
mov eax, 0xffffffff
cmp rcx, rax
jae 0x140024257
mov rax, qword [rbp - 0x50]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x60], ecx
mov rcx, rbx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x64], r14d
call fcn.140032500
mov rcx, qword [rbp - 0x38]
mov eax, dword [rbp - 0x1c]
cmp rax, rcx
cmova rcx, rax
add rdi, rcx
cmp rdi, qword [rbp - 0x10]
jb 0x1400241c9
mov r14, qword [rbp - 0x68]
mov rcx, qword [0x140230ad0]
lea r9, [rsp + 0x78]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rax + 4]
call qword [sym.imp.dbghelp.dll_MiniDumpReadDumpStream]
mov rdi, qword [rsp + 0x78]
xor edx, edx
test rdi, rdi
je 0x1400248f8
mov r12d, edx
cmp dword [rdi], edx
jbe 0x1400243b3
mov eax, r12d
mov r9d, edx
imul rsi, rax, 0x6c
mov dword [rsp + 0x70], edx
cmp dword [rbx], edx
jle 0x14002439e
mov r15, rdx
mov r8, qword [rbx + 0x10]
mov rdx, qword [rsi + rdi + 4]
mov rcx, qword [r15 + r8]
cmp rdx, rcx
jb 0x1400242ed
mov eax, dword [r15 + r8 + 8]
add rax, rcx
cmp rdx, rax
jb 0x1400242fd
cmp rdx, rcx
ja 0x140024589
mov eax, dword [rsi + rdi + 0xc]
add rax, rdx
cmp rcx, rax
jae 0x140024589
movups xmm6, xmmword [r15 + r8]
mov r8d, 1
mov edx, r9d
mov rcx, rbx
movups xmmword [rbp - 0x60], xmm6
call fcn.140032790
movq r13, xmm6
cmp r13, qword [rsi + rdi + 4]
jae 0x14002434f
xor eax, eax
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x58]
mov eax, dword [rsi + rdi + 4]
mov rcx, rbx
sub eax, r13d
mov dword [rsp + 0x60], eax
call fcn.140032500
cmp eax, 0xffffffff
je 0x1400248f8
mov eax, dword [rbp - 0x58]
mov ecx, dword [rsi + rdi + 0xc]
add rax, r13
add rcx, qword [rsi + rdi + 4]
cmp rax, rcx
jbe 0x140024389
and dword [rsp + 0x64], 0
lea rdx, [rsp + 0x58]
sub eax, ecx
mov qword [rsp + 0x58], rcx
mov rcx, rbx
mov dword [rsp + 0x60], eax
call fcn.140032500
cmp eax, 0xffffffff
je 0x1400248f8
mov r9d, dword [rsp + 0x70]
cmp r9d, dword [rbx]
jl 0x1400242c5
mov rdi, qword [rsp + 0x78]
xor edx, edx
inc r12d
cmp r12d, dword [rdi]
jb 0x1400242ac
mov r13, qword [rbp - 0x78]
mov r15, qword [rsp + 0x68]
mov r12d, edx
cmp dword [rdi], edx
jbe 0x14002459a
mov qword [rsp + 0x48], rdx
lea r8, [rbp - 0x80]
mov eax, r12d
mov r9d, 4
imul rsi, rax, 0x6c
lea rax, [rsp + 0x48]
mov rcx, r15
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x20], rax
mov rdx, qword [rsi + rdi + 4]
add rdx, 0x3c
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edx, edx
test eax, eax
je 0x140024566
cmp qword [rsp + 0x48], 4
jne 0x140024566
mov r15d, dword [rbp - 0x80]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
lea r8, [rbp + 0x10]
mov qword [rsp + 0x48], rdx
add r15, qword [rsi + rdi + 4]
mov esi, 0x108
mov r9d, esi
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edx, edx
test eax, eax
je 0x140024561
cmp qword [rsp + 0x48], rsi
jne 0x140024561
cmp dword [rbp + 0x10], 0x4550
jne 0x140024561
movzx eax, word [rbp + 0x16]
test ax, ax
je 0x140024561
movzx eax, ax
lea esi, [rax + rax*4]
mov eax, dword [rsp + 0x40]
shl esi, 3
cmp eax, esi
jae 0x1400244aa
test r13, r13
je 0x14002448a
mov rcx, r13
call fcn.140152ed8
mov rcx, rsi
mov dword [rsp + 0x40], esi
call fcn.14015319c
xor edx, edx
mov qword [rbp - 0x78], rax
mov r13, rax
test rax, rax
je 0x14002459a
mov eax, esi
mov qword [rsp + 0x48], rdx
mov rcx, r13
xor edx, edx
mov r8d, eax
call fcn.140130a00
movzx edx, word [rbp + 0x24]
lea rax, [rsp + 0x48]
add rdx, 0x18
mov qword [rsp + 0x20], rax
add rdx, r15
mov r9, rsi
mov r15, qword [rsp + 0x68]
mov r8, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edx, edx
test eax, eax
je 0x140024566
cmp qword [rsp + 0x48], rsi
jne 0x140024566
movzx ecx, word [rbp + 0x16]
mov r15d, edx
cmp dx, cx
jae 0x140024561
mov r14, qword [rsp + 0x70]
lea rsi, [r13 + 0xc]
xor r13d, r13d
mov eax, dword [rsi + 0x18]
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x140024548
test byte [rsi + 0x18], 0xc0
je 0x140024548
mov eax, dword [rsi]
lea rdx, [rsp + 0x58]
add rax, qword [r14 + rdi + 4]
mov rcx, rbx
mov qword [rsp + 0x58], rax
mov eax, dword [rsi - 4]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], r13d
call fcn.140032500
movzx ecx, word [rbp + 0x16]
add rsi, 0x28
movzx eax, cx
inc r15d
cmp r15d, eax
jl 0x14002450a
mov r14, qword [rbp - 0x68]
xor edx, edx
mov r13, qword [rbp - 0x78]
mov r15, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
inc r12d
cmp r12d, dword [rdi]
jb 0x1400243be
xor r15d, r15d
test r13, r13
je 0x14002459d
mov rcx, r13
call fcn.140152ed8
jmp 0x14002459d
inc r9d
mov dword [rsp + 0x70], r9d
add r15, 0x10
jmp 0x14002438e
xor r15d, r15d
mov rcx, qword [0x140230ad0]
lea r9, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r8 + 5]
call qword [sym.imp.dbghelp.dll_MiniDumpReadDumpStream]
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x140024902
mov r12d, r15d
cmp dword [rdi], r15d
jbe 0x1400246d0
mov esi, r12d
mov r9d, r15d
add rsi, rsi
mov dword [rsp + 0x40], r15d
cmp dword [rbx], r15d
jle 0x1400246c4
mov r8, qword [rbx + 0x10]
mov rcx, qword [rdi + rsi*8 + 4]
mov rdx, qword [r15 + r8]
cmp rdx, rcx
jb 0x140024611
mov eax, dword [rdi + rsi*8 + 0xc]
add rax, rcx
cmp rdx, rax
jb 0x140024622
cmp rdx, rcx
ja 0x1400248a3
mov eax, dword [r15 + r8 + 8]
add rax, rdx
cmp rcx, rax
jae 0x1400248a3
movups xmm6, xmmword [r15 + r8]
mov r8d, 1
mov edx, r9d
mov rcx, rbx
movups xmmword [rbp - 0x60], xmm6
call fcn.140032790
movq r13, xmm6
cmp r13, qword [rdi + rsi*8 + 4]
jae 0x140024674
xor eax, eax
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x58]
mov eax, dword [rdi + rsi*8 + 4]
mov rcx, rbx
sub eax, r13d
mov dword [rsp + 0x60], eax
call fcn.140032500
cmp eax, 0xffffffff
je 0x1400248f8
mov eax, dword [rbp - 0x58]
mov ecx, dword [rdi + rsi*8 + 0xc]
add rax, r13
add rcx, qword [rdi + rsi*8 + 4]
cmp rax, rcx
jbe 0x1400246af
xor edx, edx
mov qword [rsp + 0x58], rcx
sub eax, ecx
mov dword [rsp + 0x64], edx
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x60], eax
mov rcx, rbx
call fcn.140032500
cmp eax, 0xffffffff
je 0x1400248f8
mov r9d, dword [rsp + 0x40]
cmp r9d, dword [rbx]
jl 0x1400245ea
mov rdi, qword [rbp - 0x70]
xor r15d, r15d
inc r12d
cmp r12d, dword [rdi]
jb 0x1400245d3
cmp dword [rbx], r15d
jle 0x140024902
mov esi, dword [rbx]
mov ecx, r15d
shl esi, 4
add esi, 4
cmp dword [rbx], r15d
jbe 0x140024704
mov rdx, qword [rbx + 0x10]
mov eax, ecx
inc ecx
add rax, rax
mov dword [rdx + rax*8 + 0xc], esi
mov rdx, qword [rbx + 0x10]
add esi, dword [rdx + rax*8 + 8]
cmp ecx, dword [rbx]
jb 0x1400246ed
call fcn.140022bcc
mov r12, qword [rsp + 0x50]
test eax, eax
je 0x14002482a
mov qword [rsp + 0x30], r15
lea r8, str..tmp
mov r9, r12
mov dword [rsp + 0x28], 0xc0000000
lea rdx, [0x140231400]
mov rcx, r14
call fcn.140023a84
test eax, eax
je 0x14002482a
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor edx, edx
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [r14 + 8], rax
test rax, rax
je 0x14002482a
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r14 + 0x10], rax
mov rdi, rax
test rax, rax
je 0x14002482a
mov dword [r14 + 0x18], esi
add rdi, 4
mov ecx, dword [rbx]
mov esi, r15d
mov dword [rax], ecx
mov eax, dword [rbx]
test eax, eax
je 0x1400247d1
movzx ecx, word [rbx + 8]
mov r8, rcx
mov edx, esi
shl rdx, 4
mov rcx, rdi
add rdx, qword [rbx + 0x10]
call fcn.140130600
movzx ecx, word [rbx + 8]
inc esi
mov eax, dword [rbx]
add rdi, rcx
cmp esi, eax
jb 0x1400247ad
xor r13d, r13d
test eax, eax
je 0x1400248d4
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov r8, rdi
mov rdx, qword [rbx + 0x10]
mov esi, r15d
add rsi, rsi
mov qword [rsp + 0x20], rax
mov r9d, dword [rdx + rsi*8 + 8]
mov rdx, qword [rdx + rsi*8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400248b4
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + rsi*8 + 8]
cmp qword [rsp + 0x48], rax
je 0x1400248c1
xor r15d, r15d
mov rcx, r14
call fcn.140023750
cmp word [r12], r15w
je 0x140024842
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
or qword [r14], 0xffffffffffffffff
mov qword [r14 + 0x10], r15
mov qword [r14 + 8], r15
mov word [r12], r15w
test rbx, rbx
je 0x140024872
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002486a
mov rdx, qword [rbx + 0x18]
call fcn.1400321f8
mov rcx, rbx
call fcn.140152ed8
xor eax, eax
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14012e400
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
inc r9d
mov dword [rsp + 0x40], r9d
add r15, 0x10
jmp 0x1400246b4
mov rax, qword [r14 + 0x10]
mov dword [rax + rsi*8 + 0xc], r13d
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + rsi*8 + 8]
inc r15d
add rdi, rax
cmp r15d, dword [rbx]
jb 0x1400247dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400248e6
mov rdx, qword [rbx + 0x18]
call fcn.1400321f8
mov rcx, rbx
call fcn.140152ed8
mov eax, 1
jmp 0x140024874
mov r12, qword [rsp + 0x50]
jmp 0x140024827
mov r12, qword [rsp + 0x50]
jmp 0x14002482a
mov r12, rax
jmp 0x14002482a