Function at 0x140039090
Capabilities:
Create thread
Delete file
Encode data using xor
Enumerate processes
Execute command
Log keystrokes via polling
Terminate process

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 - 0x2d8]
sub rsp, 0x3b0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x1400d9e00]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r12d, r12d
mov edi, r12d
mov dword [rsp + 0x60], r12d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ecx, word [rbp - 0x12]
sub cx, word [rbp - 0x16]
lea r13d, [r12 + 1]
add cx, r13w
mov word [rsp + 0x60], cx
movzx ecx, word [rbp - 0x10]
sub cx, word [rbp - 0x14]
add cx, r13w
mov word [rsp + 0x62], cx
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea rsi, [0x1400da7f0]
mov rcx, rsi
call fcn.14004cb30
cmp byte [0x1400daa00], r12b
jne 0x14003915f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.1400381dc
mov dword [rsp + 0x60], 0xbda1af
mov byte [rsp + 0x64], r13b
mov rcx, r12
mov r15b, 0x34
mov al, cl
sub al, r15b
xor byte [rsp + rcx + 0x60], al
add rcx, r13
cmp rcx, 3
jb 0x140039177
mov byte [rsp + 0x64], r12b
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, rsi
call fcn.140049720
lea r8, [0x1400daa68]
lea rdx, str.C:ProgramData_
lea rcx, [rsp + 0x68]
call fcn.14002c2e0
nop
mov r8b, r12b
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14002ca24
nop
lea rcx, [rbp - 0x78]
call fcn.140035968
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140033264
nop
lea rcx, [rsp + 0x68]
call fcn.14002f7e4
movdqa xmm8, xmmword [0x1400aff00]
movdqa xmm9, xmmword [0x1400affa0]
test bl, bl
je 0x14003926a
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov word [rsp + 0x40], 0xa
mov byte [rsp + 0x42], r12b
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
movdqu xmmword [rbp - 0x78], xmm9
movdqu xmmword [rbp - 0x68], xmm8
mov dword [rbp - 0x58], 0xc1c09985
mov dword [rbp - 0x54], 0x100fbde
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rbp + rcx - 0x78], al
add rcx, r13
cmp rcx, 0x26
jb 0x140039244
mov byte [rbp - 0x51], r12b
lea rcx, [rbp - 0x78]
call fcn.140031d00
mov ecx, 0x3e8
jmp 0x140039277
mov rcx, rsi
call fcn.140049720
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x40], r12b
lea r8, [0x1400daa68]
lea rdx, str.C:ProgramData_
lea rcx, [rsp + 0x68]
call fcn.14002c2e0
nop
mov r8b, r12b
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14002ca24
nop
lea rcx, [rbp - 0x78]
call fcn.140035968
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140033264
nop
lea rcx, [rsp + 0x68]
call fcn.14002f7e4
test bl, bl
je 0x1400393ae
lea r8, [0x1400daa68]
lea rdx, str.C:ProgramData_
lea rcx, [rsp + 0x68]
call fcn.14002c2e0
nop
mov dword [rsp + 0x20], r13d
lea r9d, [r14 + 0x31]
mov r8d, r13d
mov rdx, rax
lea rcx, [rbp]
call fcn.14002e594
nop
lea rcx, [rsp + 0x68]
call fcn.14002f7e4
lea rdx, [rbp - 0x40]
lea rcx, [rbp]
call fcn.14002e340
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], r14
cmova rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.14002c878
lea rdx, [rbp - 0x78]
mov rcx, rsi
call fcn.14004e370
cmp byte [0x1400daa00], r12b
jne 0x14003962d
lea r8, [0x1400daa68]
lea rdx, str.C:ProgramData_
lea rcx, [rbp - 0x78]
call fcn.14002c2e0
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], r14
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rbp - 0x78]
call fcn.14002f7e4
nop
lea rcx, [rbp]
call fcn.140030298
movdqa xmm6, xmmword [0x1400afef0]
movdqa xmm7, xmmword [0x1400b0080]
mov word [rsp + 0x40], 0xa
mov byte [rsp + 0x42], r12b
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
mov dword [rsp + 0x68], 0xefb7a887
mov dword [rsp + 0x6c], 0xd8f1ea
mov byte [rsp + 0x70], r13b
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rsp + rcx + 0x68], al
add rcx, r13
cmp rcx, 7
jb 0x1400393f3
mov byte [rsp + 0x70], r12b
lea rcx, [rsp + 0x68]
call fcn.140031d00
mov bl, r12b
test bl, bl
jne 0x140039636
lea rdx, [rbp - 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.14002bebc
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], r14
cmova rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.14002c878
lea rdx, [rbp - 0x78]
mov rcx, rsi
call fcn.14004e370
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp byte [0x1400daa00], r12b
je 0x140039657
mov word [rsp + 0x44], 0xa
mov byte [rsp + 0x46], r12b
lea rdx, [rsp + 0x44]
call fcn.14002c104
movdqu xmmword [rbp - 0x78], xmm9
movdqu xmmword [rbp - 0x68], xmm8
mov dword [rbp - 0x58], 0xc1c09985
mov dword [rbp - 0x54], 0x100fbde
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rbp + rcx - 0x78], al
add rcx, r13
cmp rcx, 0x26
jb 0x1400394ab
mov byte [rbp - 0x51], r12b
lea rcx, [rbp - 0x78]
call fcn.140031df8
mov word [rsp + 0x48], 0xa
mov byte [rsp + 0x4a], r12b
lea rdx, [rsp + 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
mov rcx, qword [0x1400daa78]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, r14
jb 0x140039b83
lea rax, [0x1400daa68]
cmp qword [0x1400daa80], r14
cmova rax, qword [0x1400daa68]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, str.C:ProgramData_
lea r8, [0x1400daa68]
mov dl, byte [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14002e9f4
or edi, r13d
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], r14
cmova rdx, qword [rbp - 0x78]
mov dword [rsp + 0x20], r13d
mov ebx, 2
lea r9d, [rbx + 0x3e]
mov r8d, ebx
lea rcx, [rbp]
call fcn.14002e6f0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
mov rdx, qword [rbp - 0x60]
cmp rdx, r14
jbe 0x1400395ce
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400395c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400396d7
call fcn.1400a2ff8
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r14
mov byte [rbp - 0x78], r12b
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], r14
cmova rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
lea rcx, [rbp]
call fcn.14002d384
lea rcx, [rbp + 8]
call fcn.1400335f0
test rax, rax
jne 0x14003961c
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov bl, r13b
lea rcx, [rbp]
call fcn.1400302fc
jmp 0x140039417
lea rcx, [rbp]
call fcn.140030298
cmp byte [0x1400daa00], r12b
jne 0x1400396de
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov word [rsp + 0x4c], 0xa
mov byte [rsp + 0x4e], r12b
lea rdx, [rsp + 0x4c]
call fcn.14002c104
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
movdqu xmmword [rbp - 0x78], xmm7
movdqu xmmword [rbp - 0x68], xmm6
mov dword [rbp - 0x58], 0xce8a8480
mov word [rbp - 0x54], 0xfa
mov byte [rbp - 0x52], r13b
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rbp + rcx - 0x78], al
add rcx, r13
cmp rcx, 0x25
jb 0x140039696
mov byte [rbp - 0x52], r12b
lea rcx, [rbp - 0x78]
call fcn.140031df8
mov word [rsp + 0x60], 0xa
mov byte [rsp + 0x62], r12b
lea rdx, [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
jmp 0x1400393be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140030f8c
movdqa xmm0, xmmword [0x1400afff0]
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x78], 0xa7bab8b8
mov word [rsp + 0x7c], 0x100
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rsp + rcx + 0x68], al
add rcx, r13
cmp rcx, 0x14
jb 0x140039703
mov byte [rsp + 0x7d], r12b
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x140039771
call fcn.140036410
movdqa xmm0, xmmword [0x1400afff0]
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x78], 0xa7bab8b8
mov word [rsp + 0x7c], 0x100
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rsp + rcx + 0x68], al
add rcx, r13
cmp rcx, 0x14
jb 0x14003974f
mov byte [rsp + 0x7d], r12b
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov word [rsp + 0x60], 0xa
mov byte [rsp + 0x62], r12b
lea rdx, [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
movdqa xmm0, xmmword [0x1400affd0]
movdqu xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [0x1400afed0]
movdqu xmmword [rbp - 0x68], xmm1
movdqa xmm0, xmmword [0x1400afdf0]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x48], r13b
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rbp + rcx - 0x78], al
add rcx, r13
cmp rcx, 0x2f
jb 0x1400397bc
mov byte [rbp - 0x48], r12b
lea rcx, [rbp - 0x78]
call fcn.140031d7c
mov word [rsp + 0x60], 0xa
mov byte [rsp + 0x62], r12b
lea rdx, [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
movdqa xmm0, xmmword [0x1400afde0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x78], r13b
mov rdx, r12
mov al, dl
sub al, r15b
xor byte [rsp + rdx + 0x68], al
add rdx, r13
cmp rdx, r14
jb 0x14003980e
mov byte [rsp + 0x78], r12b
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, Ordinal_301
lea ecx, [rdx + 0x19]
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0x1f4
jmp 0x14003988d
mov dword [rsp + 0x68], 0x80828c9a
mov dword [rsp + 0x6c], 0x879c9082
mov dword [rsp + 0x70], 0x100f5f4
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rsp + rcx + 0x68], al
add rcx, r13
cmp rcx, 0xa
jb 0x14003985f
mov byte [rsp + 0x73], r12b
lea rdx, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1400da718], rax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [0x1400da718], r12
je 0x140039844
mov ecx, 0x76
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14003989c
call fcn.140001928
mov r14d, r12d
mov esi, r12d
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
mov dword [rbp + 0x130], 0x130
lea rdx, [rbp + 0x130]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
movdqa xmm6, xmmword [0x1400afee0]
movdqu xmmword [rsp + 0x68], xmm6
mov dword [rsp + 0x78], 0xafaeb4b4
mov dword [rsp + 0x7c], 0xcd858f89
mov dword [rbp - 0x80], 0x839d81
mov byte [rbp - 0x7c], r13b
mov rcx, r12
mov al, cl
sub al, r15b
xor byte [rsp + rcx + 0x68], al
add rcx, r13
cmp rcx, 0x1b
jb 0x140039909
mov byte [rbp - 0x7c], r12b
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x15c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jne 0x1400399a2
mov r15d, dword [rbp + 0x138]
xor edx, edx
lea ecx, [rax + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003998f
xor edx, edx
mov r8d, Ordinal_301
lea rcx, [rbp + 4]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp], 0x130
lea rdx, [rbp]
mov rcx, rbx
call sub.KERNEL32.dll_Process32First
jmp 0x14003998b
mov rcx, rbx
cmp dword [rbp + 8], r15d
je 0x140039b2a
lea rdx, [rbp]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140039975
mov eax, r12d
mov r15b, 0x34
cmp eax, esi
jbe 0x1400399a2
mov esi, eax
mov r14d, dword [rbp + 0x138]
lea rdx, [rbp + 0x130]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400398e5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1400da7a4], r14d
movdqa xmm0, xmmword [0x1400affc0]
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x78], 0xfee7b8
mov byte [rsp + 0x7c], r13b
mov rdx, r12
mov al, dl
sub al, r15b
xor byte [rsp + rdx + 0x68], al
add rdx, r13
cmp rdx, 0x13
jb 0x1400399e7
mov byte [rsp + 0x7c], r12b
lea rdx, [rsp + 0x68]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
mov edx, dword [0x1400da7a4]
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___int____ptr64]
lea rdx, [0x14002e144]
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 ecx, dword [0x1400da7a4]
call fcn.140001b00
mov edx, dword [0x1400da624]
lea rcx, str.VALORANT_Win64_Shipping.exe
call fcn.140001884
mov qword [0x1400daab8], rax
movdqa xmm0, xmmword [0x1400aff50]
movdqu xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [0x1400aff10]
movdqu xmmword [rbp - 0x68], xmm1
mov dword [rbp - 0x58], 0x100cdd6
mov r8, r12
mov al, r8b
sub al, r15b
xor byte [rbp + r8 - 0x78], al
add r8, r13
cmp r8, 0x22
jb 0x140039a76
mov byte [rbp - 0x55], r12b
lea rdx, [rbp - 0x78]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c104
mov rdx, qword [0x1400daab8]
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___long_long___int64_____ptr64]
lea rdx, [0x14002e144]
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]
call fcn.140001824
call fcn.140032118
cmp eax, 3
je 0x140039ad9
lea rcx, str.__render_____failed_to_setup_render._n
call fcn.140018d1c
xor r8d, r8d
xor edx, edx
lea rcx, [0x140037e9c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
call fcn.140031f4c
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140039b3d
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039b38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039b38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x1c]
jmp 0x140039992
call fcn.1400a2ff8
xor eax, eax
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400a3090
lea r11, [rsp + 0x3b0]
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]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400332f8
nop
int3