Function at 0x1400045a0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 8], rax
mov rbx, r8
mov qword [rbp - 0x80], rbx
mov qword [rsp + 0x68], rcx
xor r15d, r15d
mov r8, qword [rdx + 0x10]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, r8
cmp rax, 1
jb 0x140004c33
cmp qword [rdx + 0x18], 0xf
jbe 0x140004601
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x140006838]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r9, rdx
lea rcx, [rsp + 0x40]
call fcn.140003060
nop
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400029f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400046a3
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000469e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000469e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000508c
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
seta r11b
mov r10, qword [rbp - 0x68]
cmova rcx, r10
mov rsi, 0xffffffffffffffff
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x1400046f2
lea rax, [rdi - 1]
mov rbx, rsi
cmp rax, rbx
cmovb rbx, rax
add rbx, rcx
cmp byte [rbx], 0x2e
je 0x1400046ed
nop
cmp rbx, rcx
je 0x1400046f2
dec rbx
cmp byte [rbx], 0x2e
jne 0x1400046e0
sub rbx, rcx
jmp 0x1400046f5
mov rbx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], recv
mov byte [rbp - 0x40], 0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov r13d, recv
mov qword [rbp - 8], r13
mov byte [rbp - 0x20], 0
cmp rbx, 0xffffffffffffffff
je 0x140004836
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov r8, rbx
cmp rdi, rbx
cmovb r8, rdi
lea rdx, [rbp - 0x68]
test r11b, r11b
cmovne rdx, r10
lea rcx, [rsp + 0x40]
call fcn.140002d90
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x30], xmm1
inc rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov rax, qword [rbp - 0x58]
cmp rax, rbx
jb 0x140004c39
sub rax, rbx
cmp rax, 0xffffffffffffffff
cmovb rsi, rax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], r13
cmova rdx, qword [rbp - 0x68]
add rdx, rbx
mov r8, rsi
lea rcx, [rsp + 0x40]
call fcn.140002d90
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x20], xmm1
movups xmm2, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x10], xmm2
lea rcx, [rbp - 0x20]
movdqa xmm0, xmm2
psrldq xmm0, 8
movq r13, xmm0
cmp r13, 0xf
seta dil
movq rsi, xmm1
cmova rcx, rsi
movq rbx, xmm2
cmp rbx, 4
jne 0x14000480d
mov r8, rbx
lea rdx, str.sdev
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140004b4e
lea rcx, [rbp - 0x20]
test dil, dil
cmovne rcx, rsi
cmp rbx, 3
jne 0x14000486d
mov r8, rbx
lea rdx, [0x1400080d0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000486d
jmp 0x140004b4e
lea r9, [rbp - 0x68]
test r11b, r11b
cmovne r9, r10
lea rcx, [rbp - 0x40]
cmp rdi, 0xf
ja 0x140004861
mov qword [rbp - 0x30], rdi
mov r8, rdi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rdi - 0x40], 0
jmp 0x140004869
mov rdx, rdi
call fcn.140004c40
mov rsi, qword [rbp - 0x20]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x30]
sub r14, rax
cmp r14, 5
jb 0x140004c2d
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 5
lea rcx, str..sdev
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.140003060
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000496a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004960
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004960
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000508c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
cmp rbx, 0xffffffffffffffff
je 0x140004b2a
cmp rax, 0xffffffffffffffff
je 0x140004b2a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
and edi, 0xfffffff0
add edi, 0x10
mov r14d, edi
mov qword [rsp + 0x70], r14
mov edx, 1
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r12, rax
mov edx, 1
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x70]
mov r8d, edi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x1400049f7
lea rdx, str.fail_to_file_open
jmp 0x140004b31
mov dword [rbp - 0x48], 8
mov dword [rbp - 0x44], recv
mov rcx, r14
call fcn.1400050c0
mov r15, rax
mov ecx, 0xf0
call fcn.1400050c0
mov r14, rax
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x48]
call fcn.140003950
xor ebx, ebx
test edi, edi
je 0x140004a5b
nop dword [rax]
nop dword [rax + rax]
lea r8, [r15 + rbx]
lea rdx, [rbx + r12]
mov r9, r14
lea rcx, [rbp - 0x48]
call fcn.140003520
add ebx, 0x10
cmp ebx, edi
jb 0x140004a40
mov rcx, r14
call fcn.14000508c
mov r8, qword [rsp + 0x70]
mov rdx, r15
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x20], 0
lea r9, [rbp]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x140004aaf
lea rdx, str.fail_to_file_write
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x140004ada
mov rax, qword [rbp - 0x80]
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140004ac0
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400031b0
lea rdx, str._file_is_encrypted
mov rcx, rax
call fcn.140002b80
lea rdx, [0x140002d50]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140004b4e
lea rdx, [0x140008060]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002b80
lea rdx, [0x140002d50]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp r13, 0xf
jbe 0x140004b89
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140004b80
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14000508c
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140004bc8
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004bc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004bc2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000508c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140004c06
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000508c
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140004df0
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001290
nop
call fcn.140001290
nop
call fcn.140003b20
int3