Function at 0x140042d20
Capabilities:
Create thread
Encode data using xor
Execute command
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140225d40]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 8
call fcn.1400debd4
test rax, rax
je 0x140042d73
lea rcx, [0x1400420b0]
mov qword [rax], rcx
jmp 0x140042d76
mov rax, rdi
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14003f5c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 9], rax
test rax, rax
je 0x1400431b9
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_30
lea rdx, str.C:WindowsIME_temp_mapper.exe
lea rcx, [rbp + 0x27]
call fcn.14003efe0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_30
lea rdx, str.C:WindowsIME_temp_driver.sys
lea rcx, [rbp + 7]
call fcn.14003efe0
nop
mov r8d, 0x23c00
lea rdx, [0x140202070]
lea rcx, [rbp + 0x27]
call fcn.1400435c0
mov ebx, dword [reloc.WS2_32.dll_accept]
test al, al
je 0x140042e40
mov r8d, 0x101070
lea rdx, section..data
lea rcx, [rbp + 7]
call fcn.1400435c0
test al, al
je 0x140042e40
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x27]
call fcn.1400422d0
jmp 0x140042fa0
mov rax, qword [str.rT____]
mov qword [rbp - 0x19], rax
cmp byte [str._WYE7], 0
je 0x140042f80
cmp ebx, 2
jl 0x140042f3d
movdqa xmm4, xmmword [0x1400e45d0]
movdqa xmm2, xmmword [0x1400e4580]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e45a0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1400e45b0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400e45c0]
movd xmm0, dword [rbp - 0x19]
xorps xmm2, xmm0
movd dword [rbp - 0x19], xmm2
movdqa xmm2, xmmword [0x1400e4590]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e45a0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1400e45b0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400e45c0]
movd xmm0, dword [rbp - 0x15]
xorps xmm2, xmm0
movd dword [rbp - 0x15], xmm2
jmp 0x140042f80
lea r9, [rbp - 0x19]
mov r8d, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, r8b
sub al, dl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140042f50
lea rdx, [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14003e900
lea rdx, [0x14003fb10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp + 0x27]
call fcn.1400420f0
lea rcx, [rbp + 7]
call fcn.1400420f0
mov eax, dword [0x1400e40e8]
mov dword [rbp - 0x19], eax
cmp byte [0x1400e40eb], 0
je 0x14004307c
cmp ebx, 2
jl 0x14004303f
movdqa xmm3, xmmword [0x1400e4580]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400e45d0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400e45d0]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1400e45a0]
psubd xmm3, xmm0
andps xmm3, xmmword [0x1400e45b0]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1400e45c0]
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rbp - 0x19], xmm3
jmp 0x14004307c
lea r8, [rbp - 0x19]
mov ecx, edi
nop word [rax + rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 4
jl 0x140043050
lea rcx, [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [reloc.WS2_32.dll_accept], 0
cmp dword [rbp - 1], 0
je 0x1400431c7
call sub.MSVCP140.dll__Thrd_id
cmp dword [rbp - 1], eax
je 0x1400431d2
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x19], xmm0
xor edx, edx
lea rcx, [rbp - 0x19]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x1400431dd
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
xor ecx, ecx
call qword [sym.imp.USER32.dll_BlockInput]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140043126
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043121
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043121
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dec10
movdqa xmm0, xmmword [0x1400e4570]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], di
mov rdx, qword [rbp + 0x3f]
cmp rdx, 7
jbe 0x140043182
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043175
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043175
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dec10
movdqa xmm0, xmmword [0x1400e4570]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], di
cmp dword [rbp - 1], 0
je 0x140043198
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400def70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov dword [rbp - 1], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3