Function at 0x14004394c
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13, r8
mov rax, qword [r9]
xor r14d, r14d
cmp word [rax + 2], r14w
setne byte [rsp + 0x40]
lea edi, [r14 + 0x7c]
mov edx, edi
mov rcx, r8
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
mov qword [rsp + 0x60], rax
lea r15d, [r14 + 0x2b]
cmp rax, r14
jne 0x1400439f0
mov rdx, r13
lea rcx, [rsp + 0x48]
call fcn.140071240
nop
lea rcx, [rsp + 0x48]
call fcn.14006b540
cmp al, r14b
jle 0x1400439e1
mov di, r15w
mov edx, r15d
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
call fcn.14005b520
mov rbx, qword [rsp + 0x60]
mov rbp, r14
or rsi, 0xffffffffffffffff
mov r12, rsi
cmp rbx, r14
je 0x140043a54
mov word [rbx], r14w
add qword [rsp + 0x60], 2
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140068f80
movsxd rbp, dword [rsp + 0x48]
mov rcx, r14
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x60]
cmp di, word [rax]
jne 0x140043a51
add rax, 2
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140068f80
mov rcx, qword [rsp + 0x48]
movsxd r12, ecx
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140071240
nop
cmp rbx, r14
je 0x140043a6b
mov word [rbx], r15w
mov dword [rsp + 0x80], r14d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x68]
call fcn.14007d150
mov dil, al
mov r15d, dword [rsp + 0xf8]
sar r15d, 0x10
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x5c], r14d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call fcn.14001c9cc
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
mov r9d, 7
mov r8d, 0x80000000
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14001c898
mov rbx, qword [rsp + 0x48]
cmp rbx, r14
jne 0x140043b09
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
jmp 0x140043d6e
cmp dil, r14b
je 0x140043b1e
mov dl, dil
mov rcx, rbx
call fcn.14005fe50
mov rdi, rax
jmp 0x140043b36
mov qword [rsp + 0x70], r14
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x70]
cmp rdi, r14
jle 0x140043e96
cmp rdi, rbp
jl 0x140043e96
cmp rbp, r14
jle 0x140043b50
sub rdi, rbp
mov eax, 0x10000000
cmp rdi, rax
cmovg rdi, rax
cmp r12, r14
jle 0x140043b68
cmp rdi, r12
cmovg rdi, r12
lea r12d, [rdi + 0x10]
mov edx, r12d
lea rcx, [rsp + 0x50]
call fcn.1400632e0
mov r14, qword [rsp + 0x50]
xor eax, eax
cmp r14, rax
jne 0x140043bab
cmp rbx, rsi
je 0x140043b94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
mov esi, dword [rsp + 0xf8]
jmp 0x140043d6e
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x5c], r12d
xor r12d, r12d
cmp rbp, r12
jle 0x140043bce
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [rsp + 0x48]
cmp edi, r12d
cmovl edi, r12d
movsxd rcx, edi
add rcx, r14
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14010c6c0
nop
cmp rbx, rsi
je 0x140043c17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x5c], edi
mov rdx, r13
mov rbx, qword [rsp + 0xe8]
mov rcx, rbx
call fcn.140063600
lea rdx, [0x140140490]
mov rcx, rbx
call fcn.140063600
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0x50]
call fcn.14005e970
mov bl, al
mov esi, 1
cmp al, r12b
je 0x140043cb8
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x7c], edi
mov dword [rsp + 0x78], edi
movzx r8d, r15w
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140067770
mov rcx, qword [rsp + 0x70]
call fcn.14005b500
movsx r11d, bl
or r11d, dword [rsp + 0xf8]
mov r14d, r11d
mov ebx, r11d
lea rcx, [rsp + 0x70]
call fcn.14005b520
jmp 0x140043cd9
mov rax, qword [rsp + 0x50]
dec edi
cmp edi, r12d
jl 0x140043cce
xor byte [rax], r15b
add rax, rsi
sub edi, esi
jns 0x140043cc4
mov r14d, dword [rsp + 0xf8]
mov ebx, r14d
or ebx, 3
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140081dc0
movzx edx, r15w
mov rcx, qword [rsp + 0x50]
call fcn.14002d37c
movsxd rdi, eax
lea ebx, [rdi + rdi]
mov rax, qword [rsp + 0xf0]
movzx r13d, word [rax + 0x70]
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x58], edi
lea edx, [rbx + 0x23]
mov rcx, qword [rsp + 0x50]
call fcn.1400631b0
mov qword [rsp + 0x50], rax
movsxd rcx, ebx
add rcx, rax
mov word [rcx + 0x20], r12w
mov eax, 0xf
mov word [rcx + rax*2], r15w
sub rax, rsi
jns 0x140043d33
mov rsi, qword [rsp + 0x50]
mov r8b, byte [rsp + 0x40]
mov rdx, rsi
mov r15, qword [rsp + 0xf0]
mov rcx, r15
call fcn.1400367d8
cmp word [rsi], r13w
jne 0x140043d7f
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
mov esi, r12d
lea rcx, [rsp + 0x68]
call fcn.14005b520
mov eax, esi
jmp 0x140043ebc
mov r8, qword [rsp + 0xd0]
cmp qword [r8], r12
je 0x140043d9c
movzx edx, r13w
mov rcx, qword [r8]
call fcn.14002d37c
mov ebx, eax
jmp 0x140043d9f
mov ebx, r12d
mov rbp, rdi
movzx eax, word [r15 + 0x78]
cmp word [rsi + rdi*2 - 2], ax
mov eax, 1
cmovne r12d, eax
lea eax, [r12 + rbx]
lea edx, [rax + rdi + 0x10]
lea edx, [rdx + rdx + 2]
mov rcx, qword [r8]
call fcn.1400631b0
mov rcx, qword [rsp + 0xd0]
mov qword [rcx], rax
mov edx, dword [rsp + 0xd8]
cmp edx, ebx
cmovg edx, ebx
mov dword [rsp + 0xd8], edx
movsxd rcx, edx
lea rdi, [rax + rcx*2]
cmp ebx, edx
jle 0x140043e0d
mov eax, ebx
sub eax, edx
add eax, eax
movsxd r8, eax
movsxd rax, r12d
add rax, rbp
lea rcx, [rdi + rax*2]
mov rdx, rdi
call fcn.14010cd30
xor eax, eax
cmp r12d, eax
je 0x140043e1d
movzx eax, word [r15 + 0x78]
mov word [rdi + rbp*2], ax
lea r8, [rbp + rbp]
mov rdx, rsi
mov rcx, rdi
call fcn.14010cd30
movsxd rax, r12d
movsxd rcx, ebx
add rax, rbp
add rcx, rax
mov rbx, qword [rsp + 0xd0]
mov rax, qword [rbx]
mov word [rax + rcx*2], r13w
mov rcx, qword [rsp + 0x50]
call fcn.14005b500
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov r9, qword [rsp + 0xe8]
mov r8d, ebp
mov edx, dword [rsp + 0xd8]
mov rcx, rbx
call fcn.1400435c0
movzx ebx, ax
or ebx, r14d
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
lea rcx, [rsp + 0x68]
call fcn.14005b520
mov eax, ebx
jmp 0x140043ebc
cmp rbx, rsi
je 0x140043ea5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
lea rcx, [rsp + 0x68]
call fcn.14005b520
mov eax, esi
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret