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

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x48
mov rdi, rcx
mov rcx, qword [rcx]
mov r14, rdx
mov ebp, 0x1388
mov rbx, rdx
test rcx, rcx
jne 0x140287d6d
or eax, 0xffffffff
add rsp, 0x48
pop r14
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14038cd88]
call qword [sym.imp.MSVCR120.dll_fopen]
mov qword [rdi + 8], rax
test rax, rax
je 0x140287d60
mov edx, 1
lea rcx, [rdi + 0x30]
mov r9, rax
lea r8d, [rdx + 2]
mov qword [rsp + 0x30], r13
call qword [sym.imp.MSVCR120.dll_fread]
cmp rax, 3
jb 0x140288219
lea rdx, [rdi + 0x30]
lea rcx, [0x14038cd8c]
mov r8d, 3
call qword [sym.imp.MSVCR120.dll_strncmp]
test eax, eax
je 0x140287de2
lea rdx, [rdi + 0x30]
lea rcx, [0x14038cd90]
mov r8d, 3
call qword [sym.imp.MSVCR120.dll_strncmp]
test eax, eax
jne 0x140288219
lea rdx, [rdi + 0x30]
lea rcx, [0x14038cd94]
mov r8d, 3
mov qword [rsp + 0x28], r15
call qword [sym.imp.MSVCR120.dll_strncmp]
xor r15d, r15d
test eax, eax
jne 0x140287ebe
test r14, r14
jne 0x140287e33
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, [0x14038cdb8]
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf]
or eax, 0xffffffff
jmp 0x1402881d3
mov r9, qword [rdi + 8]
mov edx, 1
lea rcx, [rsp + 0x78]
mov r8d, edx
call qword [sym.imp.MSVCR120.dll_fread]
cmp rax, 1
jae 0x140287e75
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, [0x14038cde0]
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf]
or eax, 0xffffffff
jmp 0x1402881d3
movzx eax, byte [r14]
xor cl, cl
test al, al
je 0x140287e8e
nop
xor cl, al
movzx eax, byte [rbx + 1]
lea rbx, [rbx + 1]
test al, al
jne 0x140287e80
cmp cl, byte [rsp + 0x78]
je 0x140287eb9
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, str.error:__s:_missing_or_bad_password_n
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf]
or eax, 0xffffffff
jmp 0x1402881d3
mov rbx, r14
jmp 0x140287ec1
mov r14, r15
mov r9, qword [rdi + 8]
mov edx, 1
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 1]
call qword [sym.imp.MSVCR120.dll_fread]
cmp rax, 2
jae 0x140287f04
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, [0x14038ce28]
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf]
or eax, 0xffffffff
jmp 0x1402881d3
movzx eax, byte [rsp + 0x78]
movzx ecx, byte [rsp + 0x79]
mov qword [rsp + 0x40], rsi
test r14, r14
je 0x140287f2e
xor al, byte [rbx]
inc rbx
cmp byte [rbx], r15b
mov byte [rsp + 0x78], al
cmove rbx, r14
xor cl, byte [rbx]
mov byte [rsp + 0x79], cl
movzx esi, al
movzx eax, cl
mov ecx, 0xea60
shl esi, 8
add esi, eax
mov dword [rsp + 0x88], esi
call qword [sym.imp.MSVCR120.dll_malloc]
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x140287f79
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, str.error:__s:_missing_memory_n
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf]
or eax, 0xffffffff
jmp 0x1402881ce
mov dword [rax + 4], r15d
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x80], r15d
mov dword [rax + 8], r15d
test esi, esi
jle 0x1402881a5
nop word [rax + rax]
mov r9, qword [rdi + 8]
mov edx, 1
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 1]
call qword [sym.imp.MSVCR120.dll_fread]
cmp rax, 2
jb 0x140288200
test r14, r14
je 0x140287fea
inc rbx
cmp byte [rbx], 0
cmove rbx, r14
inc rbx
movzx eax, byte [rbx - 1]
xor byte [rsp + 0x78], al
cmp byte [rbx], 0
cmove rbx, r14
movzx eax, byte [rbx]
xor byte [rsp + 0x79], al
mov r9, qword [rdi + 8]
mov edx, 1
lea rcx, [rsp + 0x70]
mov r8d, edx
call qword [sym.imp.MSVCR120.dll_fread]
cmp rax, 1
jb 0x1402881e7
movzx eax, byte [rsp + 0x70]
test r14, r14
je 0x140288025
inc rbx
cmp byte [rbx], 0
cmove rbx, r14
xor al, byte [rbx]
mov byte [rsp + 0x70], al
mov r9, qword [rdi + 8]
movzx esi, al
movzx eax, al
shr eax, 3
lea rcx, [rdi + 0x30]
mov edx, 1
inc eax
shr rsi, 3
movsxd r8, eax
call qword [sym.imp.MSVCR120.dll_fread]
lea rcx, [rsi + 1]
cmp rax, rcx
jb 0x1402881a9
test r14, r14
je 0x140288089
test rsi, rsi
js 0x140288089
lea rcx, [rdi + 0x30]
lea rdx, [rsi + 1]
nop dword [rax]
inc rbx
lea rcx, [rcx + 1]
cmp byte [rbx], 0
cmove rbx, r14
movzx eax, byte [rbx]
xor byte [rcx - 1], al
dec rdx
jne 0x140288070
movzx r9d, byte [rsp + 0x70]
xor r11d, r11d
mov r10d, r11d
mov esi, r11d
test r9b, r9b
je 0x140288160
mov eax, esi
movsxd r15, r10d
mov ecx, 7
cdq
and edx, 7
add eax, edx
mov r8d, eax
and eax, 7
sub eax, edx
sar r8d, 3
sub ecx, eax
movsxd rax, r8d
mov r8, qword [rdi + 0x28]
movzx edx, cl
movsx ecx, byte [rax + rdi + 0x30]
mov eax, r11d
bt ecx, edx
setb al
movsxd r12, eax
lea rcx, [r12 + r15*2]
add rcx, r15
mov r10d, dword [r8 + rcx*4 + 4]
test r10d, r10d
jne 0x140288152
inc dword [rdi + 0x14]
cmp dword [rdi + 0x14], ebp
jne 0x140288114
add ebp, 0x1388
mov rcx, r8
movsxd rax, ebp
lea rdx, [rax + rax*2]
shl rdx, 2
call qword [sym.imp.MSVCR120.dll_realloc]
xor r11d, r11d
mov qword [rdi + 0x28], rax
movsxd rax, dword [rdi + 0x14]
lea rdx, [r12 + r15*2]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x28]
add rdx, r15
mov dword [rax + rcx*4 + 4], r11d
movsxd rax, dword [rdi + 0x14]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x28]
mov dword [rax + rcx*4 + 8], r11d
mov rcx, qword [rdi + 0x28]
mov eax, dword [rdi + 0x14]
mov dword [rcx + rdx*4 + 4], eax
mov r10d, dword [rdi + 0x14]
movzx r9d, byte [rsp + 0x70]
inc esi
movzx eax, r9b
cmp esi, eax
jl 0x1402880a1
mov esi, dword [rsp + 0x80]
movsxd rax, r10d
lea rcx, [rax + rax*2]
movzx eax, byte [rsp + 0x78]
inc esi
lea rdx, [rcx*4]
mov rcx, qword [rdi + 0x28]
mov dword [rsp + 0x80], esi
mov byte [rdx + rcx], al
mov rcx, qword [rdi + 0x28]
movzx eax, byte [rsp + 0x79]
mov byte [rdx + rcx + 1], al
cmp esi, dword [rsp + 0x88]
jl 0x140287fa0
xor eax, eax
jmp 0x1402881c9
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, rbx
lea rcx, [rax + 0x60]
lea rdx, [0x14038cea8]
call qword [sym.imp.MSVCR120.dll_fprintf]
or eax, 0xffffffff
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
add rsp, 0x48
pop r14
pop rdi
pop rbp
pop rbx
ret
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, rbx
lea rcx, [rax + 0x60]
lea rdx, [0x14038ce88]
jmp 0x1402881c0
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, rbx
lea rcx, [rax + 0x60]
lea rdx, [0x14038ce68]
jmp 0x1402881c0
mov rbx, qword [rdi]
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, [0x14038cd98]
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf]
mov r13, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x48
pop r14
pop rdi
pop rbp
pop rbx
ret