Function at 0x14022b578
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1d0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15d, r8d
mov rdi, rdx
mov word [rsp + 0x5c], 0x67
mov word [rsp + 0x50], 0x7661
xor r12d, r12d
mov word [rsp + 0x59], 0x6c2e
mov word [rsp + 0x56], 0x3030
mov byte [rsp + 0x5b], reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + 0x53], 0x6d65
mov byte [rsp + 0x52], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x55], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x58], Ordinal_50
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.14011d670
mov r8d, ebx
lea rdx, [rbp - 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, r12d
lea r14d, [r12 + 1]
cmp qword [rdi + 0x18], 0x10
jb 0x14022b645
mov rcx, qword [rdi]
jmp 0x14022b648
mov rcx, rdi
mov r8d, r14d
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14022b676
mov ecx, 0x2ee
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, r14d
cmp ebx, 0xa
jl 0x14022b639
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14022b68e
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
or r13, 0xffffffffffffffff
cmp rax, r13
je 0x14022ba2b
mov dword [rbp + 0x110], r12d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rbx + 1]
call fcn.1400ec130
mov r14, rax
mov byte [rbx + rax], r12b
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x110]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140005e54
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140007030
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022b756
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r14
call fcn.1400ec138
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, 0x5d
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.140164210
test rax, rax
je 0x14022b7ce
sub eax, ebx
test eax, eax
jle 0x14022b7ce
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.140005c0c
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140007030
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022b7c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14000ea90
mov r13, rax
test rax, rax
jne 0x14022b81f
mov rax, qword [rbp + 0x130]
mov dword [rax], 3
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14022b806
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14022ba78
mov r8d, 1
jmp 0x14022ba6d
mov word [rsp + 0x41], 0x6d69
mov word [rsp + 0x47], 0x706d
mov word [rsp + 0x44], 0x7473
mov byte [rsp + 0x49], r12b
mov byte [rsp + 0x43], 0x65
mov byte [rsp + 0x40], 0x54
mov byte [rsp + 0x46], 0x61
xor ecx, ecx
call fcn.140155f0c
sub eax, r15d
mov qword [rbp - 0x70], rax
mov rcx, r13
call fcn.14000eee0
mov dword [rsp + 0x68], eax
mov r14d, r12d
mov esi, reloc.WS2_32.dll_ntohs
test eax, eax
jle 0x14022b9d5
mov edx, r14d
mov rcx, r13
call fcn.14000ef10
mov r12, rax
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14000ef60
mov r15, rax
mov rcx, rax
call fcn.14000f0f0
test eax, eax
je 0x14022b8d8
mov rdx, qword [r15 + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140005e54
mov rcx, qword [rsp + 0x70]
call fcn.140158260
mov ebx, eax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14022b8d8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
cmp ebx, dword [rbp - 0x70]
jle 0x14022b9b1
mov rcx, r12
call fcn.14000ecb0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005e54
nop
mov qword [rbp - 0x50], rsi
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov byte [rbp - 0x68], r12b
mov rdx, qword [rsp + 0x78]
cmp byte [rdx], r12b
jne 0x14022b915
mov r8d, r12d
jmp 0x14022b922
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x14022b919
lea rcx, [rbp - 0x68]
call fcn.14000d058
nop
mov r15, qword [rbp + 0x128]
mov rbx, qword [r15]
lea r9, [rbp - 0x68]
mov r8, qword [rbx + 8]
mov rdx, rbx
mov rcx, r15
call fcn.140009d2c
mov rdx, qword [r15 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x14022b9c3
lea rcx, [rdx + 1]
mov qword [r15 + 8], rcx
mov qword [rbx + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14022b990
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x68]
call fcn.14000ce04
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14022b9b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14022b9b4
xor r12d, r12d
inc r14d
cmp r14d, dword [rsp + 0x68]
jge 0x14022b9d0
jmp 0x14022b872
lea rcx, str.list_T__too_long
call fcn.1400bc800
nop
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbp + 0x130]
mov dword [rax], r12d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14022b9fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14022ba15
inc rdx
mov r8d, 1
mov rcx, qword [rdi]
call fcn.14000ce04
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x10], r12
cmp qword [rdi + 0x18], 0x10
jb 0x14022ba27
mov rdi, qword [rdi]
mov al, 1
jmp 0x14022ba90
mov rax, qword [rbp + 0x130]
mov dword [rax], 2
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022ba60
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14022ba78
mov r8, r14
inc rdx
mov rcx, qword [rdi]
call fcn.14000ce04
mov esi, reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rsi
cmp rsi, 0x10
mov qword [rdi + 0x10], r12
jb 0x14022ba8e
mov rdi, qword [rdi]
xor al, al
mov byte [rdi], r12b
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret