Function at 0x180003da0
Capabilities:
Delete file
Encode data using xor
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r12, rdx
mov qword [rbp - 0x70], rdx
lea rbx, [0x180038160]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
mov r13, 0xffffffffffffffff
mov r8, r13
nop dword [rax]
inc r8
cmp word [rbx + r8*2], si
jne 0x180003e20
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.180006110
nop
mov dword [rsp + 0x38], 0xf31df309
mov dword [rsp + 0x3c], 0xf321f332
mov dword [rsp + 0x40], 0xf32a
mov edx, esi
mov r8d, 0xcab
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x38]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 5
jb 0x180003e60
mov word [rsp + 0x42], si
lea rax, [rsp + 0x38]
mov rdx, r13
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180003e90
mov rcx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180003eda
lea rdi, [rdx + rcx]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp r8, 8
cmovae rbx, qword [rbp - 0x20]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi*2], si
jmp 0x180003eed
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.180006f80
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], si
xor r15b, r15b
mov byte [rsp + 0x30], r15b
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov r8, qword [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.180006110
nop
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.180006860
test eax, eax
jne 0x180004621
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180003fa1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003f9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003f9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x180003fb9
lock inc dword [rcx + 8]
mov rcx, qword [rbp - 0x48]
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x60], xmm0
test rcx, rcx
je 0x180003fcf
lock inc dword [rcx + 8]
mov rcx, qword [rbp - 0x48]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
test rcx, rcx
je 0x18000400d
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18000400d
mov rbx, qword [rbp - 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18000400d
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + htons]
nop
nop dword [rax]
mov r14, qword [rbp - 0x60]
movabs rax, 0x7ffffffffffffffe
movabs rdx, 0x7fffffffffffffff
nop dword [rax + rax]
test r14, r14
je 0x180004460
lea rdi, [r14 + 0x20]
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x180004057
mov rdi, qword [rdi]
cmp rsi, 8
jae 0x18000406b
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x40], xmm0
mov ebx, 7
jmp 0x1800040e6
mov rbx, rsi
or rbx, 7
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x18000461b
add rcx, rcx
cmp rcx, 0x1000
jb 0x1800040c1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18000461b
mov rcx, rax
call fcn.180029c40
mov rcx, rax
test rax, rax
je 0x180004459
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800040cf
test rcx, rcx
je 0x1800040cd
call fcn.180029c40
jmp 0x1800040cf
xor eax, eax
mov qword [rbp - 0x40], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x30], rsi
mov r9, r12
cmp qword [r12 + 0x18], 8
jb 0x1800040fd
mov r9, qword [r12]
mov rax, r13
inc rax
cmp word [r9 + rax*2], 0
jne 0x180004100
lea rcx, [rbp - 0x40]
mov rdi, qword [rbp - 0x40]
cmp rbx, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.180006e90
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x180004325
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
lea r15, [rbp - 0x40]
cmp rbx, 8
cmovae r15, rdi
cmp rsi, 8
jae 0x180004167
movups xmm0, xmmword [r15]
movups xmmword [rbp], xmm0
lea ebx, [rax + 7]
jmp 0x1800041f2
mov rbx, rsi
or rbx, 7
movabs rcx, 0x7ffffffffffffffe
cmp rbx, rcx
cmova rbx, rcx
lea rcx, [rbx + 1]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
ja 0x18000462e
add rcx, rcx
cmp rcx, 0x1000
jb 0x1800041d1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18000462e
mov rcx, rax
call fcn.180029c40
mov rcx, rax
test rax, rax
je 0x180004452
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800041db
test rcx, rcx
je 0x1800041db
call fcn.180029c40
mov qword [rbp], rax
lea r8, [rsi*2 + 2]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x18], rbx
lea rax, [rbp]
mov r8, qword [rbp]
cmp rbx, 8
cmovae rax, r8
mov rcx, qword [rsp + 0x48]
lea r9, [rax + rcx*2]
lea rcx, [rbp]
cmovae rcx, r8
lea rax, [rbp]
cmovae rax, r8
mov rdx, rcx
sub rdx, rax
sar rdx, 1
sub r9, rcx
sar r9, 1
mov rax, rsi
sub rax, rdx
cmp rax, r9
cmovb r9, rax
lea rax, [rbp]
cmp rbx, 8
cmovae rax, r8
lea rcx, [rax + rdx*2]
sub rsi, r9
mov qword [rbp + 0x10], rsi
sub rsi, rdx
lea r8, [rsi*2 + 2]
lea rdx, [rcx + r9*2]
call sub.VCRUNTIME140.dll_memmove
mov rdi, qword [r12 + 0x10]
mov rax, r12
cmp qword [r12 + 0x18], 8
jb 0x18000427a
mov rax, qword [r12]
lea r9, [rbp]
mov r10, qword [rbp]
mov r11, qword [rbp + 0x18]
cmp r11, 8
cmovae r9, r10
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
cmp rdi, rbx
cmovb rcx, rdi
test rcx, rcx
je 0x1800043ad
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x1800042dc
sub r9, rax
cmp dx, r8w
ja 0x1800042dc
cmp rcx, 1
je 0x1800043ad
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1800042ba
movzx r15d, byte [rsp + 0x30]
cmp r11, 8
jb 0x18000431d
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x180004315
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004452
mov rcx, r10
call fcn.180029c7c
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x28]
cmp rbx, 8
jb 0x180004360
lea rdx, [rbx*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180004358
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004459
mov rcx, rdi
call fcn.180029c7c
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 0x40]
call fcn.180029ae0
cmp eax, 0x12
je 0x1800043ec
test eax, eax
jne 0x180004634
cmp word [rbp + 0x7c], 0x2e
jne 0x18000439a
movzx eax, word [rbp + 0x7e]
test ax, ax
je 0x180004360
cmp ax, 0x2e
jne 0x18000439a
cmp word [rbp + 0x80], 0
je 0x180004360
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.180002ad0
xor esi, esi
jmp 0x180004014
cmp rbx, rdi
jb 0x1800042dc
ja 0x1800042dc
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.180006110
mov r15b, 1
mov byte [rsp + 0x30], r15b
mov r11, qword [rbp + 0x18]
mov r10, qword [rbp]
jmp 0x1800042e2
xor esi, esi
mov r14d, esi
mov qword [rbp - 0x60], rsi
mov rbx, qword [rbp - 0x58]
mov qword [rbp - 0x58], rsi
test rbx, rbx
movabs rax, 0x7ffffffffffffffe
movabs rdx, 0x7fffffffffffffff
je 0x180004030
mov eax, r13d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180004010
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180004010
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
jmp 0x180004010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x18000449a
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18000449a
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18000449a
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + htons]
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1800044d2
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800044d2
mov rbx, qword [rbp - 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r13d
cmp r13d, 1
jne 0x1800044d2
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + htons]
test r15b, r15b
je 0x1800044ec
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x18000452f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000452a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000452a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], si
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x180004582
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000457d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000457d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
mov rdx, qword [r12 + 0x18]
cmp rdx, 8
jb 0x1800045cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x1800045ca
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180004614
mov rcx, r8
call fcn.180029c7c
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], 7
mov word [r12], si
mov al, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.180029c20
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800014a0
nop
lea r8, [rsp + 0x50]
mov edx, eax
call fcn.1800028c0
nop
call fcn.1800014a0
nop
mov edx, eax
call fcn.1800027d0
int3