Function at 0x140005130
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400840e0]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x30], r12d
xor r8d, r8d
lea edx, [r12 + 9]
lea rcx, str.archive.zip
call qword [sym.imp.zip.dll_zip_open]
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14000519e
lea rdx, str.Error:_Unable_to_create_ZIP_archive
jmp 0x14000520a
mov ecx, 0x130
call fcn.14004b068
mov r13, rax
test rax, rax
je 0x140005203
mov qword [rsp + 0x20], 0x105
lea r9, [0x140077514]
mov r8d, 0x105
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.14004a4a0
test eax, eax
jne 0x1400051f2
lea rcx, [rbp - 0x50]
call fcn.140004390
mov qword [r13 + 0x128], rax
mov ecx, r12d
test rax, rax
sete cl
jmp 0x1400051f7
mov ecx, 1
test ecx, ecx
je 0x140005253
mov rcx, r13
call fcn.14004994c
lea rdx, str.Error:_Unable_to_open_current_directory
lea rcx, [0x140086960]
call fcn.140012e20
mov rcx, rax
call fcn.1400130d0
mov eax, 1
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14003b640
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r14d, 0x128
nop dword [rax]
mov rbx, qword [r13 + 0x128]
cmp dword [rbx + 0x478], 0
je 0x140005280
lea rdi, [rbx + 0x228]
mov dword [rbx + 0x478], r12d
jmp 0x1400052c0
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x140005386
lea rdi, [rbx + 0x228]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400052c0
mov rcx, qword [rbx + 0x480]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x480], 0xffffffffffffffff
mov rdi, r12
test rdi, rdi
je 0x140005386
lea r9, [rdi + 0x2c]
mov qword [rsp + 0x20], 0x105
mov r8d, 0x105
lea rdx, [r13 + 0x1c]
lea rcx, [rbp - 0x60]
call fcn.14004a0dc
test eax, eax
je 0x14000531b
lea r9, [rdi + 0x234]
cmp word [r9], 0
je 0x140005317
mov qword [rsp + 0x20], 0x105
mov r8d, 0x105
lea rdx, [r13 + 0x1c]
lea rcx, [rbp - 0x60]
call fcn.14004a0dc
test eax, eax
jne 0x140005359
mov rax, qword [rbp - 0x60]
dec rax
mov qword [r13 + 0x10], rax
mov eax, dword [rdi]
test al, 0x40
je 0x14000533d
mov dword [r13 + 0x18], 0x2000
movzx ecx, r14w
mov eax, r12d
jmp 0x140005374
test al, 0x10
mov eax, 0x8000
mov ecx, 0x4000
cmovne eax, ecx
mov dword [r13 + 0x18], eax
movzx ecx, r14w
mov eax, r12d
jmp 0x140005374
mov word [r13 + 0x1c], 0x3f
mov qword [r13 + 0x10], 1
mov dword [r13 + 0x18], r12d
mov ecx, r12d
mov eax, 0xffffffff
mov dword [r13], r12d
mov dword [r13 + 4], eax
mov word [r13 + 8], cx
mov r14, r13
jmp 0x140005389
mov r14, r12
test r14, r14
je 0x1400056d4
add r14, 0x1c
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov rbx, r12
mov qword [rbp - 0x70], rbx
mov edi, 0xf
mov qword [rbp - 0x68], rdi
mov byte [rbp - 0x80], 0
mov rsi, r12
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x1400053c0
test rax, rax
je 0x14000554b
movsx ecx, byte [rsi + r14]
call fcn.140045ba4
cmp rbx, rdi
jae 0x140005401
lea rcx, [rbx + 1]
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x80]
cmp rdi, 0x10
cmovae rcx, qword [rbp - 0x80]
mov byte [rcx + rbx], al
mov byte [rcx + rbx + 1], 0
jmp 0x140005415
movzx r9d, al
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x80]
call fcn.140014300
inc rsi
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r14 + rax], 0
jne 0x140005420
mov rbx, qword [rbp - 0x70]
cmp rsi, rax
jae 0x140005439
mov rdi, qword [rbp - 0x68]
jmp 0x1400053d3
cmp rbx, 8
jb 0x140005547
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov r8d, 8
lea rdx, [0x140077540]
lea rcx, [rsp + 0x60]
call fcn.140013e00
nop
or r15d, 1
mov dword [rsp + 0x30], r15d
lea rcx, [rbx - 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
cmp rbx, rcx
jb 0x1400058e4
sub rbx, rcx
mov r8, 0xffffffffffffffff
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
add rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140013e00
or r15d, 6
mov dword [rsp + 0x30], r15d
mov r9, qword [rsp + 0x48]
cmp r9, qword [rsp + 0x70]
jne 0x140005547
lea r15, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae r15, qword [rsp + 0x60]
lea r12, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
setae dl
cmovae r12, qword [rsp + 0x38]
add r12, r9
lea rsi, [rsp + 0x38]
test dl, dl
cmovne rsi, qword [rsp + 0x38]
cmp rsi, r12
je 0x140005535
sub r15, rsi
movsx edi, byte [r15 + rsi]
movsx ecx, byte [rsi]
call fcn.140045ba4
mov ebx, eax
mov ecx, edi
call fcn.140045ba4
cmp ebx, eax
jne 0x140005542
inc rsi
cmp rsi, r12
jne 0x140005513
mov bl, 1
mov rdi, qword [rbp - 0x68]
mov r15d, dword [rsp + 0x30]
jmp 0x14000554d
mov r15d, dword [rsp + 0x30]
mov rdi, qword [rbp - 0x68]
xor bl, bl
test r15b, 2
je 0x1400055ad
and r15d, 0xfffffffd
mov r8, qword [rsp + 0x50]
cmp r8, 0x10
jb 0x140005595
lea rdx, [r8 + 1]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005590
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400058ea
call fcn.14003b660
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], socket
mov byte [rsp + 0x38], r12b
jmp 0x1400055b0
xor r12d, r12d
test r15b, 1
je 0x1400055f7
and r15d, 0xfffffffe
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400055f7
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400058f0
call fcn.14003b660
mov rsi, qword [rsp + 0x58]
test bl, bl
je 0x14000568d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.zip.dll_zip_source_file]
test rax, rax
je 0x140005666
mov r9d, 0x2000
mov r8, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.zip.dll_zip_file_add]
lea rdx, str.Added
lea rcx, [0x1400866b0]
call fcn.140012e20
mov rcx, rax
mov rdx, r14
call fcn.140012e20
mov rcx, rax
lea rdx, str._to
call fcn.140012e20
lea rdx, str.archive.zip
jmp 0x14000567c
lea rdx, str.Error:_Failed_to_add_file_to_ZIP_archive:
lea rcx, [0x140086960]
call fcn.140012e20
mov rdx, r14
mov rcx, rax
call fcn.140012e20
mov rcx, rax
call fcn.1400130d0
nop
cmp rdi, 0x10
mov r14d, 0x128
jb 0x140005260
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400056ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400058d8
call fcn.14003b660
jmp 0x140005260
mov rbx, qword [r13 + 0x128]
test rbx, rbx
je 0x140005720
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x1400056fe
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x480], 0xffffffffffffffff
mov rcx, qword [rbx + 0x488]
test rcx, rcx
je 0x140005716
call fcn.14004994c
mov qword [rbx + 0x488], r12
mov rcx, rbx
call fcn.14004994c
jmp 0x14000572a
mov ecx, 9
call fcn.1400491dc
mov qword [r13 + 0x128], r12
mov rcx, r13
call fcn.14004994c
mov rcx, rsi
call qword [sym.imp.zip.dll_zip_close]
cmp eax, 0xffffffff
jne 0x140005753
lea rdx, str.Error:_Failed_to_close_ZIP_archive
jmp 0x14000520a
lea rdx, str.ZIP__EXIST
lea rcx, [0x1400866b0]
call fcn.140012e20
mov rcx, rax
call fcn.1400130d0
lea rdx, [0x1400774e8]
lea rcx, str.archive.zip
call fcn.140042290
test rax, rax
je 0x1400057bf
mov rcx, rax
call fcn.140044fc8
mov edx, 2
lea rcx, str.archive.zip
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1400057bf
lea rdx, str.Error:_Failed_to_set_ZIP_archive_as_hidden
lea rcx, [0x140086960]
call fcn.140012e20
mov rcx, rax
call fcn.1400130d0
lea rdx, [rbp - 0x50]
lea rcx, [0x1400774c8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400058d1
nop dword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
lea rax, [rbp - 0x24]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005800
lea rdx, [rbp - 0x24]
lea rcx, [rbp - 0x80]
call fcn.140013ac0
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140005841
lea rdx, str.Deleted_file:
lea rcx, [0x140086840]
jmp 0x14000584f
lea rdx, str.Failed_to_delete_file:
lea rcx, [0x140086af0]
call fcn.1400127f0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
mov r8, qword [rbp - 0x70]
cmovae rdx, qword [rbp - 0x80]
mov rcx, rax
call fcn.140016680
mov rcx, rax
call fcn.140012d90
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400058b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400058de
call fcn.14003b660
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400057e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x140005223
call fcn.14004aff0
int3
call fcn.14004aff0
nop
call fcn.1400121b0
int3
call fcn.14004aff0
nop
call fcn.14004aff0
int3