Function at 0x14007aef0
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 + 0x24], r14d
mov rbx, rcx
call fcn.14007a980
test rax, rax
je 0x14007af6c
mov eax, dword [rbx + 4]
mov r8d, eax
neg r8d
mov dword [rsp + 0x70], eax
cmovs r8d, eax
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x14007af7a
mov rax, qword gs:[0x58]
mov edx, 0x28
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
mov r9d, dword [rbx]
cmp r9d, 0x1000000
ja 0x14007af50
mov eax, dword [rbp - 0x74]
mov r10d, dword [rbp - 0x68]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x6c]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rbp - 0x78]
mov dword [rbp + 0x438], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x4d8], r13
movsxd r13, dword [rbp - 0x7c]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x60]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x80]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], edi
mov dword [rbp + 0x430], r15d
cmp edi, 0xc
jne 0x14007b00d
cmp r15d, 0x18
jge 0x14007b02a
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
jmp 0x14007b020
cmp r15d, 0x10
jge 0x14007b02a
mov r14d, r13d
sub r14d, eax
sub r14d, edi
sar r14d, 2
mov dword [rsp + 0x24], r14d
test r14d, r14d
jne 0x14007b067
movsxd rcx, dword [rbx + 0xb8]
sub rcx, qword [rbx + 0xd0]
add rcx, qword [rbx + 0xc0]
cmp r13, rcx
je 0x14007b067
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14007b758
mov qword [rsp + 0x4e0], r12
cmp r15d, 0x18
jne 0x14007b084
cmp r10d, 0xff000000
jne 0x14007b084
lea r12d, [r15 - 0x15]
jmp 0x14007b092
xor r12d, r12d
test r10d, r10d
setne r12b
add r12d, 3
mov dword [rsp + 0x2c], r12d
mov dword [rbx + 8], r12d
test r9d, r9d
js 0x14007bf62
je 0x14007b0b8
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x14007bf62
mov ecx, r12d
imul ecx, r9d
test ecx, ecx
js 0x14007bf62
test r8d, r8d
js 0x14007bf62
je 0x14007b0e3
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x14007bf62
mov qword [rsp + 0x510], rsi
test r9d, r9d
jne 0x14007b0f9
mov ecx, r9d
imul ecx, r12d
jmp 0x14007b112
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x14007bf45
mov ecx, r12d
imul ecx, r9d
test r8d, r8d
je 0x14007b128
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x14007bf45
imul r8d, r9d
mov eax, r12d
imul eax, r8d
movsxd rcx, eax
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 0x14007bf45
cmp r15d, 0x10
jge 0x14007b79f
xor edi, edi
mov dword [rbp + 0x438], edi
test r14d, r14d
je 0x14007b77c
cmp r14d, 0x100
jg 0x14007b77c
movsxd rax, r14d
test r14d, r14d
jle 0x14007b2dd
mov esi, dword [rsp + 0x28]
lea r14, [rbx + 0x30]
xor r15d, r15d
lea rdi, [rbp - 0x2d]
mov r13, rax
lea r12, [rbp - 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14007b1bf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b1e9
cmp dword [rbx + 0x30], 0
lea r14, [rbx + 0x30]
je 0x14007b1e7
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b1e9
xor cl, cl
lea rdx, [rbp - 0x2e]
mov qword [rsp + 0x30], r14
mov byte [rdx + r15*4], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14007b20e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b234
cmp dword [r14], 0
je 0x14007b232
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b234
xor cl, cl
mov byte [rbp + r15*4 - 0x2f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14007b255
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b27b
cmp dword [r14], 0
je 0x14007b279
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b27b
xor cl, cl
mov byte [r12 + r15*4], cl
cmp esi, 0xc
je 0x14007b2b2
cmp rax, qword [rbx + 0xc8]
jae 0x14007b299
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007b2b2
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x14007b2b2
mov rcx, rbx
call fcn.140070ea0
inc qword [rbx + 0xc0]
mov byte [rdi + r15*4], 0xff
inc r15
cmp r15, r13
jl 0x14007b1a0
mov edi, dword [rbp + 0x438]
mov rsi, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x2c]
mov r13d, dword [rsp + 0x20]
mov r14d, dword [rsp + 0x24]
xor eax, eax
cmp dword [rsp + 0x28], 0xc
setne al
add eax, 3
imul eax, r14d
sub r13d, eax
sub r13d, dword [rsp + 0x40]
sub r13d, dword [rsp + 0x28]
je 0x14007b351
test r13d, r13d
jns 0x14007b312
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14007b351
cmp qword [rbx + 0x10], 0
je 0x14007b347
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x14007b347
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 0x14007b351
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov r11d, dword [rbp + 0x430]
cmp r11d, 1
jne 0x14007b36b
mov r13d, dword [rbx]
add r13d, 7
shr r13d, 3
jmp 0x14007b389
cmp r11d, 4
jne 0x14007b37c
mov r13d, dword [rbx]
inc r13d
shr r13d, 1
jmp 0x14007b389
cmp r11d, 8
jne 0x14007b721
mov r13d, dword [rbx]
mov eax, dword [rbx + 4]
neg r13d
and r13d, 3
mov ecx, eax
cmp r11d, 1
jne 0x14007b559
mov dword [rbp + 0x430], 0
test eax, eax
jle 0x14007be51
xor edi, edi
mov r9, qword [rbx + 0xc0]
mov r14d, 7
cmp r9, qword [rbx + 0xc8]
jae 0x14007b3d9
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x14007b400
cmp dword [rbx + 0x30], 0
je 0x14007b3fe
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x14007b400
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r11d, cl
mov rcx, r9
test edx, edx
jle 0x14007b4f4
mov r8, r9
mov r10d, edx
nop word [rax + rax]
mov eax, r11d
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 0x14007b45e
mov byte [rdi + rsi], 0xff
inc rdi
lea eax, [r15 + 1]
mov r9d, r8d
mov rcx, r8
mov r15d, eax
cmp eax, edx
je 0x14007b4f4
sub r14d, 1
jns 0x14007b4d8
mov r14d, 7
cmp r8, qword [rbx + 0xc8]
jae 0x14007b4a0
movzx r9d, byte [r8]
lea rcx, [r8 + 1]
mov qword [rbx + 0xc0], rcx
mov edx, r10d
movzx r11d, r9b
jmp 0x14007b4e2
cmp dword [rbx + 0x30], 0
je 0x14007b4cc
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx r9d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
mov edx, dword [rbx]
movzx r11d, r9b
jmp 0x14007b4e2
xor r9b, r9b
mov edx, r10d
movzx r11d, r9b
jmp 0x14007b4e2
mov rcx, qword [rbx + 0xc0]
mov edx, r10d
mov r8, rcx
mov r9d, ecx
mov r10d, edx
cmp r15d, edx
jl 0x14007b420
test r13d, r13d
je 0x14007b539
cmp qword [rbx + 0x10], 0
je 0x14007b52c
mov r8d, dword [rbx + 0xc8]
sub r8d, r9d
cmp r8d, r13d
jge 0x14007b52c
mov rax, qword [rbx + 0xc8]
mov edx, r13d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x14007b539
mov eax, r13d
add rax, rcx
mov 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 0x14007b3b3
jmp 0x14007be51
xor r15d, r15d
test eax, eax
jle 0x14007be51
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x14007b6c1
mov r8, qword [rbx + 0xc0]
cmp r8, qword [rbx + 0xc8]
jae 0x14007b590
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x14007b5be
cmp dword [rbx + 0x30], 0
je 0x14007b5bc
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
mov r11d, dword [rbp + 0x430]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x14007b5be
xor cl, cl
xor r10d, r10d
movzx eax, cl
cmp r11d, 4
jne 0x14007b5d4
mov r10d, eax
and r10d, 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 0x14007b612
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov r9d, dword [rbx]
lea eax, [r14 + 1]
cmp eax, r9d
je 0x14007b6c1
cmp r11d, 8
jne 0x14007b676
cmp r8, qword [rbx + 0xc8]
jae 0x14007b642
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x14007b672
cmp dword [rbx + 0x30], 0
je 0x14007b670
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
mov r11d, dword [rbp + 0x430]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r9d, dword [rbx]
jmp 0x14007b672
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*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 0x14007b6b4
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
add r14d, 2
cmp r14d, r9d
jl 0x14007b570
test r13d, r13d
je 0x14007b704
cmp qword [rbx + 0x10], 0
je 0x14007b6fa
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x14007b6fa
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 0x14007b704
mov eax, r13d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r15d
mov r11d, dword [rbp + 0x430]
mov ecx, eax
cmp r15d, eax
jl 0x14007b564
jmp 0x14007be51
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x28
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, 0x28
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14007b742
sub r13d, dword [rsp + 0x40]
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x24], 0
xor r11d, r11d
mov dword [rsp + 0x20], eax
xor r10d, r10d
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov dword [rsp + 0x2c], r8d
xor r14d, r14d
xor r15d, r15d
sub r13d, edi
je 0x14007b831
test r13d, r13d
jns 0x14007b7e7
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14007b831
cmp qword [rbx + 0x10], rax
je 0x14007b827
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x14007b827
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 0x14007b831
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x14007b843
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x14007b850
cmp ecx, 0x10
jne 0x14007b84e
mov edx, dword [rbx]
add edx, edx
jmp 0x14007b850
xor edx, edx
neg edx
and edx, 3
mov dword [rsp + 0x6c], edx
cmp ecx, 0x18
jne 0x14007b870
mov edx, 1
mov r13d, r14d
mov qword [rsp + 0x30], rdx
jmp 0x14007ba98
xor eax, eax
cmp ecx, 0x20
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x38]
jne 0x14007b8d3
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x438]
cmp eax, 0xff
jne 0x14007b8d9
xor eax, eax
mov qword [rsp + 0x30], rax
cmp ecx, 0xff00
jne 0x14007b8d3
cmp dword [rsp + 0x44], 0xff0000
mov qword [rsp + 0x30], rax
jne 0x14007b8d3
mov edi, dword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp edi, 0xff000000
jne 0x14007b8fd
mov edx, 2
mov r13d, eax
mov qword [rsp + 0x30], rdx
jmp 0x14007ba98
mov eax, dword [rbp + 0x438]
mov r9d, dword [rsp + 0x44]
test r9d, r9d
je 0x14007bf1f
test ecx, ecx
je 0x14007bf1f
test eax, eax
je 0x14007bf1f
mov edi, dword [rsp + 0x48]
jmp 0x14007b902
mov r9d, dword [rsp + 0x44]
mov ecx, r9d
call fcn.14007a910
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rsp + 0x38]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r13d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x24], r13d
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.14007a910
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rbp + 0x438]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x20], 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.14007a910
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x28], 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, edi
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.14007a910
mov edx, edi
mov ecx, edi
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r8d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x2c], 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 0x14007bf1f
cmp r10d, 8
ja 0x14007bf1f
cmp r9d, 8
ja 0x14007bf1f
cmp r14d, 8
ja 0x14007bf1f
mov rdx, qword [rsp + 0x30]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x40], r15d
test eax, eax
jle 0x14007be51
mov edi, dword [rsp + 0x20]
mov eax, r13d
neg eax
mov dword [rsp + 0x54], eax
mov eax, 8
mov ecx, eax
sub ecx, r11d
mov dword [rsp + 0x50], ecx
mov ecx, edi
neg ecx
mov dword [rsp + 0x4c], ecx
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x58], ecx
mov ecx, dword [rsp + 0x28]
neg ecx
mov dword [rsp + 0x5c], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x60], ecx
mov ecx, r8d
neg ecx
sub eax, r14d
mov dword [rsp + 0x64], ecx
mov dword [rsp + 0x68], 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
mov eax, dword [rbx]
xor r13d, r13d
movsxd rcx, r15d
test rdx, rdx
je 0x14007bc9b
test eax, eax
jle 0x14007bdf6
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14007bb5f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bb89
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x14007bb87
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bb89
xor cl, cl
mov byte [r14 + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14007bba5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bbca
cmp dword [rdi], 0
je 0x14007bbc8
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bbca
xor cl, cl
mov byte [r14 + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14007bbe6
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bc0b
cmp dword [rdi], 0
je 0x14007bc09
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bc0b
xor cl, cl
mov byte [r14], cl
add r15d, 3
add r14, 3
cmp qword [rsp + 0x30], 2
jne 0x14007bc6a
cmp rax, qword [rbx + 0xc8]
jae 0x14007bc36
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bc5c
cmp dword [rbx + 0x30], 0
je 0x14007bc5a
mov rcx, rbx
call fcn.140070ea0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14007bc5c
xor cl, cl
mov edx, 0x30
mov rax, rbx
lea rdi, [rbx + rdx]
jmp 0x14007bc70
mov cl, 0xff
lea rdi, [rbx + 0x30]
movzx eax, cl
or dword [rsp + 0x3c], eax
cmp r12d, 4
jne 0x14007bc86
inc r15d
mov byte [r14], cl
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x14007bb40
mov edi, dword [rsp + 0x20]
jmp 0x14007bdf6
test eax, eax
jle 0x14007bdf6
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x430]
nop dword [rax]
mov rcx, rbx
call fcn.1400710b0
cmp esi, 0x10
je 0x14007bcd0
mov rcx, rbx
mov edi, eax
call fcn.1400710b0
shl eax, 0x10
add eax, edi
mov edi, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
mov edx, eax
and edx, dword [rsp + 0x44]
test ecx, ecx
jns 0x14007bce6
mov ecx, dword [rsp + 0x54]
shl edx, cl
jmp 0x14007bce8
shr edx, cl
mov r8, qword [rbp - 0x58]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0x50]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0xc0668]
mov ecx, dword [r9 + r8*4 + 0xc06b0]
sar edx, cl
mov byte [r14], dl
mov edx, eax
and edx, dword [rsp + 0x38]
test edi, edi
jns 0x14007bd21
mov ecx, dword [rsp + 0x4c]
shl edx, cl
jmp 0x14007bd25
mov ecx, edi
shr edx, cl
mov r8, qword [rbp - 0x50]
mov ecx, dword [rsp + 0x58]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0xc0668]
mov ecx, dword [r9 + r8*4 + 0xc06b0]
sar edx, cl
mov ecx, dword [rsp + 0x28]
mov byte [r14 + 1], dl
mov edx, eax
and edx, dword [rbp + 0x438]
test ecx, ecx
jns 0x14007bd5e
mov ecx, dword [rsp + 0x5c]
shl edx, cl
jmp 0x14007bd60
shr edx, cl
mov r8, qword [rbp - 0x48]
add r15d, 3
mov ecx, dword [rsp + 0x60]
mov edi, dword [rsp + 0x48]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0xc0668]
mov ecx, dword [r9 + r8*4 + 0xc06b0]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test edi, edi
je 0x14007bdc9
mov r8d, dword [rsp + 0x2c]
and eax, edi
test r8d, r8d
jns 0x14007bda5
mov ecx, dword [rsp + 0x64]
shl eax, cl
jmp 0x14007bdaa
mov ecx, r8d
shr eax, cl
mov r8, qword [rbp - 0x40]
mov ecx, dword [rsp + 0x68]
shr eax, cl
imul eax, dword [r9 + r8*4 + 0xc0668]
mov ecx, dword [r9 + r8*4 + 0xc06b0]
sar eax, cl
jmp 0x14007bdce
mov eax, 0xff
or dword [rsp + 0x3c], eax
cmp r12d, 4
jne 0x14007bde1
inc r15d
mov byte [r14], al
inc r14
mov edi, dword [rsp + 0x20]
inc r13d
cmp r13d, dword [rbx]
jl 0x14007bcb0
mov rsi, qword [rsp + 0x78]
mov edx, dword [rsp + 0x6c]
test edx, edx
je 0x14007be35
cmp qword [rbx + 0x10], 0
je 0x14007be2e
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x14007be2e
mov rax, qword [rbx + 0xc8]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x14007be35
add qword [rbx + 0xc0], rdx
mov edx, dword [rsp + 0x40]
mov eax, dword [rbx + 4]
inc edx
mov dword [rsp + 0x40], edx
cmp edx, eax
mov rdx, qword [rsp + 0x30]
mov ecx, eax
jl 0x14007bb15
mov edx, ecx
cmp r12d, 4
jne 0x14007be7f
cmp dword [rsp + 0x3c], 0
jne 0x14007be7f
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd r8, eax
test eax, eax
js 0x14007be7f
mov byte [r8 + rsi], 0xff
sub r8, 4
jns 0x14007be71
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x14007beef
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14007beef
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 0x14007bee0
sub r9, r11
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 0x14007bec0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x14007be91
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 0x14007bf17
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14007b748
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14007b742
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x14007b742
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14007b750