Function at 0x1400046e0
Capabilities:
Authenticate hmac
Create process on windows
Encode data using xor
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4e8]
sub rsp, 0x5c0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x14000d028]
xor rax, rsp
mov qword [rbp + 0x480], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
lea r14, [rbp + 0x4e8]
movabs r15, 0xff00ff00ff00ff00
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r14
mov rbx, qword [r14]
xor rbx, r15
mov qword [rbp - 0x50], rbx
xor esi, esi
mov qword [r14], rsi
mov r8d, 0x104
lea rdx, [rbp + 0x370]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0x104
lea rdx, [rbp + 0x150]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [rbp + 0x260]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
movsd xmm0, qword [str.QS_LTJ]
movsd qword [rsp + 0x68], xmm0
movzx ecx, word [0x140009a08]
mov word [rsp + 0x70], cx
movzx eax, byte [0x140009a0a]
mov byte [rsp + 0x68], 0x64
xor byte [rsp + 0x69], 0x36
xor byte [rsp + 0x6a], 0x37
xor byte [rsp + 0x6b], 0x38
xor byte [rsp + 0x6c], 0x39
xor byte [rsp + 0x6d], 0x3a
xor byte [rsp + 0x6e], 0x3b
xor byte [rsp + 0x6f], 0x3c
xor cl, 0x3d
mov byte [rsp + 0x70], cl
xor byte [rsp + 0x71], 0x3e
xor al, 0x3f
mov byte [rsp + 0x72], al
lea rcx, [rbp + 0x260]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140004801
lea r8, [rsp + 0x68]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140004820
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x40]
call fcn.140006d60
nop
mov rax, qword [0x140009b78]
mov qword [rsp + 0x78], rax
mov r12d, 4
lea r13d, [r12 + 0x1b]
mov edi, dword [0x14000d038]
cmp byte [0x140009b7f], 0
je 0x1400049c0
cmp edi, 2
jl 0x140004981
movdqa xmm4, xmmword [0x140009c10]
movd xmm6, r12d
movd xmm5, r13d
movdqa xmm2, xmmword [0x140009bb0]
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 [0x140009bd0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140009bf0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555O]
movd xmm0, dword [rsp + 0x78]
xorps xmm2, xmm0
movd dword [rsp + 0x78], xmm2
movdqa xmm3, xmmword [0x140009bc0]
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 [0x140009bd0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140009bf0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555O]
movd xmm0, dword [rsp + 0x7c]
xorps xmm2, xmm0
movd dword [rsp + 0x7c], xmm2
jmp 0x1400049c0
lea r9, [rsp + 0x78]
mov r8d, esi
nop dword [rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140004990
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x40]
call fcn.140007300
lea rdx, [0x1400074d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movups xmm0, xmmword [str.E_Y_]
movups xmmword [rsp + 0x78], xmm0
movsd xmm0, qword [0x140009a20]
movsd qword [rbp - 0x78], xmm0
movzx eax, word [0x140009a28]
mov word [rbp - 0x70], ax
cmp byte [0x140009a29], 0
je 0x140004b9c
mov ecx, esi
cmp edi, 2
jl 0x140004b60
movdqa xmm5, xmmword [0x140009bb0]
movdqa xmm4, xmmword [0x140009c10]
movd xmm6, r12d
movdqa xmm7, xmmword [0x140009bd0]
movd xmm8, r13d
movdqa xmm0, xmmword [str.5555555555555555O]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x7c]
mov r8d, dword [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
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, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140009bf0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
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, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140009bf0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x140004a60
cmp ecx, 0x1a
jge 0x140004b9c
movsxd rax, ecx
lea r8, [rsp + 0x78]
add r8, rax
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x35
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1a
jl 0x140004b70
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x40]
call fcn.140007300
lea rdx, [0x1400074d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.attrib__h__s__
lea rcx, [rbp + 0x40]
call fcn.140007300
mov rcx, rax
lea rdx, [rbp + 0x150]
call fcn.140007300
mov rcx, rax
lea rdx, str._sys.tmp
call fcn.140007300
mov rcx, rax
lea rdx, [0x14000965c]
call fcn.140007300
lea rdx, [0x1400074d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [0x1400098d8]
mov dword [rsp + 0x78], eax
movzx eax, word [0x1400098dc]
mov word [rsp + 0x7c], ax
mov byte [rsp + 0x78], 0x64
xor byte [rsp + 0x79], 0x36
xor byte [rsp + 0x7a], 0x37
xor byte [rsp + 0x7b], 0x38
xor al, 0x39
mov byte [rsp + 0x7c], al
xor byte [rsp + 0x7d], 0x3a
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x40]
call fcn.140007300
lea rdx, [rbp + 0x150]
mov rcx, rax
call fcn.140007300
mov rcx, rax
movsd xmm0, qword [str.iENK]
movsd qword [rsp + 0x50], xmm0
movzx eax, byte [0x140009b28]
mov byte [rsp + 0x50], 0x5c
xor byte [rsp + 0x51], 0x36
xor byte [rsp + 0x52], 0x37
xor byte [rsp + 0x53], 0x38
xor byte [rsp + 0x54], 0x39
xor byte [rsp + 0x55], 0x3a
xor byte [rsp + 0x56], 0x3b
xor byte [rsp + 0x57], 0x3c
xor al, 0x3d
mov byte [rsp + 0x58], al
lea rdx, [rsp + 0x50]
call fcn.140007300
mov rcx, rax
movzx eax, word [0x140009a78]
mov word [rsp + 0x60], ax
lea rdx, [rsp + 0x60]
cmp byte [0x140009a79], 0
je 0x140004cd0
mov byte [rsp + 0x60], 0x22
xor byte [rsp + 0x61], 0x36
call fcn.140007300
lea rdx, [0x1400074d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movzx eax, word [0x1400097b8]
mov word [rsp + 0x58], ax
movsd xmm0, qword [0x1400097b0]
movzx eax, byte [0x1400097ba]
movsd qword [rsp + 0x50], xmm0
mov byte [rsp + 0x50], 0x69
xor byte [rsp + 0x51], 0x36
xor byte [rsp + 0x52], 0x37
xor byte [rsp + 0x53], 0x38
xor byte [rsp + 0x54], 0x39
xor byte [rsp + 0x55], 0x3a
xor byte [rsp + 0x56], 0x3b
xor byte [rsp + 0x57], 0x3c
xor byte [rsp + 0x58], 0x3d
xor byte [rsp + 0x59], 0x3e
xor al, 0x3f
mov byte [rsp + 0x5a], al
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.140007300
mov rcx, rax
lea rdx, [rbp + 0x370]
call fcn.140007300
mov r9, rax
movsd xmm0, qword [0x140009990]
movsd qword [rsp + 0x78], xmm0
mov eax, dword [0x140009998]
mov dword [rbp - 0x80], eax
movzx eax, word [0x14000999c]
mov word [rbp - 0x7c], ax
cmp byte [0x14000999d], 0
je 0x140004edc
mov ecx, esi
cmp edi, 2
jl 0x140004e9f
movdqa xmm4, xmmword [0x140009c10]
movd xmm6, r12d
movd xmm5, r13d
movdqa xmm2, xmmword [0x140009bb0]
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 [0x140009bd0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140009bf0]
packuswb xmm2, xmm2
mov eax, dword [str.5555555555555555O]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x140009990]
xorps xmm2, xmm0
movd dword [rsp + 0x78], xmm2
movdqa xmm3, xmmword [0x140009bc0]
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 [0x140009bd0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140009bf0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x7c]
xorps xmm2, xmm1
movd dword [rsp + 0x7c], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x78]
add r8, rax
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x35
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xe
jl 0x140004eb0
lea rdx, [rsp + 0x78]
mov rcx, r9
call fcn.140007300
lea rdx, [0x1400074d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movzx eax, word [0x140009ae8]
mov word [rsp + 0x58], ax
movsd xmm0, qword [0x140009ae0]
movzx eax, byte [0x140009aea]
movsd qword [rsp + 0x50], xmm0
mov byte [rsp + 0x50], 0x64
xor byte [rsp + 0x51], 0x36
xor byte [rsp + 0x52], 0x37
xor byte [rsp + 0x53], 0x38
xor byte [rsp + 0x54], 0x39
xor byte [rsp + 0x55], 0x3a
xor byte [rsp + 0x56], 0x3b
xor byte [rsp + 0x57], 0x3c
xor byte [rsp + 0x58], 0x3d
xor byte [rsp + 0x59], 0x3e
xor al, 0x3f
mov byte [rsp + 0x5a], al
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.140007300
lea rdx, [0x1400074d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rbp + 0x48]
call fcn.140007210
test rax, rax
jne 0x140004f9a
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov dword [rbp - 0x30], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x260]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140005012
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x40]
call fcn.140002bb0
nop
xor rbx, r15
mov qword [r14], rbx
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140007c80
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret