Function at 0x180067780
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1b0]
sub rax, 8
mov rdx, qword [rsp + 0x1b8]
mov rcx, rax
call fcn.1800671e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18006827c
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 0
je 0x18006780d
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 0xb
jne 0x180067e13
mov dword [rsp + 0x48], 3
mov eax, dword [rsp + 0x1c8]
cmp dword [rsp + 0x48], eax
jge 0x180067e0e
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax - 3]
mov r8d, 4
lea rdx, str._r_n_r_n
mov rcx, rax
call fcn.180038300
test eax, eax
jne 0x180067dff
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsp + 0x48]
inc eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x18]
mov qword [rsp + 0x90], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0x98], rcx
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, rax
mov rax, qword [rsp + 0x98]
call qword [rax + 0x40]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jl 0x180067df5
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x1c8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c8], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x68]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 5
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 1
jne 0x180067a82
cmp dword [rsp + 0x38], 0
jle 0x180067a82
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
mov r8d, dword [rsp + 0x38]
xor edx, edx
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x58], rax
cmp dword [rsp + 0x1c8], 0
jle 0x18006797f
movsxd rax, dword [rsp + 0x1c8]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call fcn.180037eb0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 8
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x1c8]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0x20], ecx
jl 0x180067a7d
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x58]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x58], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0xe0]
call fcn.1800314c0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xf0], rax
call fcn.180031650
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0xe0]
mov r8d, 0x67
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x18]
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x48], 0
je 0x180067a7d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x48]
cmp qword [rax + 0x28], rcx
jne 0x180067a7d
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov qword [rax + 0x40], rcx
jmp 0x180067dd2
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 2
jne 0x180067d2c
cmp dword [rsp + 0x38], 0
jle 0x180067d2c
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x48]
cmp eax, 0xc8
jne 0x180067c93
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rcx, rax
call fcn.180006090
mov rcx, rax
call fcn.1800545a0
mov rax, qword [rsp + 0x30]
add rax, 0x30
lea r8, [0x1800899d4]
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.18001e8a0
nop
lea rcx, [rsp + 0x158]
call fcn.180006090
lea rdx, [0x18008cca0]
mov rcx, rax
call fcn.180042268
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x50], 0
je 0x180067b57
cmp dword [rsp + 0x1c8], 0
jle 0x180067b57
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x50]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.180043364
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 6
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x1c8]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0x20], ecx
jl 0x180067c18
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x50], 0
je 0x180067c0c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call fcn.180042428
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call fcn.1800424f0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rcx, rax
call fcn.180006090
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x158]
call fcn.180006090
xor r8d, r8d
mov rcx, qword [rsp + 0xa0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rsp + 0x158]
call fcn.180006090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0xc0]
call fcn.1800314c0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xc4], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0xc8], eax
call fcn.180031650
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0xc0]
mov r8d, 0x66
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x158]
call fcn.1800058a0
jmp 0x180067d27
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x1c8]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 9
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0x20], ecx
jl 0x180067d27
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0xf8]
call fcn.1800314c0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x108], rax
call fcn.180031650
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0xf8]
mov r8d, 0x67
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
jmp 0x180067dd2
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0x110]
call fcn.1800314c0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x120], rax
call fcn.180031650
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0x110]
mov r8d, 0x67
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x78]
call qword [rax + 0x18]
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x48], 0
je 0x180067dd2
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x48]
cmp qword [rax + 0x28], rcx
jne 0x180067dd2
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov qword [rax + 0x40], rcx
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x1c8], 0
mov dword [rsp + 0x48], 3
jmp 0x180067e09
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
jmp 0x180067815
jmp 0x18006827c
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 8
jne 0x180067f5f
cmp dword [rsp + 0x1c8], 0
jle 0x180067e53
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x30]
movsxd rcx, dword [rcx + 0x20]
mov rdx, qword [rsp + 0x30]
add rcx, qword [rdx + 0x58]
mov r8, rax
mov rdx, qword [rsp + 0x40]
call fcn.180037eb0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
add eax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x68]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
cmp dword [rax + 0x20], ecx
jl 0x180067f37
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x58]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x58], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0x128]
call fcn.1800314c0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x138], rax
call fcn.180031650
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0x128]
mov r8d, 0x67
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x18]
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x1c8], 0
jmp 0x18006827c
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 6
jne 0x18006819d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x50], 0
je 0x180067fa7
cmp dword [rsp + 0x1c8], 0
jle 0x180067fa7
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x50]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.180043364
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
add eax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x68]
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 0x20], eax
jl 0x1800680f8
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x50], 0
je 0x1800680ec
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call fcn.180042428
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call fcn.1800424f0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x30]
add rax, 0x30
lea r8, [0x1800899f4]
mov rdx, rax
lea rcx, [rsp + 0x178]
call fcn.18001e8a0
nop
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rcx, rax
call fcn.180006090
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x178]
call fcn.180006090
xor r8d, r8d
mov rcx, qword [rsp + 0xa8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rsp + 0x178]
call fcn.180006090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x58]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jle 0x1800680df
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rcx, rax
call fcn.180006090
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.180052b70
nop
lea rcx, [rsp + 0x178]
call fcn.1800058a0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x10], 0
je 0x180068175
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x68]
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rsp + 0x1b0]
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0xb0], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0xb8], rcx
mov r8, qword [rsp + 0x30]
mov r9d, dword [r8 + 0x20]
mov r8d, eax
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0xb0]
mov rcx, rax
mov rax, qword [rsp + 0xb8]
call qword [rax + reloc.WS2_32.dll_htonl]
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x1c8], 0
jmp 0x18006827c
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 9
jne 0x18006827c
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
add eax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x20], eax
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x1c8], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x68]
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 0x20], eax
jl 0x18006827c
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0x140]
call fcn.1800314c0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x150], rax
call fcn.180031650
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0x140]
mov r8d, 0x67
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x88]
call qword [rax + 0x18]
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x1a8
ret