Function at 0x140010530
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
sub rsp, 0x4c8
xor esi, esi
mov dword [rsp + 0x5c], 0xff
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x500], esi
mov rbx, rcx
call fcn.1400100b0
test rax, rax
jne 0x140010575
add rsp, 0x4c8
pop rsi
pop rbx
ret
mov eax, dword [rbx + 4]
mov qword [rsp + 0x4c0], rdi
mov edi, dword [rsp + 0x40]
mov dword [rsp + 0x84], eax
cdq
mov r8d, eax
mov qword [rsp + 0x4b0], r13
mov eax, dword [rsp + 0x5c]
xor r8d, edx
mov r13d, dword [rsp + 0x44]
sub r8d, edx
mov qword [rsp + 0x4a8], r14
mov r14d, dword [rsp + 0x48]
mov dword [rbx + 4], r8d
mov dword [rsp + 0x4f8], eax
cmp r14d, 0xc
jne 0x1400105dd
cmp edi, 0x18
jge 0x1400105f5
lea ecx, [r13 - 0x26]
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400105ee
cmp edi, 0x10
jge 0x1400105f5
mov esi, r13d
sub esi, r14d
sub esi, 0xe
sar esi, 2
mov dword [rsp + 0x500], esi
mov ecx, dword [rbx]
xor eax, eax
cmp dword [rsp + 0x58], eax
setne al
add eax, 3
mov dword [rbx + 8], eax
test ecx, ecx
js 0x1400112ea
jne 0x14001061a
lea r9d, [rcx*4]
jmp 0x14001063c
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400112ea
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400112ea
test r8d, r8d
js 0x1400112ea
je 0x140010659
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400112ea
mov qword [rsp + 0x4e0], rbp
test ecx, ecx
jne 0x14001066f
lea r9d, [rcx*4]
jmp 0x140010692
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400112d5
lea edx, [rcx*4]
test edx, edx
js 0x1400112d5
mov r9d, edx
test r8d, r8d
je 0x1400106a9
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400112d5
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x88], rax
mov rbp, rax
test rax, rax
je 0x1400112d5
mov qword [rsp + 0x4b8], r12
mov qword [rsp + 0x4a0], r15
cmp edi, 0x10
jge 0x140010b44
xor edi, edi
test esi, esi
je 0x140010b32
cmp esi, 0x100
jg 0x140010b32
movsxd rax, esi
test esi, esi
lea rsi, [rbx + 0xc0]
jle 0x140010849
xor r12d, r12d
lea r14, [rbx + 0x30]
mov rbp, rax
nop dword [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rsi]
jae 0x14001073b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010764
cmp dword [rbx + 0x30], edi
lea r14, [rbx + 0x30]
je 0x140010762
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010764
xor cl, cl
mov r15, r14
mov byte [rsp + r12*4 + 0xa2], cl
cmp rax, qword [rsi]
jae 0x140010783
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400107a8
cmp dword [r14], edi
je 0x1400107a6
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400107a8
xor cl, cl
mov byte [rsp + r12*4 + 0xa1], cl
mov rcx, qword [rsi]
cmp rax, rcx
jae 0x1400107cb
movzx edx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400107f3
cmp dword [r14], edi
je 0x1400107f1
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
mov rcx, qword [rsi]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400107f3
xor dl, dl
cmp dword [rsp + 0x48], 0xc
mov byte [rsp + r12*4 + 0xa0], dl
je 0x140010827
cmp rax, rcx
jae 0x140010813
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010827
cmp dword [r15], edi
je 0x140010827
mov rcx, rbx
call fcn.140007430
inc qword [rbx + 0xb8]
mov byte [rsp + r12*4 + 0xa3], 0xff
inc r12
cmp r12, rbp
jl 0x140010720
mov rbp, qword [rsp + 0x88]
mov r14d, dword [rsp + 0x48]
xor eax, eax
cmp r14d, 0xc
setne al
add eax, 3
imul eax, dword [rsp + 0x500]
sub r13d, eax
sub r13d, r14d
sub r13d, 0xe
jns 0x140010875
mov rax, qword [rsi]
mov qword [rbx + 0xb8], rax
jmp 0x1400108ab
cmp qword [rbx + 0x10], rdi
je 0x1400108a1
mov ecx, dword [rsi]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r13d
jge 0x1400108a1
mov rax, qword [rsi]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x1400108ab
movsxd rax, r13d
add qword [rbx + 0xb8], rax
mov eax, 0x10
mov rcx, rbx
add rax, rbx
mov qword [rsp + 0x508], rax
mov eax, dword [rsp + 0x40]
cmp eax, 4
jne 0x1400108d2
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400108de
cmp eax, 8
jne 0x140010adf
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
xor r13d, r13d
mov dword [rsp + 0x500], r12d
mov edx, eax
test eax, eax
jle 0x140011200
nop dword [rax]
mov r8d, dword [rbx]
xor r14d, r14d
test r8d, r8d
jle 0x140010a8c
mov r12d, dword [rsp + 0x40]
mov r9, qword [rbx + 0xb8]
cmp r9, qword [rsi]
jae 0x140010930
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xb8], r9
jmp 0x14001095a
cmp dword [rbx + 0x30], 0
je 0x140010958
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xb8], r9
jmp 0x14001095a
xor cl, cl
mov r10d, 0x30
mov rax, rsi
mov rdx, rbx
mov r11, qword [rax]
lea r15, [r10 + rbx]
xor r10d, r10d
movzx eax, cl
cmp r12d, 4
jne 0x140010983
mov r10d, eax
and r10d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xa0]
inc edi
mov byte [rcx + rbp], al
movzx eax, byte [rsp + rdx + 0xa1]
movsxd rcx, edi
inc edi
mov byte [rcx + rbp], al
movzx eax, byte [rsp + rdx + 0xa2]
movsxd rcx, edi
inc edi
mov byte [rcx + rbp], al
movsxd rax, edi
inc edi
mov byte [rax + rbp], 0xff
lea eax, [r14 + 1]
cmp eax, r8d
je 0x140010a84
cmp r12d, 8
jne 0x140010a33
cmp r9, r11
jae 0x1400109f7
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov r9d, r8d
mov qword [rbx + 0xb8], rax
mov r8d, dword [rbx]
movzx r10d, cl
jmp 0x140010a36
cmp dword [r15], 0
je 0x140010a25
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r8d, dword [rbx]
mov r9d, r8d
movzx r10d, cl
jmp 0x140010a36
xor cl, cl
mov r9d, r8d
mov r8d, dword [rbx]
movzx r10d, cl
jmp 0x140010a36
mov r9d, r8d
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rsp + rdx + 0xa0]
inc edi
add r14d, 2
mov byte [rcx + rbp], al
movzx eax, byte [rsp + rdx + 0xa1]
movsxd rcx, edi
inc edi
mov byte [rcx + rbp], al
movzx eax, byte [rsp + rdx + 0xa2]
movsxd rcx, edi
inc edi
mov byte [rcx + rbp], al
movsxd rax, edi
inc edi
mov byte [rax + rbp], 0xff
cmp r14d, r9d
jl 0x140010914
mov r12d, dword [rsp + 0x500]
mov rax, qword [rsp + 0x508]
cmp qword [rax], 0
je 0x140010abf
mov ecx, dword [rsi]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x140010abf
mov rax, qword [rsi]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x140010ac9
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x140010900
jmp 0x140011200
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.bad_bpp
mov qword [0x1400a4630], rax
xor eax, eax
mov r12, qword [rsp + 0x4b8]
mov r15, qword [rsp + 0x4a0]
mov rbp, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4c0]
mov r13, qword [rsp + 0x4b0]
mov r14, qword [rsp + 0x4a8]
add rsp, 0x4c8
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.invalid
jmp 0x140010aef
xor r11d, r11d
xor esi, esi
xor r12d, r12d
mov dword [rsp + 0x30], r11d
xor eax, eax
mov dword [rsp + 0x508], r11d
xor r9d, r9d
mov dword [rsp + 0x20], r11d
xor r15d, r15d
mov dword [rsp + 0x64], esi
sub r13d, r14d
mov dword [rsp + 0x70], r12d
sub r13d, 0xe
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x500], r9d
jns 0x140010b94
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x140010bd8
cmp qword [rbx + 0x10], rax
je 0x140010bce
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r13d
jge 0x140010bce
mov rax, qword [rbx + 0xc0]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
mov r9d, esi
mov r11d, esi
jmp 0x140010bd8
movsxd rax, r13d
add qword [rbx + 0xb8], rax
cmp edi, 0x18
jne 0x140010be5
mov eax, dword [rbx]
lea r10d, [rax + rax*2]
jmp 0x140010bf5
cmp edi, 0x10
jne 0x140010bf2
mov r10d, dword [rbx]
add r10d, r10d
jmp 0x140010bf5
xor r10d, r10d
mov ecx, dword [rsp + 0x54]
neg r10d
mov r13d, dword [rsp + 0x50]
and r10d, 3
mov r14d, dword [rsp + 0x4c]
mov dword [rsp + 0x68], r10d
cmp edi, 0x18
jne 0x140010c2c
mov r8d, 1
mov r13d, esi
mov qword [rsp + 0x28], r8
mov edi, esi
mov r14d, esi
jmp 0x140010e1c
xor eax, eax
mov qword [rsp + 0x28], rax
cmp edi, 0x20
jne 0x140010c8c
mov qword [rsp + 0x28], rax
cmp ecx, 0xff
jne 0x140010c8c
mov qword [rsp + 0x28], rax
cmp r13d, 0xff00
jne 0x140010c8c
mov r10d, dword [rsp + 0x58]
mov qword [rsp + 0x28], rax
cmp r14d, 0xff0000
jne 0x140010c91
mov qword [rsp + 0x28], rax
cmp r10d, 0xff000000
jne 0x140010c91
mov r8d, 2
mov r13d, eax
mov qword [rsp + 0x28], r8
mov edi, eax
mov r14d, eax
jmp 0x140010e1c
mov r10d, dword [rsp + 0x58]
test r14d, r14d
je 0x1400112c0
test r13d, r13d
je 0x1400112c0
test ecx, ecx
je 0x1400112c0
mov ecx, r14d
call fcn.140010040
mov edx, r14d
mov ecx, r14d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r11d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x30], r11d
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r13d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r12d, al
mov dword [rsp + 0x70], r12d
call fcn.140010040
mov esi, dword [rsp + 0x54]
mov edx, r13d
shr edx, 1
mov ecx, r13d
and edx, 0x55555555
and ecx, 0x55555555
add edx, ecx
lea edi, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x508], edi
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, esi
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r13d, al
call fcn.140010040
mov edx, esi
mov ecx, esi
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r14d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x20], r14d
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx eax, al
mov dword [rsp + 0x60], eax
mov ecx, r10d
call fcn.140010040
mov r8, qword [rsp + 0x28]
mov edx, r10d
shr edx, 1
mov ecx, r10d
and edx, 0x55555555
and ecx, 0x55555555
add edx, ecx
lea esi, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x64], esi
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r15d, al
mov eax, dword [rbx + 4]
mov edx, eax
mov dword [rsp + 0x6c], 0
test eax, eax
jle 0x140011200
neg r14d
mov eax, r11d
neg eax
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x74], eax
lea r14, [rbx + 0xc0]
mov eax, edi
neg eax
mov dword [rsp + 0x78], eax
mov eax, esi
neg eax
mov dword [rsp + 0x80], eax
nop dword [rax]
mov eax, dword [rbx]
mov qword [rsp + 0x90], r14
movsxd rcx, r9d
test r8, r8
je 0x140010fd2
xor r12d, r12d
test eax, eax
jle 0x140011190
lea rsi, [rcx + rbp]
lea rdi, [rbx + 0x30]
nop dword [rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r14]
jae 0x140010eab
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010ed5
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140010ed3
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010ed5
xor cl, cl
mov qword [rsp + 0x38], rdi
mov byte [rsi + 2], cl
cmp rax, qword [r14]
jae 0x140010ef1
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010f16
cmp dword [rdi], 0
je 0x140010f14
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010f16
xor cl, cl
mov byte [rsi + 1], cl
mov rcx, qword [r14]
cmp rax, rcx
jae 0x140010f34
movzx edx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010f5c
cmp dword [rdi], 0
je 0x140010f5a
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
mov rcx, qword [r14]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010f5c
xor dl, dl
cmp qword [rsp + 0x28], 2
mov byte [rsi], dl
jne 0x140010fa6
cmp rax, rcx
jae 0x140010f7a
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010fa8
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
je 0x140010fa2
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140010fa8
xor cl, cl
jmp 0x140010fa8
mov cl, 0xff
add dword [rsp + 0x500], 4
inc r12d
movzx eax, cl
or dword [rsp + 0x4f8], eax
mov byte [rsi + 3], cl
add rsi, 4
cmp r12d, dword [rbx]
jl 0x140010e90
jmp 0x140011190
xor edi, edi
mov dword [rsp + 0x38], edi
test eax, eax
jle 0x140011190
mov r14d, dword [rsp + 0x4f8]
lea rsi, [rcx + rbp]
mov ebp, dword [rsp + 0x40]
mov rcx, rbx
call fcn.140007630
cmp ebp, 0x10
jne 0x140011001
mov edx, eax
jmp 0x140011016
mov rcx, rbx
mov edi, eax
call fcn.140007630
mov edx, eax
shl edx, 0x10
add edx, edi
mov edi, dword [rsp + 0x38]
mov r11d, dword [rsp + 0x30]
mov r8d, edx
and r8d, dword [rsp + 0x4c]
mov ecx, r11d
mov eax, r8d
sar eax, cl
mov ecx, dword [rsp + 0x74]
shl r8d, cl
mov ecx, r12d
test r11d, r11d
cmovns r8d, eax
mov r9d, r8d
cmp r12d, 8
jae 0x140011060
nop word [rax + rax]
mov eax, r8d
sar eax, cl
add ecx, r12d
add r9d, eax
cmp ecx, 8
jl 0x140011050
mov byte [rsi], r9b
mov r8d, edx
and r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x508]
mov eax, r8d
mov ecx, r9d
sar eax, cl
mov ecx, dword [rsp + 0x78]
shl r8d, cl
mov ecx, r13d
test r9d, r9d
cmovns r8d, eax
mov r9d, r8d
cmp r13d, 8
jae 0x1400110b0
nop word [rax + rax]
mov eax, r8d
sar eax, cl
add ecx, r13d
add r9d, eax
cmp ecx, 8
jl 0x1400110a0
mov r10d, dword [rsp + 0x60]
mov r8d, edx
and r8d, dword [rsp + 0x54]
mov eax, r8d
mov byte [rsi + 1], r9b
mov r9d, dword [rsp + 0x20]
mov ecx, r9d
sar eax, cl
mov ecx, dword [rsp + 0x7c]
shl r8d, cl
mov ecx, r10d
test r9d, r9d
cmovns r8d, eax
mov r9d, r8d
cmp r10d, 8
jae 0x140011100
nop dword [rax + rax]
mov eax, r8d
sar eax, cl
add ecx, r10d
add r9d, eax
cmp ecx, 8
jl 0x1400110f0
mov r10d, dword [rsp + 0x58]
mov byte [rsi + 2], r9b
test r10d, r10d
je 0x140011151
mov r8d, dword [rsp + 0x64]
and edx, r10d
mov eax, edx
mov ecx, r8d
sar eax, cl
mov ecx, dword [rsp + 0x80]
shl edx, cl
mov ecx, r15d
test r8d, r8d
cmovns edx, eax
mov r8d, edx
cmp r15d, 8
jae 0x140011157
nop dword [rax + rax]
mov eax, edx
sar eax, cl
add ecx, r15d
add r8d, eax
cmp ecx, 8
jl 0x140011140
jmp 0x140011157
mov r8d, 0xff
add dword [rsp + 0x500], 4
inc edi
mov byte [rsi + 3], r8b
or r14d, r8d
add rsi, 4
mov dword [rsp + 0x38], edi
cmp edi, dword [rbx]
jl 0x140010ff0
mov rbp, qword [rsp + 0x88]
mov dword [rsp + 0x4f8], r14d
mov r14, qword [rsp + 0x90]
cmp qword [rbx + 0x10], 0
mov r10d, dword [rsp + 0x68]
je 0x1400111c2
mov ecx, dword [r14]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r10d
jge 0x1400111c9
mov rax, qword [r14]
mov edx, r10d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400111d3
lea r14, [rbx + 0xc0]
mov eax, r10d
add qword [rbx + 0xb8], rax
mov r10d, dword [rsp + 0x6c]
mov eax, dword [rbx + 4]
inc r10d
mov r12d, dword [rsp + 0x70]
mov edx, eax
mov r9d, dword [rsp + 0x500]
mov r8, qword [rsp + 0x28]
mov dword [rsp + 0x6c], r10d
cmp r10d, eax
jl 0x140010e60
cmp dword [rsp + 0x4f8], 0
jne 0x14001122d
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14001122d
nop dword [rax + rax]
mov byte [rcx + rbp], 0xff
sub rcx, 4
jns 0x140011220
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x84], 0
jle 0x14001129f
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14001129f
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, rbp
shl r9d, 2
test eax, eax
jle 0x140011290
sub r9, r11
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x140011271
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x140011242
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x4e8]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x4f0]
mov dword [rcx], eax
mov rax, rbp
jmp 0x140010af8
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.bad_masks
jmp 0x140010aef
lea rax, str.outofmem
mov qword [0x1400a4630], rax
xor eax, eax
jmp 0x140010b08
lea rax, str.too_large
mov qword [0x1400a4630], rax
xor eax, eax
jmp 0x140010b10