Function at 0x140012880
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 0x1400128fc
cmp word [rsp + rdi*2 + 0x5a], 0
je 0x140012902
cmp word [rsp + rdi*2 + 0x5c], 0
je 0x140012908
cmp word [rsp + rdi*2 + 0x5e], 0
je 0x14001290e
cmp word [rsp + rdi*2 + 0x60], 0
je 0x140012911
add rdi, 5
cmp rdi, 0x108
jne 0x1400128c0
mov edi, 0x104
jmp 0x14001291e
add rdi, 0xfffffffffffffffc
jmp 0x140012911
add rdi, 0xfffffffffffffffd
jmp 0x140012911
add rdi, 0xfffffffffffffffe
jmp 0x140012911
dec rdi
cmp rdi, 0x105
jae 0x140012eec
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 0x140012edb
lea r12, [rsp + rdi*2]
add r12, 0x60
movabs r13, 0x100000000
xor ebx, ebx
lea rdi, [rsp + 0x48]
jmp 0x1400129bb
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 0x140012c04
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 0x1400129f0
mov eax, ebp
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
jne 0x140012a10
movzx ecx, ax
cmp ecx, 0xdbff
jbe 0x140012b30
xor ebx, ebx
jmp 0x140012c30
cmp rsi, r12
je 0x140012c70
movzx eax, word [rsi]
add rsi, 2
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
je 0x1400129d2
movzx eax, ax
shl rax, 0x10
mov r15, rax
shr r15, 0x10
cmp r15d, 0x7f
ja 0x140012ba0
mov r14, qword [rsp + 0x58]
cmp r14, qword [rsp + 0x48]
jne 0x140012a44
mov rcx, rdi
mov rdx, r14
call fcn.140096fe0
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 0x140012c75
lea rdx, [rsi + 2]
movzx eax, word [rsi]
mov r8d, eax
and r8d, 0xf800
cmp r8d, 0xd800
jne 0x140012af0
cmp eax, 0xdbff
ja 0x140012c1c
cmp rdx, r12
je 0x140012b5a
movzx edx, word [rsi + 2]
add rsi, 4
mov r8d, edx
add r8d, 0x2000
movzx r8d, r8w
cmp r8d, 0xfc00
jb 0x140012c23
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 0x140012b0b
jmp 0x140012ba0
shl rax, 0x10
mov rsi, rdx
mov r15, rax
shr r15, 0x10
cmp r15d, 0x80
jae 0x140012ba0
cmp r14, qword [rsp + 0x48]
jne 0x140012a50
mov rcx, rdi
mov rdx, r14
call fcn.140096fe0
mov rcx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
jmp 0x140012a50
cmp rsi, r12
je 0x140012b5a
movzx ecx, word [rsi]
add rsi, 2
mov edx, ecx
add edx, 0x2000
movzx edx, dx
mov bx, 1
cmp edx, 0xfc00
jae 0x140012b64
mov ebp, ecx
jmp 0x140012c30
xor ebx, ebx
mov rsi, r12
jmp 0x140012c30
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 0x140012a28
nop word cs:[rax + rax]
mov dword [rsp + 0x44], 0
cmp r15d, 0x800
jb 0x14001296a
cmp r15d, 0x10000
jae 0x140012bc2
xor ebx, ebx
jmp 0x140012c3e
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 0x140012986
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.140012ef0
mov r15, qword [rsp + 0x58]
jmp 0x14001299e
xor ebx, ebx
mov rsi, rdx
jmp 0x140012c30
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 0x140012988
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test r14, r14
je 0x140012eb0
movabs rax, 0x8000000000000000
cmp r12, rax
je 0x140012ec6
test r14, r14
js 0x140012eec
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, r14
call fcn.140080d30
test rax, rax
je 0x140012eec
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.1400124f0
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 0x140012d4a
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
cmp rbx, 0xffffffffffffffff
je 0x140012eb0
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 0x140012eb0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
cmp eax, 1
jne 0x140012eb0
movzx eax, byte [0x14024a149]
xor ecx, ecx
mov rdx, r14
call fcn.140080d30
test rax, rax
je 0x140012eec
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.1400124f0
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 0x140012e6c
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
cmp rbx, 0xffffffffffffffff
je 0x140012eb0
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 0x140012eb0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
cmp eax, 1
test r12, r12
je 0x140012ec6
mov rcx, qword [0x14024a138]
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.140012ef0
jmp 0x14001294f
ud2