Function at 0x1403dee30
Capabilities:
Create process on windows
Delete file
Get common file path
Query environment variable
Self delete

Disassembly:
push rdi
push r12
push r13
push r15
push rbp
sub rsp, 0x200
mov rdi, rdx
mov rax, qword [0x14194d6d8]
xor ebp, ebp
mov rdx, qword [rcx]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
test rdx, rdx
je 0x1403dee68
and byte [rdi + 0x292], 0xc7
mov rdx, qword [rcx]
cmp rdx, 6
ja 0x1403df805
mov edx, edx
lea r8, [0x140000000]
mov byte [rsp + 0xe8], 0xa
movzx eax, word [r8 + rdx*2 + 0x59f48c]
lea rax, [r8 + rax + 0x3dee96]
jmp rax
mov edx, dword [0x141a6ae3c]
test edx, edx
je 0x1403df290
test byte [rdi + 0x298], 0x80
jne 0x1403df5ed
movsx r9, word [rdi + 0x278]
xor r15d, r15d
xor edx, edx
lea r8, [rsp + 0xe0]
lea r13, [r9 + r9*2 + 0x28]
mov rcx, r13
call fcn.14035a450
test eax, eax
jne 0x1403df5e8
xor edx, edx
mov r8, r13
mov rcx, qword [rsp + 0xe0]
call fcn.14042ad60
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqu xmmword [rsp + 0x80], xmm0
movdqu xmmword [rsp + 0x90], xmm0
movdqu xmmword [rsp + 0xa0], xmm0
movdqu xmmword [rsp + 0xb0], xmm0
movq qword [rsp + 0xc0], xmm0
mov r10b, byte [rdi + 0x292]
mov dword [rsp + 0x60], 0x68
test r10b, 0x20
je 0x1403df3ec
test r10b, 8
jne 0x1403df341
mov rdx, r13
mov rcx, qword [rsp + 0xe0]
mov r8, qword [rdi + 0xd0]
call fcn.1403dfa50
jmp 0x1403df36d
mov r10, rsp
mov rdx, r13
mov r9, qword [rdi + 0xd0]
lea r8, str._s__DEL__s
mov rcx, qword [rsp + 0xe0]
mov qword [r10 + 0x20], r9
call fcn.1403dfa50
and byte [rdi + 0x292], 0xf7
mov rax, rsp
xor r10d, r10d
mov rdx, qword [rsp + 0xe0]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
lea r11, [rsp + 0x60]
mov dword [rax + 0x20], 1
lea r12, [rsp + 0xc8]
mov dword [rax + 0x28], 0x4000000
mov qword [rax + 0x30], r10
mov qword [rax + 0x38], r10
mov qword [rax + 0x40], r11
mov qword [rax + 0x48], r12
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1403df98a
mov rcx, qword [rsp + 0xd0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x1403df973
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r10b, byte [rdi + 0x292]
test r10b, 0x10
jne 0x1403df400
mov dl, r10b
and dl, 8
shr dl, 3
jmp 0x1403df5b6
lea rcx, str.FOR_DEFAULT_PRINT_DEVICE
lea rdx, [rsp + 0xe9]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, eax
test rax, rax
jbe 0x1403df434
cmp rax, 0x105
jae 0x1403df434
mov r10b, byte [rsp + 0xe9]
jmp 0x1403df43f
mov byte [rsp + 0xe9], 0
xor r10b, r10b
mov r12, rsp
test r10b, r10b
lea r11, str.PRN_FILE
lea r10, [rsp + 0xe9]
mov rdx, r13
lea r8, str.Cmd.exe__C_COPY___s___s
mov rcx, qword [r10 - 9]
cmove r10, r11
mov r9, qword [rdi + 0xd0]
mov qword [r12 + 0x20], r10
call fcn.1403dfa50
xor edx, edx
lea r12, [r13 + 0x106]
mov rcx, r12
lea r8, [rsp + 0x58]
call fcn.14035a450
test eax, eax
jne 0x1403df5e8
mov rcx, qword [rsp + 0x58]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1403df4e3
lea r8, [0x14059f4ec]
lea rdx, [r13 + 0x105]
mov r9, rdx
mov rcx, qword [rsp + 0x58]
call fcn.14048575c
mov rcx, qword [rsp + 0x58]
lea rdx, [r13 + 0x102]
inc r13
mov r9, r13
mov r8, qword [rsp + 0xe0]
call fcn.14048575c
jmp 0x1403df4f7
mov ecx, 0x313
xor edx, edx
call fcn.140383960
mov rdx, qword [rsp + 0x58]
mov byte [rdx], 0
mov r13, rsp
xor r10d, r10d
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
lea r11, [rsp + 0x60]
mov dword [r13 + 0x20], 1
lea r12, [rsp + 0xc8]
mov dword [r13 + 0x28], 0x4000000
mov qword [r13 + 0x30], r10
mov qword [r13 + 0x38], r10
mov qword [r13 + 0x40], r11
mov qword [r13 + 0x48], r12
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1403df94c
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403df935
mov rcx, qword [rsp + 0xc8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1403df91e
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403df907
mov r10b, byte [rdi + 0x292]
test r10b, 8
je 0x1403df5d5
cmp dword [rdi + 0x1a8], 0
je 0x1403df5ba
and r10b, 0xf7
mov r15d, 5
mov byte [rdi + 0x292], r10b
xor dl, dl
test dl, dl
je 0x1403df5d5
test r10b, 4
jne 0x1403df5d5
mov rcx, qword [rdi + 0xd0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1403df8f0
mov rcx, qword [rsp + 0xe0]
call fcn.14035a530
test eax, eax
cmove eax, r15d
test eax, eax
cmovne ebp, eax
movsx edx, word [rdi + 0x278]
test edx, edx
jle 0x1403df625
mov rcx, qword [rdi + 0xd0]
call fcn.14035a530
test eax, eax
je 0x1403df60c
mov ebp, eax
jmp 0x1403df625
lea rdx, str._Unknown_
xor r8d, r8d
mov qword [rdi + 0xd0], rdx
mov word [rdi + 0x278], r8w
mov rcx, qword [rdi + 0x78]
call fcn.14035a530
test eax, eax
je 0x1403df636
mov ebp, eax
jmp 0x1403df63e
mov qword [rdi + 0x78], 0
test byte [rdi + 0x292], 0x40
je 0x1403df6c3
mov r12, qword [rdi + 0xc0]
test r12, r12
je 0x1403df6c3
mov dl, byte [r12 + 0xb7]
test dl, 2
je 0x1403df685
mov rcx, qword [r12 + 8]
and dl, 0xfd
mov byte [r12 + 0xb7], dl
call fcn.14035a530
mov qword [r12 + 8], 0
mov r12, qword [rdi + 0xc0]
movzx edx, word [rdi + 0x27a]
test edx, edx
jg 0x1403df6a4
mov rcx, r12
call fcn.14035a530
test eax, eax
mov r12, qword [rdi + 0xc0]
cmovne ebp, eax
cmp r12, qword [rdi + 0xc8]
jne 0x1403df6b8
mov qword [rdi + 0xc8], 0
mov qword [rdi + 0xc0], 0
test byte [rdi + 0x295], 0x80
jne 0x1403df7cc
mov r13, qword [rdi + 0x58]
mov r12, qword [rdi + 0x60]
mov r10d, dword [rdi + 0x48]
mov r11b, byte [rdi + 0x29d]
mov r9, qword [rdi + 0x130]
test byte [rdi + 0x291], 0x18
je 0x1403df75b
mov r8d, dword [rdi + 0x1e0]
mov edx, 0x240
pxor xmm0, xmm0
movdqu xmmword [rdi + 0x270], xmm0
movdqu xmmword [rdi + 0x280], xmm0
movdqu xmmword [rdi + 0x290], xmm0
movq qword [rdi + 0x2a0], xmm0
movdqu xmmword [rdi + rdx + 0x20], xmm0
movdqu xmmword [rdi + rdx + 0x10], xmm0
movdqu xmmword [rdi + rdx], xmm0
movdqu xmmword [rdi + rdx - 0x10], xmm0
sub rdx, 0x40
jne 0x1403df723
mov dl, byte [rdi + 0x291]
and dl, 0xe7
add dl, 8
mov byte [rdi + 0x291], dl
mov dword [rdi + 0x1e0], r8d
jmp 0x1403df7a1
mov edx, 0x240
pxor xmm0, xmm0
movdqu xmmword [rdi + 0x270], xmm0
movdqu xmmword [rdi + 0x280], xmm0
movdqu xmmword [rdi + 0x290], xmm0
movq qword [rdi + 0x2a0], xmm0
movdqu xmmword [rdi + rdx + 0x20], xmm0
movdqu xmmword [rdi + rdx + 0x10], xmm0
movdqu xmmword [rdi + rdx], xmm0
movdqu xmmword [rdi + rdx - 0x10], xmm0
sub rdx, 0x40
jne 0x1403df784
mov dl, byte [rdi + 0x29d]
and r11b, 2
and dl, 0xfd
or dl, r11b
mov qword [rdi + 0x58], r13
mov qword [rdi + 0x60], r12
mov byte [rdi + 0x29d], dl
mov dword [rdi + 0x48], r10d
mov qword [rdi + 0x130], r9
jmp 0x1403df7d3
and byte [rdi + 0x291], 0xdf
mov rcx, qword [rsp + 0x1f0]
mov qword [rsp + 0x1f0], 0
xor rcx, rsp
cmp rcx, qword [0x14194d6d8]
jne 0x1403df83a
mov eax, ebp
add rsp, 0x200
pop rbp
pop r15
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x1f0]
mov qword [rsp + 0x1f0], 0
xor rcx, rsp
cmp rcx, qword [0x14194d6d8]
jne 0x1403df83a
mov eax, 0x30
add rsp, 0x200
pop rbp
pop r15
pop r13
pop r12
pop rdi
ret
call fcn.14043dac0
call fcn.14043d530
movzx edx, byte [rdi + 0x292]
mov ecx, eax
not edx
and edx, 8
shr edx, 3
call fcn.14043d290
cmp eax, 0xffffffff
jne 0x1403df279
and byte [rdi + 0x292], 0xf7
mov edx, dword [0x141a6ae3c]
jmp 0x1403df27f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x1a8], eax
mov r15d, 0x1c
jmp 0x1403df5d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x1a8], eax
mov r15d, 0x1c
jmp 0x1403df58d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x1a8], eax
mov r15d, 0x1c
jmp 0x1403df577
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x1a8], eax
mov r15d, 0x1c
jmp 0x1403df55b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10b, byte [rdi + 0x292]
mov dl, r10b
and dl, 8
mov r15d, 0x1c
mov dword [rdi + 0x1a8], eax
shr dl, 3
jmp 0x1403df5b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x1a8], eax
mov r15d, 0x1c
jmp 0x1403df3d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x1a8], eax
mov r15d, 0x1c
jmp 0x1403df3bc