Function at 0x1800eadd0
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.1800ea8b0
test rax, rax
je 0x1800eae53
mov eax, dword [rbx + 4]
mov dword [rsp + 0x70], eax
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x1800eae61
mov edx, dword [0x180357864]
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 0x1800eae30
mov eax, dword [rbp - 0x74]
mov edx, dword [rbp - 0x68]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x70]
mov dword [rbp + 0x438], eax
mov eax, dword [rbp - 0x6c]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rbp - 0x78]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x4d8], r13
movsxd r13, dword [rbp - 0x7c]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x60]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x80]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x2c], r13d
mov dword [rsp + 0x24], edi
mov dword [rbp + 0x430], r15d
cmp edi, 0xc
jne 0x1800eaef6
cmp r15d, 0x18
jge 0x1800eaf13
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
mov edx, dword [rsp + 0x3c]
jmp 0x1800eaf09
cmp r15d, 0x10
jge 0x1800eaf13
mov r14d, r13d
sub r14d, eax
sub r14d, edi
sar r14d, 2
mov dword [rsp + 0x20], r14d
test r14d, r14d
jne 0x1800eaf57
movsxd rcx, dword [rbx + 0xb8]
sub rcx, qword [rbx + 0xd0]
add rcx, qword [rbx + 0xc0]
cmp r13, rcx
je 0x1800eaf57
mov edx, dword [0x180357864]
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 0x1800eb61f
mov qword [rsp + 0x4e0], r12
cmp r15d, 0x18
jne 0x1800eaf73
cmp edx, 0xff000000
jne 0x1800eaf73
lea r12d, [r15 - 0x15]
jmp 0x1800eaf80
xor r12d, r12d
test edx, edx
setne r12b
add r12d, 3
mov dword [rbx + 8], r12d
test r9d, r9d
js 0x1800ebe60
je 0x1800eafa1
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x1800ebe60
mov ecx, r12d
imul ecx, r9d
test ecx, ecx
js 0x1800ebe60
test r8d, r8d
js 0x1800ebe60
je 0x1800eafcc
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1800ebe60
mov qword [rsp + 0x510], rsi
test r9d, r9d
je 0x1800eafeb
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x1800ebe3c
mov ecx, r12d
imul ecx, r9d
test r8d, r8d
je 0x1800eb008
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1800ebe3c
imul r8d, r9d
imul r8d, r12d
movsxd rcx, r8d
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 0x1800ebe3c
cmp r15d, 0x10
jge 0x1800eb66d
xor edi, edi
test r14d, r14d
je 0x1800eb643
cmp r14d, 0x100
jg 0x1800eb643
movsxd rax, r14d
test r14d, r14d
jle 0x1800eb1a1
mov esi, dword [rsp + 0x24]
lea r14, [rbx + 0x30]
xor r15d, r15d
mov r13, rax
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800eb08f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb0b8
cmp dword [rbx + 0x30], edi
lea r14, [rbx + 0x30]
je 0x1800eb0b6
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb0b8
xor cl, cl
mov qword [rbp + 0x438], r14
mov byte [rbp + r15*4 - 0x2e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800eb0dc
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb101
cmp dword [r14], edi
je 0x1800eb0ff
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb101
xor cl, cl
mov byte [rbp + r15*4 - 0x2f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800eb122
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb147
cmp dword [r14], edi
je 0x1800eb145
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb147
xor cl, cl
mov byte [rbp + r15*4 - 0x30], cl
cmp esi, 0xc
je 0x1800eb180
cmp rax, qword [rbx + 0xc8]
jae 0x1800eb166
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eb180
mov rax, qword [rbp + 0x438]
cmp dword [rax], edi
je 0x1800eb180
mov rcx, rbx
call fcn.1800e11f0
inc qword [rbx + 0xc0]
mov byte [rbp + r15*4 - 0x2d], 0xff
inc r15
cmp r15, r13
jl 0x1800eb070
mov rsi, qword [rsp + 0x78]
mov r13d, dword [rsp + 0x2c]
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 + 0x30]
sub r13d, dword [rsp + 0x24]
je 0x1800eb214
test r13d, r13d
jns 0x1800eb1d6
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1800eb214
cmp qword [rbx + 0x10], rdi
je 0x1800eb20a
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x1800eb20a
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 0x1800eb214
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov r11d, dword [rbp + 0x430]
cmp r11d, 1
jne 0x1800eb22e
mov r13d, dword [rbx]
add r13d, 7
shr r13d, 3
jmp 0x1800eb24c
cmp r11d, 4
jne 0x1800eb23f
mov r13d, dword [rbx]
inc r13d
shr r13d, 1
jmp 0x1800eb24c
cmp r11d, 8
jne 0x1800eb5e1
mov r13d, dword [rbx]
mov eax, dword [rbx + 4]
neg r13d
and r13d, 3
mov ecx, eax
cmp r11d, 1
jne 0x1800eb419
mov dword [rbp + 0x430], edi
test eax, eax
jle 0x1800ebd3b
mov r9, qword [rbx + 0xc0]
mov r14d, 7
cmp r9, qword [rbx + 0xc8]
jae 0x1800eb296
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x1800eb2bd
cmp dword [rbx + 0x30], 0
je 0x1800eb2bb
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x1800eb2bd
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r11d, cl
mov rcx, r9
test edx, edx
jle 0x1800eb3b4
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 0x1800eb31e
mov byte [rdi + rsi], 0xff
inc rdi
lea eax, [r15 + 1]
mov r9d, r8d
mov rcx, r8
mov r15d, eax
cmp eax, edx
je 0x1800eb3b4
sub r14d, 1
jns 0x1800eb398
mov r14d, 7
cmp r8, qword [rbx + 0xc8]
jae 0x1800eb360
movzx r9d, byte [r8]
lea rcx, [r8 + 1]
mov qword [rbx + 0xc0], rcx
mov edx, r10d
movzx r11d, r9b
jmp 0x1800eb3a2
cmp dword [rbx + 0x30], 0
je 0x1800eb38c
mov rcx, rbx
call fcn.1800e11f0
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 0x1800eb3a2
xor r9b, r9b
mov edx, r10d
movzx r11d, r9b
jmp 0x1800eb3a2
mov rcx, qword [rbx + 0xc0]
mov edx, r10d
mov r8, rcx
mov r9d, ecx
mov r10d, edx
cmp r15d, edx
jl 0x1800eb2e0
test r13d, r13d
je 0x1800eb3f9
cmp qword [rbx + 0x10], 0
je 0x1800eb3ec
mov r8d, dword [rbx + 0xc8]
sub r8d, r9d
cmp r8d, r13d
jge 0x1800eb3ec
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 0x1800eb3f9
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 0x1800eb270
jmp 0x1800ebd3b
xor r15d, r15d
test eax, eax
jle 0x1800ebd3b
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x1800eb581
mov r8, qword [rbx + 0xc0]
cmp r8, qword [rbx + 0xc8]
jae 0x1800eb450
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x1800eb47e
cmp dword [rbx + 0x30], 0
je 0x1800eb47c
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
mov r11d, dword [rbp + 0x430]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x1800eb47e
xor cl, cl
xor r10d, r10d
movzx eax, cl
cmp r11d, 4
jne 0x1800eb494
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 0x1800eb4d2
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov r9d, dword [rbx]
lea eax, [r14 + 1]
cmp eax, r9d
je 0x1800eb581
cmp r11d, 8
jne 0x1800eb536
cmp r8, qword [rbx + 0xc8]
jae 0x1800eb502
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x1800eb532
cmp dword [rbx + 0x30], 0
je 0x1800eb530
mov rcx, rbx
call fcn.1800e11f0
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 0x1800eb532
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 0x1800eb574
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
add r14d, 2
cmp r14d, r9d
jl 0x1800eb430
test r13d, r13d
je 0x1800eb5c4
cmp qword [rbx + 0x10], 0
je 0x1800eb5ba
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x1800eb5ba
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 0x1800eb5c4
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 0x1800eb424
jmp 0x1800ebd3b
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [0x180357864]
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 [0x180357864]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid
jmp 0x1800eb609
sub r13d, dword [rsp + 0x30]
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 + 0x2c], 0
xor r14d, r14d
mov dword [rsp + 0x24], r8d
xor r15d, r15d
sub r13d, edi
je 0x1800eb705
test r13d, r13d
jns 0x1800eb6bb
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1800eb705
cmp qword [rbx + 0x10], r8
je 0x1800eb6fb
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x1800eb6fb
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 0x1800eb705
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x1800eb717
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x1800eb724
cmp ecx, 0x10
jne 0x1800eb722
mov edx, dword [rbx]
add edx, edx
jmp 0x1800eb724
xor edx, edx
neg edx
and edx, 3
mov dword [rsp + 0x20], edx
cmp ecx, 0x18
jne 0x1800eb741
mov edi, 1
mov qword [rsp + 0x40], rdi
jmp 0x1800eb961
mov eax, dword [rsp + 0x38]
xor edi, edi
cmp ecx, 0x20
mov qword [rsp + 0x40], rdi
mov ecx, dword [rbp + 0x438]
jne 0x1800eb7a1
mov qword [rsp + 0x40], rdi
cmp eax, 0xff
jne 0x1800eb7a1
mov qword [rsp + 0x40], rdi
cmp ecx, 0xff00
jne 0x1800eb7a1
cmp dword [rsp + 0x34], 0xff0000
mov qword [rsp + 0x40], rdi
jne 0x1800eb7a1
mov r13d, dword [rsp + 0x3c]
mov qword [rsp + 0x40], rdi
cmp r13d, 0xff000000
jne 0x1800eb7c6
mov edi, 2
mov qword [rsp + 0x40], rdi
jmp 0x1800eb961
mov r9d, dword [rsp + 0x34]
test r9d, r9d
je 0x1800ebe0f
test ecx, ecx
je 0x1800ebe0f
test eax, eax
je 0x1800ebe0f
mov r13d, dword [rsp + 0x3c]
jmp 0x1800eb7cb
mov r9d, dword [rsp + 0x34]
mov ecx, r9d
call fcn.1800ea7d0
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 + 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.1800ea7d0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rsp + 0x38]
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.1800ea7d0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x2c], 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.1800ea7d0
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 0x1800ebe0f
cmp r10d, 8
ja 0x1800ebe0f
cmp r9d, 8
ja 0x1800ebe0f
cmp r14d, 8
ja 0x1800ebe0f
mov edx, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x30], r15d
test eax, eax
jle 0x1800ebd3b
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 + 0x2c]
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]
mov eax, dword [rbx]
xor r13d, r13d
movsxd rcx, r15d
test rdi, rdi
je 0x1800ebb58
test eax, eax
jle 0x1800ebcdf
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 0x1800eba2f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eba59
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1800eba57
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eba59
xor cl, cl
mov byte [r14 + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800eba75
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eba9a
cmp dword [rdi], 0
je 0x1800eba98
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800eba9a
xor cl, cl
mov byte [r14 + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800ebab6
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800ebadb
cmp dword [rdi], 0
je 0x1800ebad9
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800ebadb
xor cl, cl
mov byte [r14], cl
add r15d, 3
add r14, 3
cmp rsi, 2
jne 0x1800ebb2b
cmp rax, qword [rbx + 0xc8]
jae 0x1800ebb04
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800ebb2d
cmp dword [rdi], 0
je 0x1800ebb27
mov rcx, rbx
call fcn.1800e11f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800ebb31
xor cl, cl
jmp 0x1800ebb31
mov cl, 0xff
lea rdi, [rbx + 0x30]
movzx eax, cl
or dword [rsp + 0x28], eax
cmp r12d, 4
jne 0x1800ebb47
inc r15d
mov byte [r14], cl
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x1800eba10
jmp 0x1800ebcd1
test eax, eax
jle 0x1800ebcdf
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x430]
lea rdi, [0x180000000]
mov rcx, rbx
call fcn.1800e1400
cmp esi, 0x10
jne 0x1800ebb83
mov r8d, eax
jmp 0x1800ebb9e
mov rcx, rbx
mov edi, eax
call fcn.1800e1400
mov r8d, eax
shl r8d, 0x10
add r8d, edi
lea rdi, [0x180000000]
mov r9d, dword [rsp + 0x48]
mov edx, r8d
and edx, dword [rsp + 0x34]
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 + 0x2f27d8]
mov ecx, dword [rdi + r11*4 + 0x2f2820]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rbp + 0x438]
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 + 0x2c]
cmovns edx, eax
shr edx, cl
imul edx, dword [rdi + r10*4 + 0x2f27d8]
mov ecx, dword [rdi + r10*4 + 0x2f2820]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x38]
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 [rsp + 0x3c]
shr edx, cl
add r15d, 3
imul edx, dword [rdi + r9*4 + 0x2f27d8]
mov ecx, dword [rdi + r9*4 + 0x2f2820]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test eax, eax
je 0x1800ebcab
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 + 0x2f27d8]
mov ecx, dword [rdi + r9*4 + 0x2f2820]
sar r8d, cl
jmp 0x1800ebcb1
mov r8d, 0xff
or dword [rsp + 0x28], r8d
cmp r12d, 4
jne 0x1800ebcc5
inc r15d
mov byte [r14], r8b
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x1800ebb71
mov edx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
test edx, edx
je 0x1800ebd20
cmp qword [rbx + 0x10], 0
je 0x1800ebd17
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x1800ebd17
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 0x1800ebd20
mov eax, edx
add qword [rbx + 0xc0], rax
mov r13d, dword [rsp + 0x30]
mov eax, dword [rbx + 4]
inc r13d
mov dword [rsp + 0x30], r13d
mov ecx, eax
cmp r13d, eax
jl 0x1800eb9e0
mov edx, ecx
cmp r12d, 4
jne 0x1800ebd6e
cmp dword [rsp + 0x28], 0
jne 0x1800ebd6e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd r8, eax
test eax, eax
js 0x1800ebd6e
nop dword [rax + rax]
mov byte [r8 + rsi], 0xff
sub r8, 4
jns 0x1800ebd60
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x1800ebddf
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1800ebddf
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 0x1800ebdd0
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 0x1800ebdb0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1800ebd80
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 0x1800ebe07
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x1800eb60f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [0x180357864]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_masks
jmp 0x1800eb609
mov edx, dword [0x180357864]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
jmp 0x1800eb609
mov edx, dword [0x180357864]
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 0x1800eb617