Function at 0x14003ff90
Capabilities:
Self delete using alternate data streams

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
lea rsi, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call sub.KERNEL32.dll_GetModuleFileNameW
mov edi, 4
nop dword [rax]
cmp word [rsp + rdi*2 + 0x58], 0
je 0x14004000c
cmp word [rsp + rdi*2 + 0x5a], 0
je 0x140040012
cmp word [rsp + rdi*2 + 0x5c], 0
je 0x140040018
cmp word [rsp + rdi*2 + 0x5e], 0
je 0x14004001e
cmp word [rsp + rdi*2 + 0x60], 0
je 0x140040021
add rdi, 5
cmp rdi, 0x108
jne 0x14003ffd0
mov edi, 0x104
jmp 0x14004002e
add rdi, 0xfffffffffffffffc
jmp 0x140040021
add rdi, 0xfffffffffffffffd
jmp 0x140040021
add rdi, 0xfffffffffffffffe
jmp 0x140040021
dec rdi
cmp rdi, 0x105
jae 0x1400405fc
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rax, rdi
shr rax, 1
mov r8d, edi
and r8d, 1
add r8, rax
jne 0x1400405eb
lea r12, [rsp + rdi*2]
add r12, 0x60
movabs r13, 0x100000000
xor ebx, ebx
lea rdi, [rsp + 0x48]
jmp 0x1400400cb
shr eax, 0x16
or al, 0xc0
mov byte [rsp + 0x44], al
and r15b, 0x3f
or r15b, 0x80
mov byte [rsp + 0x45], r15b
mov r14d, 2
xor ebx, ebx
mov rax, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
sub rax, r15
cmp rax, r14
jb 0x140040314
mov rcx, qword [rsp + 0x50]
add rcx, r15
lea rdx, [rsp + 0x44]
mov r8, r14
call sub.msvcrt.dll_memcpy
add r15, r14
mov qword [rsp + 0x58], r15
test bx, bx
je 0x140040100
mov eax, ebp
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
jne 0x140040120
movzx ecx, ax
cmp ecx, 0xdbff
jbe 0x140040240
xor ebx, ebx
jmp 0x140040340
cmp rsi, r12
je 0x140040380
movzx eax, word [rsi]
add rsi, 2
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
je 0x1400400e2
movzx eax, ax
shl rax, 0x10
mov r15, rax
shr r15, 0x10
cmp r15d, 0x7f
ja 0x1400402b0
mov r14, qword [rsp + 0x58]
cmp r14, qword [rsp + 0x48]
jne 0x140040154
mov rcx, rdi
mov rdx, r14
call fcn.1400fa7a0
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
nop dword [rax]
mov byte [rcx + r14], r15b
inc r14
mov qword [rsp + 0x58], r14
cmp rsi, r12
je 0x140040385
lea rdx, [rsi + 2]
movzx eax, word [rsi]
mov r8d, eax
and r8d, 0xf800
cmp r8d, 0xd800
jne 0x140040200
cmp eax, 0xdbff
ja 0x14004032c
cmp rdx, r12
je 0x14004026a
movzx edx, word [rsi + 2]
add rsi, 4
mov r8d, edx
add r8d, 0x2000
movzx r8d, r8w
cmp r8d, 0xfc00
jb 0x140040333
movzx edx, dx
and eax, 0x3ff
and edx, 0x3ff
shl rax, 0x1a
shl rdx, 0x10
add rax, r13
or rax, rdx
mov r15, rax
shr r15, 0x10
cmp r15d, 0x80
jb 0x14004021b
jmp 0x1400402b0
shl rax, 0x10
mov rsi, rdx
mov r15, rax
shr r15, 0x10
cmp r15d, 0x80
jae 0x1400402b0
cmp r14, qword [rsp + 0x48]
jne 0x140040160
mov rcx, rdi
mov rdx, r14
call fcn.1400fa7a0
mov rcx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
jmp 0x140040160
cmp rsi, r12
je 0x14004026a
movzx ecx, word [rsi]
add rsi, 2
mov edx, ecx
add edx, 0x2000
movzx edx, dx
mov bx, 1
cmp edx, 0xfc00
jae 0x140040274
mov ebp, ecx
jmp 0x140040340
xor ebx, ebx
mov rsi, r12
jmp 0x140040340
movzx ecx, cx
and eax, 0x3ff
and ecx, 0x3ff
shl rax, 0x1a
shl rcx, 0x10
add rax, r13
or rax, rcx
mov r15, rax
shr r15, 0x10
cmp r15d, 0x7f
jbe 0x140040138
nop word cs:[rax + rax]
mov dword [rsp + 0x44], 0
cmp r15d, 0x800
jb 0x14004007a
cmp r15d, 0x10000
jae 0x1400402d2
xor ebx, ebx
jmp 0x14004034e
mov rcx, rax
shr rcx, 0x22
or cl, 0xf0
mov byte [rsp + 0x44], cl
mov rcx, rax
shr rcx, 0x1c
and cl, 0x3f
or cl, 0x80
mov byte [rsp + 0x45], cl
shr eax, 0x16
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x46], al
and r15b, 0x3f
or r15b, 0x80
mov byte [rsp + 0x47], r15b
mov r14d, 4
jmp 0x140040096
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.14004b950
mov r15, qword [rsp + 0x58]
jmp 0x1400400ae
xor ebx, ebx
mov rsi, rdx
jmp 0x140040340
mov bx, 1
mov ebp, edx
nop dword [rax]
mov dword [rsp + 0x44], 0
mov r15d, 0xfffd
mov eax, r15d
shr eax, 0xc
or al, 0xe0
mov byte [rsp + 0x44], al
mov eax, r15d
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x45], al
and r15b, 0x3f
or r15b, 0x80
mov byte [rsp + 0x46], r15b
mov r14d, 3
jmp 0x140040098
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test r14, r14
je 0x1400405c0
movabs rax, 0x8000000000000000
cmp r12, rax
je 0x1400405d6
test r14, r14
js 0x1400405fc
movzx eax, byte [0x140188180]
xor ecx, ecx
mov rdx, r14
call fcn.1400f2120
test rax, rax
je 0x1400405fc
mov rdi, rax
mov rcx, rax
mov rdx, rsi
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rax, rdi
add rax, r14
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], 0
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.14003fc00
mov r15, qword [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov rcx, r15
mov edx, 0x10000
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
cmp qword [rsp + 0x48], 0
je 0x14004045a
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
cmp rbx, 0xffffffffffffffff
je 0x1400405c0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0x12
movaps xmm0, xmmword [str.:svcmsrp]
movups xmmword [rsp + 0x74], xmm0
mov word [rsp + 0x84], 0x63
lea r8, [rsp + 0x60]
mov rcx, rbx
mov edx, 3
mov r9d, 0x2a
call sub.KERNEL32.dll_SetFileInformationByHandle
cmp eax, 1
jne 0x1400405c0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
cmp eax, 1
jne 0x1400405c0
movzx eax, byte [0x140188180]
xor ecx, ecx
mov rdx, r14
call fcn.1400f2120
test rax, rax
je 0x1400405fc
mov rdi, rax
mov rcx, rax
mov rdx, rsi
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rax, rdi
add rax, r14
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], 0
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.14003fc00
mov r14, qword [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov rcx, r14
mov edx, 0x10000
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
cmp qword [rsp + 0x48], 0
je 0x14004057c
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
cmp rbx, 0xffffffffffffffff
je 0x1400405c0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov rcx, rbx
mov edx, 4
mov r9d, 1
call sub.KERNEL32.dll_SetFileInformationByHandle
cmp eax, 1
jne 0x1400405c0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
cmp eax, 1
test r12, r12
je 0x1400405d6
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
xor edx, edx
call fcn.14004b950
jmp 0x14004005f
ud2