Function at 0x140003330
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x14005a010]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor esi, esi
lea edi, [rsi + 4]
lea r14d, [rsi + 0x1f]
mov ebx, dword [0x14005a018]
cmp qword [0x14005a4d0], rsi
jne 0x140003523
nop dword [rax]
movsd xmm0, qword [str.vRMoiO]
movsd qword [rbp + 0x40], xmm0
mov eax, dword [0x14004c9f8]
mov dword [rbp + 0x48], eax
movzx eax, byte [0x14004c9fc]
mov byte [rbp + 0x4c], al
mov ecx, esi
cmp ebx, 2
jl 0x1400034b8
movdqa xmm4, xmmword [0x140052d60]
movd xmm6, edi
movd xmm5, r14d
movdqa xmm2, xmmword [0x140052c30]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140052cb0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140052d10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140052d20]
movd xmm0, dword [str.vRMoiO]
xorps xmm2, xmm0
movd dword [rbp + 0x40], xmm2
movdqa xmm3, xmmword [0x140052c60]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140052cb0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140052d10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140052d20]
movd xmm0, dword [rbp + 0x44]
xorps xmm2, xmm0
movd dword [rbp + 0x44], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp + 0x40]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xd
jl 0x1400034d0
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14000d6a0
mov rdx, rax
call fcn.140002160
mov eax, eax
mov qword [0x14005a4d0], rax
test eax, eax
je 0x140003390
mov byte [rbp - 0x30], sil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
mov qword [rbp + 0x24], rax
mov dword [rbp + 0x2c], eax
mov byte [rsp + 0x70], al
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], eax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400035eb
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400035eb
lea rdx, str.NtGdiGetSpoolMessage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005c1c8], rax
mov rax, qword [0x14005c1c8]
test rax, rax
jne 0x1400035bc
lea rcx, str.failed_to_find_procaddr_n
call fcn.1400010d0
jmp 0x1400035eb
mov dword [rbp - 0x2c], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov qword [rbp - 0x28], rax
lea rax, [0x14005c1b0]
mov qword [rbp - 0x20], rax
mov rax, qword [0x14005c1c8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x30]
call rax
mov byte [rbp - 0x30], sil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
mov qword [rbp + 0x24], rax
mov dword [rbp + 0x2c], eax
mov rax, qword [0x14005a4d0]
mov qword [0x14005c1a8], rax
mov dword [rbp - 0x2c], esi
mov qword [rbp - 0x28], rax
lea rax, [0x14005c1b8]
mov qword [rbp - 0x20], rax
mov rax, qword [0x14005c1c8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x30]
call rax
mov eax, dword [0x14005a4d0]
mov dword [0x14005c1d0], eax
movups xmm3, xmmword [0x14004c850]
movups xmmword [rbp + 0x40], xmm3
movsd xmm0, qword [0x14004c860]
movsd qword [rbp + 0x50], xmm0
movzx eax, word [0x14004c868]
mov word [rbp + 0x58], ax
mov r8d, esi
cmp ebx, 2
jl 0x140003763
movdqa xmm4, xmmword [0x140052d60]
movd xmm6, edi
movd xmm5, r14d
movdqa xmm2, xmmword [0x140052c30]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140052cb0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140052d00]
movq xmm1, xmm3
xorps xmm2, xmm1
movq qword [rbp + 0x40], xmm2
movdqa xmm3, xmmword [0x140052c60]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140052cb0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140052d00]
movq xmm0, qword [rbp + 0x48]
xorps xmm2, xmm0
movq qword [rbp + 0x48], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp + 0x40]
lea r9, [r9 + rax*2]
nop
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x31
movzx eax, r8w
sub ax, cx
add ax, 0x32
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xd
jl 0x140003770
mov r8d, dword [0x14005c1a8]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140003892
xor edx, edx
mov r9d, 0x30
lea r8, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140003889
mov eax, dword [rbp - 8]
cmp eax, 0x40000
je 0x1400037f8
cmp eax, 0x1000000
jne 0x140003864
mov ecx, 0x400
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x400
mov r9, rbx
mov r8d, 2
mov rdx, qword [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
jne 0x14000385b
lea rdx, [rbp + 0x40]
mov rcx, qword [rbx + 8]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14000385b
lea rdx, str..mui
mov rcx, qword [rbx + 8]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140003871
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
add rdx, qword [rbp - 0x30]
jmp 0x1400037cb
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x30]
jmp 0x140003895
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov qword [0x14005a500], rax
mov rdx, qword [0x14005a508]
add rdx, 0x28e0
mov qword [rbp + 0x40], rsi
mov r9d, 8
lea r8, [rbp + 0x40]
lea rcx, [0x14005c1a8]
call fcn.140001fa0
mov qword [rbp + 0x30], rsi
mov rdx, qword [rbp + 0x40]
add rdx, 8
mov r9d, 8
lea r8, [rbp + 0x30]
lea rcx, [0x14005c1a8]
call fcn.140001fa0
mov rax, qword [rbp + 0x30]
add rax, 0xffffffffffffff58
mov qword [0x14005a518], rax
jne 0x14000396f
nop dword [rax]
mov rdx, qword [0x14005a508]
add rdx, 0x28e0
mov qword [rbp + 0x30], rsi
mov r9d, 8
lea r8, [rbp + 0x30]
lea rcx, [0x14005c1a8]
call fcn.140001fa0
mov qword [rbp + 0x40], rsi
mov rdx, qword [rbp + 0x30]
add rdx, 8
mov r9d, 8
lea r8, [rbp + 0x40]
lea rcx, [0x14005c1a8]
call fcn.140001fa0
mov rax, qword [rbp + 0x40]
add rax, 0xffffffffffffff58
mov qword [0x14005a518], rax
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [0x14005a518], rsi
je 0x140003900
mov rdx, qword [0x14005a500]
add rdx, 0x413de80
mov qword [rbp + 0x30], rsi
mov r9d, 8
lea r8, [rbp + 0x30]
lea rcx, [0x14005c1a8]
call fcn.140001fa0
mov rax, qword [rbp + 0x30]
mov qword [0x14005a508], rax
lea rdx, [rax + 0x1b8]
mov qword [rbp + 0x30], rsi
mov r9d, 8
lea r8, [rbp + 0x30]
lea rcx, [0x14005c1a8]
call fcn.140001fa0
mov rax, qword [rbp + 0x30]
mov qword [0x14005a510], rax
mov ecx, 8
call fcn.1400499f8
lea rcx, [0x140003bb0]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14000ecc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140003b94
cmp dword [rsp + 0x58], 0
je 0x140003b88
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x30], xmm0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140003b88
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea ecx, [rax + 8]
call fcn.1400499f8
lea rcx, [0x140003f40]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14000ecc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140003b78
cmp dword [rsp + 0x48], 0
je 0x140003b6c
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140003b6c
lea ecx, [rax + 8]
call fcn.1400499f8
lea rcx, [0x140003120]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14000ecc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140003b5c
cmp dword [rsp + 0x38], 0
je 0x140003b50
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140003b50
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400499d0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3