Function at 0x1400241e0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x458
mov r13, qword [0x1400f6e30]
xor edx, edx
mov rax, qword [r13]
mov qword [rsp + 0x448], rax
xor eax, eax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.140023f40
mov rcx, rsi
call fcn.140023d90
cmp dword [rsp + 0x23c], eax
jne 0x14002455a
mov rcx, rsi
mov edx, 1
call fcn.140023f40
mov rcx, rsi
call fcn.140023d90
cmp dword [rsp + 0x23c], eax
jne 0x140024549
mov rcx, rsi
mov edx, 2
call fcn.140023f40
mov rcx, rsi
call fcn.140023d90
cmp dword [rsp + 0x23c], eax
jne 0x140024538
lea r12, [0x1400bdb80]
mov rbx, rsi
lea rbp, [rsp + 0x240]
mov rax, rsi
mov rdx, r12
nop dword [rax]
movdqu xmm0, xmmword [rax]
pxor xmm0, xmmword [rdx]
add rax, 0x10
add rdx, 0x10
movups xmmword [rax - 0x10], xmm0
cmp rax, rbp
jne 0x140024288
mov rcx, rsi
call fcn.140023d90
cmp eax, 0x53ed64b
jne 0x140024527
lea rdx, [0x1400bdb80]
mov rax, rsi
nop
movdqu xmm0, xmmword [rax]
pxor xmm0, xmmword [rdx]
add rax, 0x10
add rdx, 0x10
movups xmmword [rax - 0x10], xmm0
cmp rbp, rax
jne 0x1400242c0
mov rcx, rsi
call fcn.140023d90
cmp dword [rsp + 0x23c], eax
jne 0x140024516
mov rcx, rsi
mov edx, 3
call fcn.140023f40
mov rcx, rsi
call fcn.140023d90
cmp dword [rsp + 0x23c], eax
jne 0x140024505
lea rdi, [rsp + 0x39]
xor edx, edx
mov r8d, 0x2a
mov rcx, rsi
mov dword [rsp + 0x20], 7
mov r9, rdi
mov dword [rsp + 0x39], 0x4030201
mov dword [rsp + 0x3c], 0x7060504
call 0x140024080
cmp dword [rsp + 0x23c], 0xb1f765d7
jne 0x1400244f4
mov rcx, rsi
call fcn.140023d90
cmp eax, 0xb1f765d7
jne 0x1400244e3
mov dword [rsp + 0x20], 7
mov r9, rdi
mov edx, 1
mov rcx, rsi
mov r8d, 0x2a
call 0x140024080
cmp dword [rsp + 0x23c], 0x388b2759
jne 0x1400244d2
mov rcx, rsi
call fcn.140023d90
cmp eax, 0x388b2759
jne 0x1400244c1
mov dword [rsp + 0x20], 7
mov r9, rdi
mov edx, 2
mov rcx, rsi
mov r8d, 0x2a
call 0x140024080
cmp dword [rsp + 0x23c], 0xde10952b
jne 0x1400244b0
mov rcx, rsi
call fcn.140023d90
cmp eax, 0xde10952b
jne 0x14002449f
lea rax, [0x1400bdb80]
nop
movdqu xmm0, xmmword [rbx]
pxor xmm0, xmmword [rax]
add rbx, 0x10
add rax, 0x10
movups xmmword [rbx - 0x10], xmm0
cmp rbx, rbp
jne 0x1400243f0
mov rcx, rsi
call fcn.140023d90
cmp dword [rsp + 0x23c], eax
jne 0x140024430
lea rdx, str.jmb_get_sector_type_data___2
mov ecx, 0xe7
call fcn.140023e10
nop dword [rax + rax]
mov rdi, rbp
mov ecx, 0x40
lea rbp, [rsp + 0x240]
rep movsq qword [rdi], qword [rsi]
mov rax, rbp
lea rdx, [rsp + 0x440]
nop
movdqu xmm0, xmmword [rax]
pxor xmm0, xmmword [r12]
add rax, 0x10
add r12, 0x10
movups xmmword [rax - 0x10], xmm0
cmp rax, rdx
jne 0x140024450
mov rcx, rbp
call fcn.140023d90
cmp dword [rsp + 0x43c], eax
jne 0x14002441a
mov rax, qword [rsp + 0x448]
sub rax, qword [r13]
jne 0x14002449a
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call fcn.140082d70
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xe5
call fcn.140023e10
lea rdx, str.jmb_get_crc_data___0xde10952b
mov ecx, 0xe4
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xe2
call fcn.140023e10
lea rdx, str.jmb_get_crc_data___0x388b2759
mov ecx, 0xe1
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xdf
call fcn.140023e10
lea rdx, str.jmb_get_crc_data___0xb1f765d7
mov ecx, 0xde
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xdb
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xd9
call fcn.140023e10
lea rdx, str.jmb_crc_data___0x053ed64b
mov ecx, 0xd7
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xd5
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xd3
call fcn.140023e10
lea rdx, str.jmb_check_crc_data_
mov ecx, 0xd0
call fcn.140023e10
nop
nop dword [rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, qword [0x1400f6e30]
mov r15d, dword [rsp + 0xc8]
mov r13d, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0xd8]
mov r12d, dword [rsp + 0xe0]
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov rbx, rcx
mov r8, r9
mov rdi, r9
mov rdx, qword [rax - 0x18]
mov qword [rcx], rax
add rdx, rcx
mov rax, rdx
mov rdx, qword [rsi + 0x18]
mov qword [rax + 0xb8], rcx
lea rcx, [rcx + 8]
mov qword [rax], rdx
lea rdx, [rsi + 0x20]
call fcn.1400223f0
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x30]
movzx r9d, r13b
mov r8, qword [rdi + 0x30]
mov qword [rbx], rax
mov rax, qword [rax - 0x18]
mov qword [rbx + rax], rdx
mov rax, qword [rsi + 0x38]
mov qword [rbx + 0x18], rdi
mov qword [rbx + 8], rax
mov rax, qword [rsi]
mov rdx, qword [rsi + 0x40]
mov qword [rbx], rax
mov rax, qword [rax - 0x18]
mov qword [rbx + rax], rdx
mov rax, qword [rsi + 0x48]
lea rdx, str._s__jmb39x_disk__u_
mov byte [rbx + 0x23], r12b
lea r12, [rsp + 0x20]
mov qword [rbx + 8], rax
xor eax, eax
mov rcx, r12
mov byte [rbx + 0x20], r15b
mov byte [rbx + 0x21], r13b
mov byte [rbx + 0x22], r14b
mov word [rbx + 0x24], ax
mov dword [rbx + 0x28], 0
call fcn.140057e90
mov rax, qword [rbx]
lea rdi, [rsp + 0x30]
mov rsi, qword [rax - 0x18]
mov rax, qword [rsp + 0x20]
add rsi, rbx
mov rcx, qword [rsi + 0x30]
cmp rax, rdi
je 0x140024730
lea rdx, [rsi + 0x40]
cmp rcx, rdx
je 0x140024710
movdqu xmm0, xmmword [rsp + 0x28]
mov rdx, qword [rsi + 0x40]
mov qword [rsi + 0x30], rax
movups xmmword [rsi + 0x38], xmm0
test rcx, rcx
je 0x14002471e
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], 0
mov byte [rcx], 0
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x1400246c4
call fcn.1400a3f20
lea rdi, [rbx + 0x34]
mov qword [rbx + 0x2c], 0
xor eax, eax
mov qword [rbx + 0x224], 0
and rdi, 0xfffffffffffffff8
sub ebx, edi
lea ecx, [rbx + 0x22c]
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, qword [rsp + 0x48]
sub rax, qword [rbp]
jne 0x140024782
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movdqu xmm1, xmmword [rsp + 0x28]
mov qword [rsi + 0x30], rax
movups xmmword [rsi + 0x38], xmm1
mov qword [rsp + 0x20], rdi
mov rcx, rdi
jmp 0x1400246a9
lea rax, [rsi + 0x30]
cmp r12, rax
je 0x140024723
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x14002475a
cmp r8, 1
je 0x140024770
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x30]
mov qword [rsi + 0x38], r8
mov byte [rcx + r8], 0
mov rcx, qword [rsp + 0x20]
jmp 0x1400246a9
movzx eax, byte [rsp + 0x30]
mov byte [rcx], al
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x30]
jmp 0x14002475a
call fcn.140082d70
mov rcx, rax
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov qword [rbx], rax
mov rax, qword [rax - 0x18]
mov qword [rbx + rax], rdx
call fcn.1400848e0
mov rdi, rax
mov rcx, rbx
lea rdx, [rsi + 8]
call fcn.140094700
mov rcx, rdi
call fcn.1400848e0
nop
nop word [rax + rax]