Function at 0x180023cd4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rsi, qword [rsp + 0x138]
xor r14d, r14d
lea eax, [rdx - 0x11]
mov rdi, r9
mov r11d, r8d
mov r13d, edx
mov rbp, rcx
mov r10d, r14d
lea r15d, [r14 + 1]
mov r8d, r14d
mov r9d, r14d
lea r12, [0x180000000]
cmp eax, 0x3c
ja case.0x180023d35.34
mov ecx, dword [r12 + rax*4 + 0x245a0]
add rcx, r12
jmp rcx
mov rdx, rsi
mov rcx, rdi
call fcn.18001bd18
jmp 0x180024462
cmp dword [rsp + 0x130], r14d
je case.0x180023d35.34
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x8c
mov qword [rsp + 0x40], r14
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180008294
mov ebx, eax
cmp eax, r14d
jne 0x180024550
mov r9d, 0x94
lea r8, [rsp + 0x40]
mov rcx, rbp
lea edx, [r9 + 0x6c]
call fcn.1800180fc
cmp eax, r14d
je 0x180023db0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1800154f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x180024550
mov edx, dword [rsp + 0x130]
mov rcx, rdi
call fcn.180022540
jmp 0x18002448d
mov r9d, r15d
mov edx, dword [rsp + 0x130]
mov rcx, rdi
call fcn.180025dc8
jmp 0x18002448d
mov r8d, r15d
mov ebx, 0xb7
mov eax, r15d
lock xadd dword [0x180035a90], eax
add eax, r15d
cmp eax, r15d
jle 0x180023e0b
cmp r8d, r14d
je 0x180023e38
cmp dword [rsp + 0x130], r15d
mov edx, 5
mov rcx, r14
lea r8d, [rdx + 0x21]
cmova rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.18000c868
mov ebx, eax
cmp eax, r14d
je 0x180024550
lock add dword [0x180035a90], 0xffffffff
jmp 0x180024550
mov ebx, 0xb7
mov eax, r15d
lock xadd dword [0x180035a94], eax
add eax, r15d
cmp eax, r15d
jg 0x180023e8a
cmp dword [rsp + 0x130], r15d
mov edx, 9
mov rcx, r14
lea r8d, [rdx + 0x1d]
cmova rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.18000c868
mov ebx, eax
cmp eax, r14d
je 0x180024550
lock add dword [0x180035a94], 0xffffffff
jmp 0x180024550
mov ebx, 0xb7
mov eax, r15d
lock xadd dword [0x180035a98], eax
add eax, r15d
cmp eax, r15d
jg 0x180023edc
cmp dword [rsp + 0x130], r15d
mov edx, 0xa
mov rcx, r14
lea r8d, [rdx + 0x1c]
cmova rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.18000c868
mov ebx, eax
cmp eax, r14d
je 0x180024550
lock add dword [0x180035a98], 0xffffffff
jmp 0x180024550
mov r9d, 3
add r9d, 2
cmp dword [rsp + 0x130], r15d
lea edx, [r9 + 6]
mov rcx, r14
cmova rcx, rdi
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8d, [r9 + 0x26]
call fcn.18000c868
jmp 0x180024462
mov r10d, r15d
mov edx, dword [rsp + 0x130]
mov r8d, r10d
mov rcx, rdi
call fcn.18001a4bc
jmp 0x18002448d
mov edx, dword [rsp + 0x130]
mov rcx, rdi
call fcn.180022ab8
jmp 0x18002448d
xor edx, edx
lea rcx, [0x180011a64]
jmp 0x18002445a
mov edx, dword [rsp + 0x130]
mov r8, rsi
mov rcx, rdi
call fcn.1800083b8
jmp 0x180024462
mov rcx, rbp
call fcn.180015898
jmp 0x180024462
call fcn.18001299c
jmp 0x18002448d
call fcn.18002aae0
jmp 0x18002448d
cmp rdi, r14
je 0x180024164
mov ebx, dword [rsp + 0x130]
cmp ebx, r14d
je 0x180024164
mov rcx, qword [0x180035a68]
lea r8, [rbx + 4]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r14
je 0x180023ff6
lea rcx, [rax + 4]
mov r8, rbx
mov rdx, rdi
call sub.ntdll.dll_memcpy
lea r11d, [rbx - 1]
lea rcx, [0x180001e64]
mov byte [r11 + rbp + 4], r14b
mov r8, rsi
mov rdx, rbp
mov dword [rbp], r13d
call fcn.1800068e0
mov ebx, eax
jmp 0x180023ffb
mov ebx, 8
lea r12, [0x180000000]
jmp 0x180024550
cmp rdi, r14
je 0x180024164
mov eax, dword [rsp + 0x130]
cmp eax, r14d
je 0x180024164
dec eax
xor edx, edx
mov rcx, rdi
mov byte [rax + rdi], r14b
call fcn.18000f450
lea rcx, [0x1800129ec]
mov rdx, rax
jmp 0x18002445a
xor edx, edx
lea rcx, [0x18001c208]
jmp 0x18002445a
xor edx, edx
lea rcx, [0x18000e0c4]
jmp 0x18002445a
xor edx, edx
lea rcx, [fcn.180027cfc]
jmp 0x18002445a
xor edx, edx
lea rcx, [fcn.1800094e4]
jmp 0x18002445a
cmp rdi, r14
je 0x180024164
mov eax, dword [rsp + 0x130]
cmp eax, r14d
je 0x180024164
dec eax
xor edx, edx
mov rcx, rdi
mov byte [rax + rdi], r14b
call fcn.18000f450
lea rcx, [0x1800260fc]
mov rdx, rax
jmp 0x18002445a
xor edx, edx
lea rcx, [0x18001f08c]
jmp 0x18002445a
mov edx, dword [rsp + 0x130]
mov rcx, rdi
call fcn.180018634
jmp case.0x180023d35.34
cmp qword [0x180035be0], r14
je 0x1800240e6
lea rcx, [rsp + 0x30]
call fcn.18001b774
jmp 0x1800240e9
mov eax, r14d
cmp eax, r14d
je 0x180024136
cmp rbp, r14
je 0x18002411d
mov r8, qword [rsp + 0x30]
mov r9d, eax
mov edx, 0x100
mov rcx, rbp
call fcn.1800180fc
cmp eax, r14d
je 0x18002411d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1800154f0
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp case.0x180023d35.34
mov ebx, 0x12
jmp 0x180024562
cmp qword [0x180035a78], r14
jne case.0x180023d35.34
cmp dword [rsp + 0x130], 0x10
jne 0x180024164
mov rcx, rdi
call fcn.180009338
jmp 0x18002448d
mov ebx, 0x57
jmp 0x180024550
mov rcx, r14
mov ebx, 0x426
xchg qword [0x180035a78], rcx
cmp rcx, r14
je 0x1800244cd
call fcn.18001cd8c
mov ebx, r14d
jmp 0x1800244cd
mov r8d, r15d
cmp r8d, r14d
cmovne rbp, r14
mov rcx, rbp
call fcn.1800273fc
jmp 0x180024462
cmp rdi, r14
jne 0x1800241c1
mov rcx, qword [0x180035ca0]
xor edx, edx
mov rcx, qword [rcx + 0x28]
call fcn.18001879c
mov dword [0x180035d30], r14d
mov dword [0x180035dc8], r14d
xor ecx, ecx
mov dword [0x180035d60], r14d
call fcn.1800273fc
mov rcx, rdi
call fcn.18000635c
mov r9d, 4
mov r8d, r15d
mov ecx, dword [0x180034128]
mov dword [0x180035d30], r8d
mov dword [0x180035dc8], r8d
mov dword [0x180035d60], r8d
movzx r8d, word [0x18003412c]
mov eax, 0xfffb
and r8w, ax
xor edx, edx
mov byte [rsp + 0x20], 0xff
or r8w, r9w
mov r9b, 0xff
call fcn.18001d6a0
mov ebp, dword [rsp + 0x130]
mov ebx, eax
cmp ebp, r14d
je 0x1800244cd
mov r8d, dword [0x180035c90]
xor r9d, r9d
mov edx, ebp
mov rcx, rdi
call fcn.1800126cc
mov rcx, qword [0x180035ca0]
mov r9d, 3
mov rcx, qword [rcx + 0x28]
mov r8d, ebp
mov rdx, rdi
call fcn.18001879c
jmp 0x1800244cd
mov rdx, r15
lea rcx, [0x18001cb94]
jmp 0x18002445a
xor edx, edx
lea rcx, [0x18000914c]
jmp 0x18002445a
cmp rsi, r14
je case.0x180023d35.34
mov r9d, 4
cmp dword [rsp + 0x130], r9d
jne case.0x180023d35.34
mov rax, qword [0x180035c60]
mov r8d, dword [rdi]
mov rdx, rsi
lea rcx, [rax + r12 + 0x39e33]
call fcn.18000ae98
jmp case.0x180023d35.34
mov rcx, qword [0x180035b00]
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0x30]
call fcn.1800080ec
mov ebx, eax
cmp eax, r14d
jne 0x180024550
mov r9d, dword [rsp + 0x118]
mov r8, qword [rsp + 0x30]
mov edx, 0x100
mov rcx, rbp
call fcn.1800180fc
cmp eax, r14d
je 0x180024320
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1800154f0
mov r8, qword [rsp + 0x30]
jmp 0x18002435d
mov rcx, qword [0x180035b00]
mov ebx, r14d
call fcn.180011ae0
mov rdi, rax
cmp rax, r14
je 0x180024550
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_DeleteFileW]
cmp eax, r14d
jne 0x18002435a
mov rcx, rdi
call fcn.180028cb4
mov ebx, eax
mov r8, rdi
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x180024550
mov edx, dword [rsp + 0x130]
cmp edx, r14d
je case.0x180023d35.34
mov r8d, r15d
jmp 0x1800243cc
mov edx, dword [rsp + 0x130]
cmp edx, r14d
je case.0x180023d35.34
mov r8d, 7
jmp 0x1800243cc
mov edx, dword [rsp + 0x130]
cmp edx, r14d
je case.0x180023d35.34
mov r8d, 3
jmp 0x1800243cc
mov edx, dword [rsp + 0x130]
cmp edx, r14d
je case.0x180023d35.34
mov r8d, 0xd
mov rcx, rdi
call fcn.180021c14
jmp 0x180024462
xor edx, edx
lea rcx, [0x180008584]
jmp 0x18002445a
mov ebx, dword [rsp + 0x130]
cmp ebx, r14d
je case.0x180023d35.34
mov edx, ebx
mov rcx, rdi
call fcn.180015594
cmp eax, r14d
je 0x180024424
mov rax, qword [0x180035ca0]
mov r9d, 3
mov r8d, ebx
mov rcx, qword [rax + 0x20]
mov rdx, rdi
call fcn.18001879c
jmp 0x1800244c0
mov ebx, 0xbf
jmp 0x1800244cd
mov eax, dword [0x180035a74]
cmp eax, r14d
jne case.0x180023d35.34
mov r9d, 4
cmp dword [rsp + 0x130], r9d
jne case.0x180023d35.34
mov edx, dword [rdi]
lea rcx, [0x18001b514]
mov r8, rsi
call fcn.1800068e0
mov ebx, eax
jmp 0x180024550
mov rcx, rdi
call fcn.18000cda8
jmp 0x18002448d
mov eax, dword [rsp + 0x130]
cmp eax, r14d
je 0x180024485
dec eax
mov byte [rax + rdi], r14b
mov rcx, rdi
call fcn.180020628
mov ebx, eax
cmp eax, r14d
jmp 0x1800244d0
mov ebx, r14d
lock add dword [0x180035c40], r15d
lea rcx, [0x180019e18]
xor edx, edx
call fcn.18000ac68
cmp rax, r14
jne 0x1800244c4
lock add dword [0x180035c40], 0xffffffff
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800244cd
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_CloseHandle]
cmp ebx, r14d
jne 0x180024550
mov rax, qword [0x180035c60]
xor r8d, r8d
mov rdx, rsi
lea rcx, [rax + r12 + 0x39e33]
call fcn.18000ae98
jmp 0x180024550
mov r8d, r15d
cmp dword [rsp + 0x130], r15d
jbe case.0x180023d35.34
mov eax, dword [rsp + 0x130]
lea r9, [rsp + 0x38]
mov rdx, rdi
mov ecx, r11d
mov qword [rsp + 0x38], r14
mov byte [rax + rdi - 1], r14b
call fcn.18000f79c
mov ebx, eax
cmp eax, r14d
jne 0x180024550
lea r8, [rsp + 0x38]
mov r9d, 8
mov edx, 0x100
mov rcx, rbp
call fcn.1800180fc
cmp eax, r14d
je 0x18002457c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1800154f0
cmp ebx, 0xffffffff
jne 0x18002455d
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, r14d
je 0x18002457c
mov rcx, qword [0x180035c60]
mov r8d, ebx
mov rdx, rsi
lea rcx, [rcx + r12 + 0x39e33]
call fcn.18000ae98
lea r11, [rsp + 0xe0]
mov eax, r15d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret