Function at 0x140027b68
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf0
mov rax, qword [0x140070070]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x51], r9
mov esi, r8d
mov dword [rbp - 0x59], r8d
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], 0xf
mov byte [rbp - 0x49], r14b
test r8d, r8d
je 0x140027f8f
cmp dword [rbp + 0x7f], r14d
je 0x140027f8f
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140027c10
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov rcx, rbx
jmp 0x140027f9a
mov rdi, r14
mov r13d, r14d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
mov ecx, 0x10
call fcn.14002be78
mov qword [rax + 8], r14
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
mov qword [rax], rcx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140027eb6
cmp dword [rsp + 0x48], 4
jne 0x140027eb6
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 5]
cmp eax, 0xfffa
ja 0x140027eb6
cmp r13d, ecx
jae 0x140027ca8
mov r13d, ecx
mov rcx, rdi
call fcn.140032990
mov ecx, r13d
call fcn.14003941c
mov rdi, rax
mov ecx, dword [rsp + 0x40]
mov dword [rdi], ecx
mov r8d, dword [rsp + 0x40]
add r8d, 0xfffffffc
lea rdx, [rdi + 4]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140027eb6
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 4]
cmp dword [rsp + 0x48], eax
jne 0x140027eb6
movzx eax, word [rdi + 0x38]
cmp eax, ecx
jae 0x140027eb6
movzx edx, word [rdi + 0x3a]
cmp edx, ecx
jae 0x140027eb6
movzx eax, word [rdi + 0x3c]
cmp eax, ecx
jae 0x140027eb6
movzx eax, word [rdi + 0x3e]
cmp eax, ecx
ja 0x140027eb6
cmp dword [rdi + 0x30], esi
jne 0x140027c46
lea r14, [rdi + rdx]
xor esi, esi
mov qword [rbp - 9], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov edx, 0x100
lea rcx, [rbp - 9]
call fcn.140023330
mov eax, 0x29e9
xor ax, word [r14]
je 0x140027d74
movzx edx, ax
lea rcx, [rbp - 9]
call fcn.140023510
inc esi
mov eax, esi
and eax, 0x3f
lea rdx, [0x14005f760]
movzx eax, word [rdx + rax*2]
xor ax, word [r14 + rsi*2]
jne 0x140027d4f
mov rax, qword [rbp - 0x51]
mov rdx, qword [rax]
xor r14d, r14d
cmp dword [rdx - 0x10], r14d
je 0x140027da0
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call fcn.14002e01c
test rax, rax
je 0x140027ea5
mov eax, dword [rbp + 0x7f]
cmp qword [rbp - 0x61], rax
jb 0x140027e16
mov rcx, qword [rbp - 0x71]
dec rcx
and rcx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x79]
mov rsi, qword [rax + rcx*8]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140027df6
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140027df1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140027fd1
mov rcx, r8
call fcn.14002bbcc
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r14b
sub qword [rbp - 0x61], 1
jne 0x140027e12
mov qword [rbp - 0x69], r14
jmp 0x140027e16
inc qword [rbp - 0x69]
mov esi, dword [rsp + 0x40]
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], r14b
lea rcx, [rbp - 0x29]
cmp rsi, 0xf
ja 0x140027e4e
mov qword [rbp - 0x19], rsi
mov r8d, esi
mov rdx, rdi
call fcn.14002d5d0
mov byte [rbp + rsi - 0x29], r14b
jmp 0x140027e5a
mov r9, rdi
mov rdx, rsi
call fcn.14000f314
nop
lea rdx, [rbp - 0x29]
lea rcx, [rsp + 0x50]
call fcn.1400280f8
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140027ea5
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027e9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027fd7
call fcn.14002bbcc
nop
lea rcx, [rbp - 9]
call fcn.140016d18
mov esi, dword [rbp - 0x59]
jmp 0x140027c46
mov rcx, rdi
call fcn.140032990
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
mov rdi, rcx
mov rsi, qword [rsp + 0x50]
add rcx, qword [rbp - 0x61]
cmp rdi, rcx
je 0x140027f1e
test rsi, rsi
je 0x140027ee6
mov rax, qword [rsi]
jmp 0x140027ee9
mov rax, r14
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, rdi
mov rax, qword [rax + 8]
mov r8, qword [rax + rcx*8]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140027f08
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x49]
call fcn.14000cc44
inc rdi
mov rcx, qword [rbp - 0x69]
jmp 0x140027ed3
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov r8d, 0x20
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.14002d5d0
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], 0xf
mov byte [rbp - 0x49], r14b
lea rcx, [rsp + 0x50]
call fcn.140027fe0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x140027faa
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027f88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027fcb
call fcn.14002bbcc
jmp 0x140027faa
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
mov r8d, 0x20
lea rdx, [rbp - 0x49]
call fcn.14002d5d0
nop
mov rax, rbx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14002b930
add rsp, 0xf0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14003274c
nop
call fcn.14003274c
nop
call fcn.14003274c
int3