Function at 0x140042550
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
xor edi, edi
lea rsi, [rsp + 0x60]
mov ebx, 0x208
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
nop
cmp word [rsp + rdi*2 + 0x60], 0
je 0x1400425de
cmp word [rsp + rdi*2 + 0x62], 0
je 0x1400425c9
cmp word [rsp + rdi*2 + 0x64], 0
je 0x1400425ce
cmp word [rsp + rdi*2 + 0x66], 0
je 0x1400425d4
cmp word [rsp + rdi*2 + 0x68], 0
je 0x1400425da
add rdi, 5
add rbx, 0xfffffffffffffff6
jne 0x140042590
mov edi, 0x104
jmp 0x1400425eb
inc rdi
jmp 0x1400425de
add rdi, 2
jmp 0x1400425de
add rdi, 3
jmp 0x1400425de
add rdi, 4
cmp rdi, 0x105
jae 0x140042ba7
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 0x140042b96
lea r12, [rsp + rdi*2]
add r12, 0x60
movabs r13, 0x100000000
xor ebx, ebx
lea rdi, [rsp + 0x48]
jmp 0x1400426ae
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
mov eax, 3
mov r14d, 4
xor ebx, ebx
and r15b, 0x3f
or r15b, 0x80
mov byte [rsp + rax + 0x44], r15b
mov rax, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
sub rax, r15
cmp rax, r14
jb 0x1400428bd
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 0x1400426e0
mov eax, ebp
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
jne 0x140042700
movzx ecx, ax
cmp ecx, 0xdbff
jbe 0x140042820
xor ebx, ebx
jmp 0x1400428f0
cmp rsi, r12
je 0x140042928
movzx eax, word [rsi]
add rsi, 2
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
je 0x1400426c5
shl eax, 0x10
mov r15, rax
shr r15, 0x10
cmp r15d, 0x7f
ja 0x140042880
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rsp + 0x48]
jne 0x14004272d
mov rcx, rdi
call fcn.1400e6eb0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
nop word cs:[rax + rax]
mov byte [rcx + rdx], r15b
inc rdx
mov qword [rsp + 0x58], rdx
cmp rsi, r12
je 0x14004292d
lea r8, [rsi + 2]
movzx eax, word [rsi]
mov r9d, eax
and r9d, 0xf800
cmp r9d, 0xd800
jne 0x1400427e0
cmp eax, 0xdbff
ja 0x1400428d5
cmp r8, r12
je 0x14004284a
movzx r8d, word [rsi + 2]
add rsi, 4
mov r9d, r8d
add r9d, 0x2000
movzx r9d, r9w
cmp r9d, 0xfc00
jb 0x1400428dc
movzx r8d, r8w
and eax, 0x3ff
and r8d, 0x3ff
shl rax, 0x1a
shl r8d, 0x10
add rax, r13
or rax, r8
mov r15, rax
shr r15, 0x10
cmp r15d, 0x80
jb 0x1400427fa
jmp 0x140042880
shl eax, 0x10
mov rsi, r8
mov r15, rax
shr r15, 0x10
cmp r15d, 0x80
jae 0x140042880
cmp rdx, qword [rsp + 0x48]
jne 0x140042740
mov rcx, rdi
call fcn.1400e6eb0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
jmp 0x140042740
cmp rsi, r12
je 0x14004284a
movzx ecx, word [rsi]
add rsi, 2
mov edx, ecx
add edx, 0x2000
movzx edx, dx
mov bx, 1
cmp edx, 0xfc00
jae 0x140042854
mov ebp, ecx
jmp 0x1400428f0
xor ebx, ebx
mov rsi, r12
jmp 0x1400428f0
movzx ecx, cx
and eax, 0x3ff
and ecx, 0x3ff
shl rax, 0x1a
shl ecx, 0x10
add rax, r13
or rax, rcx
mov r15, rax
shr r15, 0x10
cmp r15d, 0x7f
jbe 0x140042714
mov dword [rsp + 0x44], 0
cmp r15d, 0xffff
ja 0x140042637
cmp r15d, 0x7ff
ja 0x1400428b9
shr eax, 0x16
and al, 0x1f
or al, 0xc0
mov byte [rsp + 0x44], al
mov eax, 1
mov r14d, 2
jmp 0x14004266c
xor ebx, ebx
jmp 0x1400428fe
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.1400424c0
mov r15, qword [rsp + 0x58]
jmp 0x140042691
xor ebx, ebx
mov rsi, r8
jmp 0x1400428f0
mov bx, 1
mov ebp, r8d
nop word cs:[rax + 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
mov eax, 2
mov r14d, 3
jmp 0x14004266e
mov rdx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test rdx, rdx
je 0x140042b6b
movabs rax, 0x8000000000000000
cmp r12, rax
je 0x140042b81
test rdx, rdx
js 0x140042ba7
movzx eax, byte [0x14017a148]
xor ecx, ecx
mov rdi, rdx
call fcn.1400dbb10
test rax, rax
je 0x140042ba7
mov rbx, rax
mov rcx, rax
mov rdx, rsi
mov r14, rdi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, rbx
add rax, rdi
mov qword [rsp + 0x60], rbx
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.140042bb0
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 r14, rax
cmp qword [rsp + 0x48], 0
je 0x140042a05
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp r14, 0xffffffffffffffff
je 0x140042b6b
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, r14
mov edx, 3
mov r9d, 0x2a
call sub.KERNEL32.dll_SetFileInformationByHandle
cmp eax, 1
jne 0x140042b6b
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
cmp eax, 1
jne 0x140042b6b
movzx eax, byte [0x14017a148]
xor ecx, ecx
mov rdx, rdi
call fcn.1400dbb10
test rax, rax
je 0x140042ba7
mov rbx, rax
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, rbx
add rax, rdi
mov qword [rsp + 0x60], rbx
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.140042bb0
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 rdi, rax
cmp qword [rsp + 0x48], 0
je 0x140042b27
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp rdi, 0xffffffffffffffff
je 0x140042b6b
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov rcx, rdi
mov edx, 4
mov r9d, 1
call sub.KERNEL32.dll_SetFileInformationByHandle
cmp eax, 1
jne 0x140042b6b
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
cmp eax, 1
test r12, r12
je 0x140042b81
mov rcx, qword [0x14017a0c0]
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.1400424c0
jmp 0x14004261c
ud2