Function at 0x1400671c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r14
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
xor r14d, r14d
mov dword [rbp - 0x64], 0xff
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x20], r14d
mov rbx, rcx
call fcn.140066c50
test rax, rax
je 0x140067234
mov eax, dword [rbx + 4]
mov dword [rsp + 0x70], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x140067242
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4f0
pop r14
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x140067218
mov eax, dword [rbp - 0x74]
mov r8d, dword [rbp - 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x6c]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rbp - 0x78]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x4d8], r13
mov r13d, dword [rbp - 0x7c]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbp - 0x60]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x80]
mov dword [rsp + 0x34], eax
mov dword [rbp + 0x438], r8d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x24], edi
mov dword [rbp + 0x430], r15d
cmp edi, 0xc
jne 0x1400672d1
cmp r15d, 0x18
jge 0x1400672f2
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
jmp 0x1400672e4
cmp r15d, 0x10
jge 0x1400672f2
mov r14d, r13d
sub r14d, eax
sub r14d, edi
sar r14d, 2
mov dword [rsp + 0x20], r14d
test r14d, r14d
jne 0x140067386
mov edx, dword [rbx + 0xb8]
sub edx, dword [rbx + 0xd0]
mov r8d, dword [rbx + 0xc0]
add edx, r8d
lea eax, [rdx - 1]
cmp eax, 0x3ff
ja 0x140068298
cmp r13d, edx
jl 0x140068275
mov ecx, r13d
sub ecx, edx
cmp ecx, 0x400
jg 0x140068275
test ecx, ecx
je 0x14006737f
jns 0x140067346
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14006737f
cmp qword [rbx + 0x10], 0
je 0x140067375
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x140067375
mov rax, qword [rbx + 0xc8]
sub ecx, edx
mov edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14006737f
movsxd rax, ecx
add qword [rbx + 0xc0], rax
mov r8d, dword [rbp + 0x438]
mov qword [rsp + 0x4e0], r12
cmp r15d, 0x18
jne 0x1400673a3
cmp r8d, 0xff000000
jne 0x1400673a3
lea r12d, [r15 - 0x15]
jmp 0x1400673b1
xor r12d, r12d
test r8d, r8d
setne r12b
add r12d, 3
mov dword [rbx + 8], r12d
mov ecx, dword [rbx]
mov r9d, dword [rbx + 4]
test ecx, ecx
js 0x140068252
je 0x1400673d6
mov eax, 0x7fffffff
cdq
idiv ecx
cmp r12d, eax
jg 0x140068252
mov r8d, r12d
imul r8d, ecx
test r8d, r8d
js 0x140068252
test r9d, r9d
js 0x140068252
je 0x140067403
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r8d, eax
jg 0x140068252
mov qword [rsp + 0x510], rsi
test ecx, ecx
je 0x140067420
mov eax, 0x7fffffff
cdq
idiv ecx
cmp r12d, eax
jg 0x140068235
mov r8d, r12d
imul r8d, ecx
test r9d, r9d
je 0x14006743e
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r8d, eax
jg 0x140068235
imul ecx, r12d
imul ecx, r9d
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x78], rax
mov rsi, rax
test rax, rax
je 0x140068235
cmp r15d, 0x10
jge 0x140067a5b
xor edi, edi
test r14d, r14d
je 0x140067a38
cmp r14d, 0x100
jg 0x140067a38
movsxd rax, r14d
test r14d, r14d
jle 0x1400675d2
mov r13d, dword [rsp + 0x24]
lea r14, [rbx + 0x30]
xor r15d, r15d
mov rsi, rax
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400674bf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400674e8
cmp dword [rbx + 0x30], edi
lea r14, [rbx + 0x30]
je 0x1400674e6
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400674e8
xor cl, cl
mov qword [rbp + 0x438], r14
mov byte [rbp + r15*4 - 0x2e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14006750c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067531
cmp dword [r14], edi
je 0x14006752f
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067531
xor cl, cl
mov byte [rbp + r15*4 - 0x2f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x140067552
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067577
cmp dword [r14], edi
je 0x140067575
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067577
xor cl, cl
mov byte [rbp + r15*4 - 0x30], cl
cmp r13d, 0xc
je 0x1400675b1
cmp rax, qword [rbx + 0xc8]
jae 0x140067597
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400675b1
mov rax, qword [rbp + 0x438]
cmp dword [rax], edi
je 0x1400675b1
mov rcx, rbx
call fcn.14005dce0
inc qword [rbx + 0xc0]
mov byte [rbp + r15*4 - 0x2d], 0xff
inc r15
cmp r15, rsi
jl 0x1400674a0
mov rsi, qword [rsp + 0x78]
mov r13d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x20]
xor eax, eax
cmp dword [rsp + 0x24], 0xc
setne al
add eax, 3
imul eax, r14d
sub r13d, eax
sub r13d, dword [rsp + 0x34]
sub r13d, dword [rsp + 0x24]
je 0x140067645
test r13d, r13d
jns 0x140067607
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140067645
cmp qword [rbx + 0x10], rdi
je 0x14006763b
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x14006763b
mov rax, qword [rbx + 0xc8]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x140067645
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov r9d, dword [rbp + 0x430]
cmp r9d, 1
jne 0x14006765f
mov r13d, dword [rbx]
add r13d, 7
shr r13d, 3
jmp 0x14006767d
cmp r9d, 4
jne 0x140067670
mov r13d, dword [rbx]
inc r13d
shr r13d, 1
jmp 0x14006767d
cmp r9d, 8
jne 0x1400679dd
mov r13d, dword [rbx]
mov eax, dword [rbx + 4]
neg r13d
and r13d, 3
mov ecx, eax
cmp r9d, 1
jne 0x14006780c
mov dword [rbp + 0x430], edi
test eax, eax
jle 0x140068140
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1400676c6
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400676ec
cmp dword [rbx + 0x30], 0
je 0x1400676ea
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400676ec
xor cl, cl
xor r15d, r15d
movzx edx, cl
cmp dword [rbx], r15d
jle 0x1400677a9
nop dword [rax + rax]
mov eax, edx
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov byte [rdi + rsi + 2], al
add rdi, 3
cmp r12d, 4
jne 0x14006773d
mov byte [rdi + rsi], 0xff
inc rdi
mov ecx, dword [rbx]
lea eax, [r15 + 1]
mov r15d, eax
cmp eax, ecx
je 0x1400677a9
sub r14d, 1
jns 0x1400677a0
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140067775
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14006779d
cmp dword [rbx + 0x30], 0
je 0x14006779b
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x14006779d
xor dl, dl
movzx edx, dl
cmp r15d, ecx
jl 0x140067700
test r13d, r13d
je 0x1400677ec
cmp qword [rbx + 0x10], 0
je 0x1400677e2
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x1400677e2
mov rax, qword [rbx + 0xc8]
mov edx, r13d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400677ec
mov eax, r13d
add qword [rbx + 0xc0], rax
mov edx, dword [rbp + 0x430]
mov eax, dword [rbx + 4]
inc edx
mov dword [rbp + 0x430], edx
mov ecx, eax
cmp edx, eax
jl 0x1400676a1
jmp 0x140068140
xor r15d, r15d
test eax, eax
jle 0x140068140
nop word [rax + rax]
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x14006797d
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14006784f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14006787c
cmp dword [rbx + 0x30], 0
je 0x14006787a
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
mov r9d, dword [rbp + 0x430]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14006787c
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r9d, 4
jne 0x140067892
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r12d, 4
jne 0x1400678d0
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, dword [rbx]
je 0x14006797d
cmp r9d, 8
jne 0x140067932
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140067901
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14006792e
cmp dword [rbx + 0x30], 0
je 0x14006792c
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
mov r9d, dword [rbp + 0x430]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14006792e
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r12d, 4
jne 0x140067970
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
add r14d, 2
cmp r14d, dword [rbx]
jl 0x140067830
test r13d, r13d
je 0x1400679c0
cmp qword [rbx + 0x10], 0
je 0x1400679b6
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x1400679b6
mov rax, qword [rbx + 0xc8]
mov edx, r13d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400679c0
mov eax, r13d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r15d
mov r9d, dword [rbp + 0x430]
mov ecx, eax
cmp r15d, eax
jl 0x140067820
jmp 0x140068140
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x510]
mov r12, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4d8]
mov r15, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r14
pop rbx
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1400679fe
sub r13d, dword [rsp + 0x34]
xor r8d, r8d
xor r11d, r11d
mov dword [rsp + 0x48], 0
xor r10d, r10d
mov dword [rsp + 0x4c], 0
xor r9d, r9d
mov dword [rsp + 0x30], 0
xor r14d, r14d
mov dword [rsp + 0x24], r8d
xor r15d, r15d
sub r13d, edi
je 0x140067af3
test r13d, r13d
jns 0x140067aa9
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140067af3
cmp qword [rbx + 0x10], r8
je 0x140067ae9
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x140067ae9
mov rax, qword [rbx + 0xc8]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov r9d, r14d
mov r10d, r14d
mov r11d, r14d
mov r8d, r14d
jmp 0x140067af3
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x140067b05
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x140067b12
cmp ecx, 0x10
jne 0x140067b10
mov edx, dword [rbx]
add edx, edx
jmp 0x140067b12
xor edx, edx
neg edx
and edx, 3
mov dword [rsp + 0x20], edx
cmp ecx, 0x18
jne 0x140067b2f
mov edi, 1
mov qword [rsp + 0x40], rdi
jmp 0x140067d4f
mov eax, dword [rsp + 0x3c]
xor edi, edi
cmp ecx, 0x20
mov qword [rsp + 0x40], rdi
mov ecx, dword [rsp + 0x28]
jne 0x140067b8f
mov qword [rsp + 0x40], rdi
cmp eax, 0xff
jne 0x140067b8f
mov qword [rsp + 0x40], rdi
cmp ecx, 0xff00
jne 0x140067b8f
cmp dword [rsp + 0x38], 0xff0000
mov qword [rsp + 0x40], rdi
jne 0x140067b8f
mov r13d, dword [rbp + 0x438]
mov qword [rsp + 0x40], rdi
cmp r13d, 0xff000000
jne 0x140067bb6
mov edi, 2
mov qword [rsp + 0x40], rdi
jmp 0x140067d4f
mov r9d, dword [rsp + 0x38]
test r9d, r9d
je 0x14006820f
test ecx, ecx
je 0x14006820f
test eax, eax
je 0x14006820f
mov r13d, dword [rbp + 0x438]
jmp 0x140067bbb
mov r9d, dword [rsp + 0x38]
mov ecx, r9d
call fcn.140066be0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rsp + 0x28]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x48], eax
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r11d, al
call fcn.140066be0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rsp + 0x3c]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x4c], eax
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r10d, al
call fcn.140066be0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x30], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
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 r9d, al
call fcn.140066be0
mov edx, r13d
mov ecx, r13d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r8d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x24], r8d
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 r14d, al
cmp r11d, 8
ja 0x14006820f
cmp r10d, 8
ja 0x14006820f
cmp r9d, 8
ja 0x14006820f
cmp r14d, 8
ja 0x14006820f
mov edx, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x34], r15d
test eax, eax
jle 0x140068140
mov eax, dword [rsp + 0x48]
neg eax
mov dword [rsp + 0x54], eax
mov eax, 8
mov ecx, eax
sub ecx, r11d
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x4c]
neg ecx
mov dword [rsp + 0x58], ecx
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rsp + 0x30]
neg ecx
mov dword [rsp + 0x60], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x64], ecx
mov ecx, r8d
neg ecx
sub eax, r14d
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
mov eax, r11d
mov qword [rbp - 0x58], rax
mov eax, r9d
mov qword [rbp - 0x48], rax
mov eax, r14d
mov ecx, r10d
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x50], rcx
nop dword [rax + rax]
mov eax, dword [rbx]
xor r13d, r13d
movsxd rcx, r15d
test rdi, rdi
je 0x140067f5d
test eax, eax
jle 0x1400680e4
lea r14, [rcx + rsi]
mov rsi, qword [rsp + 0x40]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140067e1f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067e49
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140067e47
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067e49
xor cl, cl
mov byte [r14 + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140067e6c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067e91
cmp dword [rdi], 0
je 0x140067e8f
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067e91
xor cl, cl
mov byte [r14 + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140067eb4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067ed9
cmp dword [rdi], 0
je 0x140067ed7
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067ed9
xor cl, cl
mov byte [r14], cl
add r15d, 3
add r14, 3
cmp rsi, 2
jne 0x140067f30
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140067f09
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067f32
cmp dword [rdi], 0
je 0x140067f2c
mov rcx, rbx
call fcn.14005dce0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140067f36
xor cl, cl
jmp 0x140067f36
mov cl, 0xff
lea rdi, [rbx + 0x30]
movzx eax, cl
or dword [rsp + 0x2c], eax
cmp r12d, 4
jne 0x140067f4c
inc r15d
mov byte [r14], cl
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x140067e00
jmp 0x1400680d6
test eax, eax
jle 0x1400680e4
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x430]
lea rdi, [0x140000000]
mov rcx, rbx
call fcn.14005def0
cmp esi, 0x10
jne 0x140067f88
mov r8d, eax
jmp 0x140067fa3
mov rcx, rbx
mov edi, eax
call fcn.14005def0
mov r8d, eax
shl r8d, 0x10
add r8d, edi
lea rdi, [0x140000000]
mov r9d, dword [rsp + 0x48]
mov edx, r8d
and edx, dword [rsp + 0x38]
mov ecx, r9d
mov r11, qword [rbp - 0x58]
mov eax, edx
mov r10, qword [rbp - 0x50]
shr eax, cl
mov ecx, dword [rsp + 0x54]
shl edx, cl
mov ecx, dword [rsp + 0x50]
test r9d, r9d
mov r9d, dword [rsp + 0x4c]
cmovns edx, eax
shr edx, cl
imul edx, dword [rdi + r11*4 + 0xf2340]
mov ecx, dword [rdi + r11*4 + 0xf2388]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rsp + 0x28]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x58]
shl edx, cl
mov ecx, dword [rsp + 0x5c]
test r9d, r9d
mov r9d, dword [rsp + 0x30]
cmovns edx, eax
shr edx, cl
imul edx, dword [rdi + r10*4 + 0xf2340]
mov ecx, dword [rdi + r10*4 + 0xf2388]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x3c]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x60]
shl edx, cl
mov ecx, dword [rsp + 0x64]
test r9d, r9d
mov r9, qword [rbp - 0x48]
cmovns edx, eax
mov eax, dword [rbp + 0x438]
shr edx, cl
add r15d, 3
imul edx, dword [rdi + r9*4 + 0xf2340]
mov ecx, dword [rdi + r9*4 + 0xf2388]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test eax, eax
je 0x1400680b0
mov edx, dword [rsp + 0x24]
and r8d, eax
mov r9, qword [rbp - 0x40]
mov eax, r8d
mov ecx, edx
shr eax, cl
mov ecx, dword [rsp + 0x68]
shl r8d, cl
mov ecx, dword [rsp + 0x6c]
test edx, edx
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [rdi + r9*4 + 0xf2340]
mov ecx, dword [rdi + r9*4 + 0xf2388]
sar r8d, cl
jmp 0x1400680b6
mov r8d, 0xff
or dword [rsp + 0x2c], r8d
cmp r12d, 4
jne 0x1400680ca
inc r15d
mov byte [r14], r8b
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x140067f76
mov edx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
test edx, edx
je 0x140068125
cmp qword [rbx + 0x10], 0
je 0x14006811c
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x14006811c
mov rax, qword [rbx + 0xc8]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov edx, dword [rsp + 0x20]
jmp 0x140068125
mov eax, edx
add qword [rbx + 0xc0], rax
mov r13d, dword [rsp + 0x34]
mov eax, dword [rbx + 4]
inc r13d
mov dword [rsp + 0x34], r13d
mov ecx, eax
cmp r13d, eax
jl 0x140067dd0
mov edx, ecx
cmp r12d, 4
jne 0x14006816e
cmp dword [rsp + 0x2c], 0
jne 0x14006816e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd r8, eax
test eax, eax
js 0x14006816e
mov byte [r8 + rsi], 0xff
sub r8, 4
jns 0x140068160
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x1400681df
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400681df
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, r12d
imul edx, r12d
mov eax, r12d
imul r9d, ecx
xor r8d, r8d
imul eax, ecx
imul edx, ecx
imul r9d, r10d
mov r11d, edx
add rdx, rsi
test eax, eax
jle 0x1400681d0
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov eax, r12d
mov byte [rdx], cl
lea rdx, [rdx + 1]
imul eax, dword [rbx]
cmp r8d, eax
jl 0x1400681b0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x140068180
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x418]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x420]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x428]
test rcx, rcx
je 0x140068207
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x140067a04
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1400679fe
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400679fe
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140067a0c
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140067a14
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140067a14