Function at 0x18000f030
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 [rbp + 0x438], r14d
mov rbx, rcx
call fcn.18000eb10
test rax, rax
je 0x18000f0b5
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 0x18000f0c3
mov edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x4f0
pop r14
pop rbx
pop rbp
ret
mov r9d, dword [rbx]
cmp r9d, 0x1000000
ja 0x18000f092
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 + 0x428], 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 + 0x24], edi
mov dword [rbp + 0x430], r15d
cmp edi, 0xc
jne 0x18000f156
cmp r15d, 0x18
jge 0x18000f175
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
jmp 0x18000f169
cmp r15d, 0x10
jge 0x18000f175
mov r14d, r13d
sub r14d, eax
sub r14d, edi
sar r14d, 2
mov dword [rbp + 0x438], r14d
test r14d, r14d
jne 0x18000f1b9
movsxd rcx, dword [rbx + 0xb8]
sub rcx, qword [rbx + 0xd0]
add rcx, qword [rbx + 0xc0]
cmp r13, rcx
je 0x18000f1b9
mov edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_offset
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x18000f8bf
mov qword [rsp + 0x4e0], r12
cmp r15d, 0x18
jne 0x18000f1d6
cmp r10d, 0xff000000
jne 0x18000f1d6
lea r12d, [r15 - 0x15]
jmp 0x18000f1e4
xor r12d, r12d
test r10d, r10d
setne r12b
add r12d, 3
mov dword [rsp + 0x28], r12d
mov dword [rbx + 8], r12d
test r9d, r9d
js 0x1800100ef
je 0x18000f20a
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x1800100ef
mov ecx, r12d
imul ecx, r9d
test ecx, ecx
js 0x1800100ef
test r8d, r8d
js 0x1800100ef
je 0x18000f235
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1800100ef
mov qword [rsp + 0x510], rsi
test r9d, r9d
jne 0x18000f24b
mov ecx, r9d
imul ecx, r12d
jmp 0x18000f264
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x1800100cb
mov ecx, r12d
imul ecx, r9d
test r8d, r8d
je 0x18000f27a
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1800100cb
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 0x1800100cb
cmp r15d, 0x10
jge 0x18000f90d
xor edi, edi
mov dword [rbp + 0x428], edi
test r14d, r14d
je 0x18000f8e3
cmp r14d, 0x100
jg 0x18000f8e3
movsxd rax, r14d
test r14d, r14d
jle 0x18000f42f
mov esi, dword [rsp + 0x24]
lea r14, [rbx + 0x30]
xor r15d, r15d
lea rdi, [rbp - 0x2d]
mov r13, rax
lea r12, [rbp - 0x30]
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x18000f30f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f339
cmp dword [rbx + 0x30], 0
lea r14, [rbx + 0x30]
je 0x18000f337
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f339
xor cl, cl
lea rdx, [rbp - 0x2e]
mov qword [rsp + 0x30], r14
mov byte [rdx + r15*4], cl
cmp rax, qword [rbx + 0xc8]
jae 0x18000f35e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f384
cmp dword [r14], 0
je 0x18000f382
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f384
xor cl, cl
mov byte [rbp + r15*4 - 0x2f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x18000f3a5
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f3cb
cmp dword [r14], 0
je 0x18000f3c9
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f3cb
xor cl, cl
mov byte [r12 + r15*4], cl
cmp esi, 0xc
je 0x18000f402
cmp rax, qword [rbx + 0xc8]
jae 0x18000f3e9
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000f402
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x18000f402
mov rcx, rbx
call fcn.180005470
inc qword [rbx + 0xc0]
mov byte [rdi + r15*4], 0xff
inc r15
cmp r15, r13
jl 0x18000f2f0
mov edi, dword [rbp + 0x428]
mov rsi, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x28]
mov r13d, dword [rsp + 0x20]
mov r14d, dword [rbp + 0x438]
xor eax, eax
cmp dword [rsp + 0x24], 0xc
setne al
add eax, 3
imul eax, r14d
sub r13d, eax
sub r13d, dword [rsp + 0x40]
sub r13d, dword [rsp + 0x24]
je 0x18000f4a3
test r13d, r13d
jns 0x18000f464
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x18000f4a3
cmp qword [rbx + 0x10], 0
je 0x18000f499
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x18000f499
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 0x18000f4a3
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov r11d, dword [rbp + 0x430]
cmp r11d, 1
jne 0x18000f4bd
mov r13d, dword [rbx]
add r13d, 7
shr r13d, 3
jmp 0x18000f4db
cmp r11d, 4
jne 0x18000f4ce
mov r13d, dword [rbx]
inc r13d
shr r13d, 1
jmp 0x18000f4db
cmp r11d, 8
jne 0x18000f881
mov r13d, dword [rbx]
mov eax, dword [rbx + 4]
neg r13d
and r13d, 3
mov ecx, eax
cmp r11d, 1
jne 0x18000f6b9
mov dword [rbp + 0x430], 0
test eax, eax
jle 0x18000ffd5
xor edi, edi
nop word [rax + rax]
mov r9, qword [rbx + 0xc0]
mov r14d, 7
cmp r9, qword [rbx + 0xc8]
jae 0x18000f536
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x18000f55d
cmp dword [rbx + 0x30], 0
je 0x18000f55b
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x18000f55d
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r11d, cl
mov rcx, r9
test edx, edx
jle 0x18000f654
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 0x18000f5be
mov byte [rdi + rsi], 0xff
inc rdi
lea eax, [r15 + 1]
mov r9d, r8d
mov rcx, r8
mov r15d, eax
cmp eax, edx
je 0x18000f654
sub r14d, 1
jns 0x18000f638
mov r14d, 7
cmp r8, qword [rbx + 0xc8]
jae 0x18000f600
movzx r9d, byte [r8]
lea rcx, [r8 + 1]
mov qword [rbx + 0xc0], rcx
mov edx, r10d
movzx r11d, r9b
jmp 0x18000f642
cmp dword [rbx + 0x30], 0
je 0x18000f62c
mov rcx, rbx
call fcn.180005470
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 0x18000f642
xor r9b, r9b
mov edx, r10d
movzx r11d, r9b
jmp 0x18000f642
mov rcx, qword [rbx + 0xc0]
mov edx, r10d
mov r8, rcx
mov r9d, ecx
mov r10d, edx
cmp r15d, edx
jl 0x18000f580
test r13d, r13d
je 0x18000f699
cmp qword [rbx + 0x10], 0
je 0x18000f68c
mov r8d, dword [rbx + 0xc8]
sub r8d, r9d
cmp r8d, r13d
jge 0x18000f68c
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 0x18000f699
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 0x18000f510
jmp 0x18000ffd5
xor r15d, r15d
test eax, eax
jle 0x18000ffd5
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x18000f821
mov r8, qword [rbx + 0xc0]
cmp r8, qword [rbx + 0xc8]
jae 0x18000f6f0
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x18000f71e
cmp dword [rbx + 0x30], 0
je 0x18000f71c
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
mov r11d, dword [rbp + 0x430]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x18000f71e
xor cl, cl
xor r10d, r10d
movzx eax, cl
cmp r11d, 4
jne 0x18000f734
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 0x18000f772
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov r9d, dword [rbx]
lea eax, [r14 + 1]
cmp eax, r9d
je 0x18000f821
cmp r11d, 8
jne 0x18000f7d6
cmp r8, qword [rbx + 0xc8]
jae 0x18000f7a2
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x18000f7d2
cmp dword [rbx + 0x30], 0
je 0x18000f7d0
mov rcx, rbx
call fcn.180005470
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 0x18000f7d2
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 0x18000f814
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
add r14d, 2
cmp r14d, r9d
jl 0x18000f6d0
test r13d, r13d
je 0x18000f864
cmp qword [rbx + 0x10], 0
je 0x18000f85a
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x18000f85a
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 0x18000f864
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 0x18000f6c4
jmp 0x18000ffd5
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_bpp
mov qword [rcx + rax], rdx
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 edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid
jmp 0x18000f8a9
sub r13d, dword [rsp + 0x40]
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor r11d, r11d
mov dword [rbp + 0x438], eax
xor r10d, r10d
mov dword [rsp + 0x24], eax
xor r9d, r9d
mov dword [rsp + 0x28], r8d
xor r14d, r14d
xor r15d, r15d
sub r13d, edi
je 0x18000f9a1
test r13d, r13d
jns 0x18000f957
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x18000f9a1
cmp qword [rbx + 0x10], rax
je 0x18000f997
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x18000f997
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 0x18000f9a1
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x18000f9b3
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x18000f9c0
cmp ecx, 0x10
jne 0x18000f9be
mov edx, dword [rbx]
add edx, edx
jmp 0x18000f9c0
xor edx, edx
neg edx
and edx, 3
mov dword [rsp + 0x6c], edx
cmp ecx, 0x18
jne 0x18000f9e0
mov edx, 1
mov r13d, r14d
mov qword [rsp + 0x30], rdx
jmp 0x18000fc0a
xor eax, eax
cmp ecx, 0x20
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x38]
jne 0x18000fa43
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x428]
cmp eax, 0xff
jne 0x18000fa49
xor eax, eax
mov qword [rsp + 0x30], rax
cmp ecx, 0xff00
jne 0x18000fa43
cmp dword [rsp + 0x44], 0xff0000
mov qword [rsp + 0x30], rax
jne 0x18000fa43
mov edi, dword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp edi, 0xff000000
jne 0x18000fa6d
mov edx, 2
mov r13d, eax
mov qword [rsp + 0x30], rdx
jmp 0x18000fc0a
mov eax, dword [rbp + 0x428]
mov r9d, dword [rsp + 0x44]
test r9d, r9d
je 0x18001009e
test ecx, ecx
je 0x18001009e
test eax, eax
je 0x18001009e
mov edi, dword [rsp + 0x48]
jmp 0x18000fa72
mov r9d, dword [rsp + 0x44]
mov ecx, r9d
call fcn.18000ea30
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 + 0x20], 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.18000ea30
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rbp + 0x428]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rbp + 0x438], 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.18000ea30
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x24], 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.18000ea30
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 + 0x28], 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 0x18001009e
cmp r10d, 8
ja 0x18001009e
cmp r9d, 8
ja 0x18001009e
cmp r14d, 8
ja 0x18001009e
mov rdx, qword [rsp + 0x30]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x40], r15d
test eax, eax
jle 0x18000ffd5
mov edi, dword [rbp + 0x438]
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 + 0x24]
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
nop dword [rax]
mov eax, dword [rbx]
xor r13d, r13d
movsxd rcx, r15d
test rdx, rdx
je 0x18000fe1d
test eax, eax
jle 0x18000ff7a
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x18000fcdf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fd09
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x18000fd07
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fd09
xor cl, cl
mov byte [r14 + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x18000fd25
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fd4a
cmp dword [rdi], 0
je 0x18000fd48
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fd4a
xor cl, cl
mov byte [r14 + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x18000fd66
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fd8b
cmp dword [rdi], 0
je 0x18000fd89
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fd8b
xor cl, cl
mov byte [r14], cl
add r15d, 3
add r14, 3
cmp qword [rsp + 0x30], 2
jne 0x18000fdea
cmp rax, qword [rbx + 0xc8]
jae 0x18000fdb6
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fddc
cmp dword [rbx + 0x30], 0
je 0x18000fdda
mov rcx, rbx
call fcn.180005470
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18000fddc
xor cl, cl
mov edx, 0x30
mov rax, rbx
lea rdi, [rbx + rdx]
jmp 0x18000fdf0
mov cl, 0xff
lea rdi, [rbx + 0x30]
movzx eax, cl
or dword [rsp + 0x3c], eax
cmp r12d, 4
jne 0x18000fe06
inc r15d
mov byte [r14], cl
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x18000fcc0
mov edi, dword [rbp + 0x438]
jmp 0x18000ff7a
test eax, eax
jle 0x18000ff7a
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x430]
nop
mov rcx, rbx
call fcn.180005680
cmp esi, 0x10
je 0x18000fe52
mov rcx, rbx
mov edi, eax
call fcn.180005680
shl eax, 0x10
add eax, edi
mov edi, dword [rbp + 0x438]
mov ecx, dword [rsp + 0x20]
mov edx, eax
and edx, dword [rsp + 0x44]
test ecx, ecx
jns 0x18000fe68
mov ecx, dword [rsp + 0x54]
shl edx, cl
jmp 0x18000fe6a
shr edx, cl
mov r8, qword [rbp - 0x58]
lea r9, [0x180000000]
mov ecx, dword [rsp + 0x50]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x10f168]
mov ecx, dword [r9 + r8*4 + 0x10f140]
sar edx, cl
mov byte [r14], dl
mov edx, eax
and edx, dword [rsp + 0x38]
test edi, edi
jns 0x18000fea3
mov ecx, dword [rsp + 0x4c]
shl edx, cl
jmp 0x18000fea7
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 + 0x10f168]
mov ecx, dword [r9 + r8*4 + 0x10f140]
sar edx, cl
mov ecx, dword [rsp + 0x24]
mov byte [r14 + 1], dl
mov edx, eax
and edx, dword [rbp + 0x428]
test ecx, ecx
jns 0x18000fee0
mov ecx, dword [rsp + 0x5c]
shl edx, cl
jmp 0x18000fee2
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 + 0x10f168]
mov ecx, dword [r9 + r8*4 + 0x10f140]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test edi, edi
je 0x18000ff4b
mov r8d, dword [rsp + 0x28]
and eax, edi
test r8d, r8d
jns 0x18000ff27
mov ecx, dword [rsp + 0x64]
shl eax, cl
jmp 0x18000ff2c
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 + 0x10f168]
mov ecx, dword [r9 + r8*4 + 0x10f140]
sar eax, cl
jmp 0x18000ff50
mov eax, 0xff
or dword [rsp + 0x3c], eax
cmp r12d, 4
jne 0x18000ff63
inc r15d
mov byte [r14], al
inc r14
mov edi, dword [rbp + 0x438]
inc r13d
cmp r13d, dword [rbx]
jl 0x18000fe30
mov rsi, qword [rsp + 0x78]
mov edx, dword [rsp + 0x6c]
test edx, edx
je 0x18000ffb9
cmp qword [rbx + 0x10], 0
je 0x18000ffb2
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x18000ffb2
mov rax, qword [rbx + 0xc8]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x18000ffb9
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 0x18000fc90
mov edx, ecx
cmp r12d, 4
jne 0x180010003
cmp dword [rsp + 0x3c], 0
jne 0x180010003
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd r8, eax
test eax, eax
js 0x180010003
mov byte [r8 + rsi], 0xff
sub r8, 4
jns 0x18000fff5
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x18001007f
xor r10d, r10d
test edx, 0xfffffffe
jle 0x18001007f
nop word [rax + rax]
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 0x180010070
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 0x180010050
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x180010020
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x418]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rbp + 0x420]
mov dword [rcx], eax
mov rax, rsi
jmp 0x18000f8af
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_masks
jmp 0x18000f8a9
mov edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
jmp 0x18000f8a9
mov edx, dword [0x1801ee274]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x18000f8b7