Function at 0x180003294
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, 0x110
mov rsi, qword [rsp + 0x168]
xor r13d, r13d
add edx, 0xfffffefe
mov rdi, r9
mov r10d, r8d
mov rbp, rcx
lea r15d, [r13 + 1]
mov ebx, r13d
lea r14, [0x18005dc7f]
mov r8d, r13d
mov r9d, r13d
cmp edx, 0x29
ja case.0x1800032fd.275
mov eax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x3a50]
add rcx, rdx
jmp rcx
mov rdx, rsi
mov rcx, rdi
call fcn.180002d40
jmp 0x1800038dd
cmp rdi, r13
je case.0x1800032fd.275
cmp dword [rsp + 0x160], r13d
je case.0x1800032fd.275
lea rcx, [rsp + 0x78]
xor edx, edx
mov r8d, 0x8c
mov qword [rsp + 0x70], r13
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180009724
mov ebx, eax
cmp eax, r13d
jne 0x180003a0c
lea r8, [rsp + 0x70]
mov r9d, 0x94
mov edx, 0x10
mov rcx, rbp
call fcn.180010f14
cmp eax, r13d
je 0x180003382
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.180010fa4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180003a0c
lea r8, [rsp + 0x148]
lea rdx, [rsp + 0x60]
lea rcx, [0x18005d1c0]
call fcn.180004ea4
mov ebx, eax
cmp eax, r13d
jne 0x180003a0c
mov rbp, qword [rsp + 0x60]
mov r8d, dword [0x1800593d0]
mov edx, dword [rsp + 0x148]
mov rcx, rbp
xor r9d, r9d
call fcn.180044b7c
mov rcx, qword [0x180059290]
cmp rcx, r13
je 0x1800033ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x180059290], r13
mov r8d, dword [rsp + 0x160]
mov r9d, 5
mov rdx, rdi
mov rcx, rbp
call fcn.180017098
mov ebx, eax
cmp eax, r13d
jne 0x180003420
call fcn.180004730
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.1800016f4
mov r8, rbp
jmp 0x1800037d5
mov r9d, r15d
mov edx, dword [rsp + 0x160]
mov rcx, rdi
call fcn.180001978
jmp 0x1800038ec
mov eax, r15d
lock xadd dword [0x1800592a0], eax
add eax, r15d
cmp eax, r15d
jle 0x18000345f
lock add dword [0x1800592a0], 0xffffffff
jmp case.0x1800032fd.275
mov edx, 0x117
mov rcx, rdi
call fcn.18000275c
jmp 0x1800038dd
mov r8d, r15d
mov edx, dword [rsp + 0x160]
mov rcx, rdi
call fcn.180001f34
jmp 0x1800038ec
call fcn.180001818
jmp 0x1800038ec
call fcn.180001860
jmp 0x1800038ec
xor edx, edx
lea rcx, [0x18000124c]
jmp 0x1800038d5
xor edx, edx
lea rcx, [0x1800024b0]
jmp 0x1800038d5
xor edx, edx
lea rcx, [fcn.1800024d4]
jmp 0x1800038d5
xor edx, edx
lea rcx, [0x180002648]
jmp 0x1800038d5
mov rax, qword [0x180059338]
cmp rax, r13
jne 0x1800034f5
call fcn.180009ff0
mov qword [0x180059338], rax
cmp rax, r13
je case.0x1800032fd.275
cmp rbp, r13
je 0x180003a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8, qword [0x180059338]
mov edx, 0x10
lea r9d, [r15 + rax]
mov rcx, rbp
call fcn.180010f14
cmp eax, r13d
je 0x180003a2c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.180010fa4
jmp 0x180003a2c
mov edx, dword [rsp + 0x160]
mov rcx, rdi
call fcn.180010b6c
jmp case.0x1800032fd.275
cmp qword [0x1800593c8], r13
je 0x180003566
lea rcx, [rsp + 0x40]
call fcn.180010ccc
jmp 0x180003569
mov eax, r13d
mov dword [rsp + 0x148], eax
cmp eax, r13d
je 0x1800035bd
cmp rbp, r13
je 0x1800035a4
mov r8, qword [rsp + 0x40]
mov r9d, eax
mov edx, 0x10
mov rcx, rbp
call fcn.180010f14
cmp eax, r13d
je 0x1800035a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.180010fa4
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp case.0x1800032fd.275
mov ebx, 0x12
jmp 0x180003a1e
cmp qword [0x180059280], r13
jne case.0x1800032fd.275
cmp dword [rsp + 0x160], 0x10
jne 0x1800035eb
mov rcx, rdi
call fcn.180002588
jmp 0x1800038ec
mov ebx, 0x57
jmp 0x180003a0c
mov rcx, r13
mov ebx, 0x426
xchg qword [0x180059280], rcx
cmp rcx, r13
je 0x1800036ea
call fcn.18001f5c0
mov ebx, r13d
jmp 0x1800036ea
mov ebx, r15d
cmp ebx, r13d
cmovne rbp, r13
mov rcx, rbp
call fcn.180002f5c
jmp 0x1800038dd
cmp rdi, r13
jne 0x180003644
lea rcx, [0x18005d1b7]
xor edx, edx
call fcn.180004f88
mov dword [0x18005949c], r13d
mov dword [0x1800595f0], r13d
xor ecx, ecx
mov dword [0x180059588], r13d
call fcn.180002f5c
mov rcx, rdi
call fcn.18001d038
mov r9d, 4
mov ebx, r15d
movzx r8d, word [0x180058764]
mov ecx, dword [0x180058760]
mov dword [0x18005949c], ebx
mov eax, 0xfffb
mov dword [0x1800595f0], ebx
xor edx, edx
and r8w, ax
mov dword [0x180059588], ebx
mov byte [rsp + 0x20], 0xff
or r8w, r9w
mov r9b, 0xff
call fcn.180005470
mov ebx, eax
cmp rdi, r13
je 0x1800036ea
mov r8d, dword [0x1800593d0]
mov edx, dword [rsp + 0x160]
xor r9d, r9d
mov rcx, rdi
call fcn.180044b30
mov r8d, dword [rsp + 0x160]
lea rcx, [0x18005d1b7]
mov r9d, 3
mov rdx, rdi
call fcn.180004f88
cmp ebx, r13d
jmp 0x1800038f1
mov rdx, r15
lea rcx, [0x18000299c]
jmp 0x1800038d5
xor edx, edx
lea rcx, [0x180001cb8]
jmp 0x1800038d5
cmp rdi, r13
je case.0x1800032fd.275
cmp rsi, r13
je case.0x1800032fd.275
mov r9d, 4
cmp dword [rsp + 0x160], r9d
jne case.0x1800032fd.275
mov r8d, dword [rdi]
mov rdx, rsi
mov rcx, r14
call fcn.1800016f4
jmp case.0x1800032fd.275
mov rcx, qword [0x180059300]
lea r8, [rsp + 0x148]
lea rdx, [rsp + 0x40]
call fcn.180017030
mov ebx, eax
cmp eax, r13d
jne 0x180003a0c
mov r9d, dword [rsp + 0x148]
mov r8, qword [rsp + 0x40]
mov edx, 0x10
mov rcx, rbp
call fcn.180010f14
cmp eax, r13d
je 0x18000379b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.180010fa4
mov r8, qword [rsp + 0x40]
jmp 0x1800037d5
mov rcx, qword [0x180059300]
call fcn.180016ea4
mov rdi, rax
cmp rax, r13
je 0x180003a0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r13d
jne 0x1800037d2
mov rcx, rdi
call fcn.180019800
mov ebx, eax
mov r8, rdi
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180003a0c
cmp rdi, r13
je case.0x1800032fd.275
mov edx, dword [rsp + 0x160]
cmp edx, r13d
je case.0x1800032fd.275
mov r8d, r15d
jmp 0x180003868
cmp rdi, r13
je case.0x1800032fd.275
mov edx, dword [rsp + 0x160]
cmp edx, r13d
je case.0x1800032fd.275
mov r8d, 7
jmp 0x180003868
cmp rdi, r13
je case.0x1800032fd.275
mov edx, dword [rsp + 0x160]
cmp edx, r13d
je case.0x1800032fd.275
mov r8d, 3
jmp 0x180003868
cmp rdi, r13
je case.0x1800032fd.275
mov edx, dword [rsp + 0x160]
cmp edx, r13d
je case.0x1800032fd.275
mov r8d, 0xd
mov rcx, rdi
call fcn.180002e3c
jmp 0x1800038dd
xor edx, edx
lea rcx, [0x180002e00]
jmp 0x1800038d5
cmp rdi, r13
je case.0x1800032fd.275
mov edx, dword [rsp + 0x160]
cmp edx, r13d
je case.0x1800032fd.275
mov rcx, rdi
call fcn.180002ff4
jmp 0x1800038ec
mov eax, dword [0x18005927c]
cmp eax, r13d
jne case.0x1800032fd.275
cmp rdi, r13
je case.0x1800032fd.275
mov r9d, 4
cmp dword [rsp + 0x160], r9d
jne case.0x1800032fd.275
mov edx, dword [rdi]
lea rcx, [0x180002698]
mov r8, rsi
call fcn.180002c60
mov ebx, eax
jmp 0x180003a0c
mov rcx, rdi
call fcn.180003118
mov ebx, eax
cmp eax, r13d
jne 0x180003a0c
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.1800016f4
jmp 0x180003a0c
mov ebx, r15d
cmp rdi, r13
je case.0x1800032fd.275
cmp dword [rsp + 0x160], r15d
jbe case.0x1800032fd.275
mov eax, dword [rsp + 0x160]
xor edx, edx
mov r8d, r10d
lea ecx, [rdx + 0x40]
mov qword [rsp + 0x50], r13
mov byte [rax + rdi - 1], r13b
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
cmp rax, r13
je 0x1800039d3
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, 0xffffffff80000001
cmp ebx, r13d
je 0x18000396b
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
jmp 0x180003971
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
cmp eax, r13d
jne 0x1800039c8
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x180059438]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x58]
mov r8, r12
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, r13d
je 0x1800039b5
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x1800039bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800039db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, r13d
jne 0x180003a0c
mov r9d, 8
lea r8, [rsp + 0x50]
mov rcx, rbp
lea edx, [r9 + 8]
call fcn.180010f14
cmp eax, r13d
je 0x180003a0c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.180010fa4
cmp ebx, 0xffffffff
jne 0x180003a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, r13d
je 0x180003a2c
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call fcn.1800016f4
lea r11, [rsp + 0x110]
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