Function at 0x140007dd0
Capabilities:
Copy file
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x2d8], rbx
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r9
movzx r14d, r8w
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400082f0
test rdx, rdx
je 0x1400082f0
xor r15d, r15d
mov r12d, r15d
mov dword [rsp + 0x48], r15d
mov ecx, 0x1ffff
call fcn.14008c4a0
mov r13, rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r15 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000828e
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 0x1fffe
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000828e
cmp dword [rsp + 0x48], r15d
je 0x14000828e
mov byte [rsp + 0x170], r12b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x171]
call fcn.1400c2840
mov rdx, rbx
lea rcx, [rsp + 0x170]
sub rcx, rbx
nop
nop
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x140007ee0
mov byte [rsp + 0x60], r12b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x61]
call fcn.1400c2840
cmp dword [0x140167dec], r12d
je 0x140007f4b
test rsi, rsi
je 0x140007f33
cmp byte [rsi], r12b
je 0x140007f33
lea rcx, [rsp + 0x60]
sub rcx, rsi
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
add rsi, 1
test al, al
jne 0x140007f20
jmp 0x140007fe0
mov r8d, 0x103
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x140007fe0
lea rcx, [rsp + 0x60]
sub rcx, rbx
nop
nop
nop
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
add rbx, 1
test al, al
jne 0x140007f60
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
sub rcx, 2
cmp rcx, 1
jle 0x140007fae
nop
nop
movzx eax, byte [rsp + rcx + 0x60]
cmp al, 0x5c
je 0x140007fa9
cmp al, 0x2f
je 0x140007fa9
sub rcx, 1
cmp rcx, 1
jg 0x140007f90
jmp 0x140007fae
mov byte [rsp + rcx + 0x61], r12b
lea rdi, [rsp + 0x60]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rdx, qword [str.eb70setup_stub.bin]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x140007fd0
xor r8d, r8d
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, 0x3e8
lea rcx, [rsp + 0x170]
call fcn.140001650
mov rdi, rax
test rax, rax
je 0x14000823c
mov rcx, rax
call fcn.1400015a0
mov ebx, eax
test eax, eax
je 0x14000803a
mov rcx, rdi
call fcn.140001280
mov rdx, rdi
lea rcx, [rsp + 0x170]
call fcn.140001930
mov rcx, rdi
call fcn.14008c4f0
xor edx, edx
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov rdi, rax
test rax, rax
je 0x140008147
movzx r8d, r14w
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.RT_RCDATA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x1400080f5
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
je 0x1400080a0
mov r12d, 1
jmp 0x140008197
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xdf0d
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov edx, 0x3e8
mov r8d, 1
mov rcx, qword [rsp + 0x40]
call fcn.140007590
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
jmp 0x140008197
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xdf0e
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov edx, 0x3e8
mov r8d, 1
mov rcx, qword [rsp + 0x40]
call fcn.140007590
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
jmp 0x140008197
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xdf0f
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov edx, 0x3e8
mov r8d, 1
mov rcx, qword [rsp + 0x40]
call fcn.140007590
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
test ebx, ebx
je 0x1400082de
mov r12d, r15d
mov edx, 0x3e8
lea rcx, [rsp + 0x170]
call fcn.140001650
mov rdi, rax
test rax, rax
je 0x1400081e7
mov rcx, rax
call fcn.140001c80
mov rdx, rdi
lea rcx, [rsp + 0x170]
call fcn.140001930
mov rcx, rdi
call fcn.14008c4f0
mov r12d, 1
jmp 0x1400082de
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xdf0f
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov edx, 0x3e8
mov r8d, 1
mov rcx, qword [rsp + 0x40]
call fcn.140007590
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
jmp 0x1400082de
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xdf0f
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov edx, 0x3e8
mov r8d, 1
mov rcx, qword [rsp + 0x40]
call fcn.140007590
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
jmp 0x1400082de
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xdf10
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov edx, 0x3e8
mov r8d, 1
mov rcx, qword [rsp + 0x40]
call fcn.140007590
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
test r13, r13
je 0x1400082eb
mov rcx, r13
call fcn.14008c4f0
mov eax, r12d
jmp 0x1400082f2
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400c2a20
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret