Function at 0x1400e5fe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x528
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov eax, dword [rsp + 0x590]
mov rbx, rcx
mov qword [rsp + 0xf8], rdx
xor r13d, r13d
lea rdx, [rsp + 0xb8]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0x100], r8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0xd4], 0xff
call fcn.1400e5af0
test rax, rax
je 0x1400e7138
mov ecx, dword [rbx + 4]
mov eax, ecx
neg eax
mov dword [rsp + 0x9c], ecx
cmovs eax, ecx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x1400e6083
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x1400e712f
cmp dword [rbx], 0x1000000
ja 0x1400e606b
mov eax, dword [rsp + 0xc4]
mov r12d, dword [rsp + 0xc0]
mov ebp, dword [rsp + 0xd0]
mov esi, dword [rsp + 0xd8]
mov r14d, dword [rsp + 0xbc]
mov edi, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x4c], edi
cmp r12d, 0xc
jne 0x1400e6118
cmp edi, 0x18
jge 0x1400e6133
mov ecx, r14d
mov eax, 0x55555556
sub ecx, esi
sub ecx, 0x18
imul ecx
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x1400e612a
cmp edi, 0x10
jge 0x1400e6133
mov r13d, r14d
sub r13d, esi
sub r13d, r12d
sar r13d, 2
test r13d, r13d
jne 0x1400e61c0
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 0x1400e711c
cmp r14d, edx
jl 0x1400e7107
mov ecx, r14d
sub ecx, edx
cmp ecx, 0x400
jg 0x1400e7107
test ecx, ecx
je 0x1400e61c0
jns 0x1400e6187
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1400e61c0
cmp qword [rbx + 0x10], 0
je 0x1400e61b6
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x1400e61b6
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 0x1400e61c0
movsxd rax, ecx
add qword [rbx + 0xc0], rax
cmp edi, 0x18
jne 0x1400e61d5
cmp ebp, 0xff000000
jne 0x1400e61d5
mov r15d, 3
jmp 0x1400e61e2
xor r15d, r15d
test ebp, ebp
setne r15b
add r15d, 3
mov eax, dword [rsp + 0x70]
mov dword [rbx + 8], r15d
mov r9d, dword [rbx + 4]
mov r10d, r9d
mov ecx, dword [rbx]
mov r8d, ecx
cmp eax, 3
jl 0x1400e61fe
mov r15d, eax
test r8d, r8d
js 0x1400e606b
je 0x1400e621b
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r15d, eax
jg 0x1400e606b
imul r8d, r15d
test r8d, r8d
js 0x1400e606b
test r10d, r10d
js 0x1400e606b
je 0x1400e6245
mov eax, 0x7fffffff
cdq
idiv r10d
cmp r8d, eax
jg 0x1400e606b
test r15d, r15d
js 0x1400e70f2
test ecx, ecx
je 0x1400e6263
mov eax, 0x7fffffff
cdq
idiv ecx
cmp r15d, eax
jg 0x1400e70f2
mov r8d, r15d
imul r8d, ecx
test r9d, r9d
je 0x1400e6281
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r8d, eax
jg 0x1400e70f2
imul ecx, r9d
imul ecx, r15d
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
mov r11, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1400e70f2
cmp edi, 0x10
jge 0x1400e6867
xor edi, edi
mov dword [rsp + 0x48], edi
test r13d, r13d
je 0x1400e6846
cmp r13d, 0x100
jg 0x1400e6846
mov rsi, rax
test r13d, r13d
jle 0x1400e642d
mov r14d, dword [rsp + 0x38]
lea rbp, [rbx + 0x30]
xor r12d, r12d
movsxd rdi, r13d
nop
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e630f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6339
cmp dword [rbx + 0x30], 0
lea rbp, [rbx + 0x30]
je 0x1400e6337
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6339
xor cl, cl
mov qword [rsp + 0x68], rbp
mov byte [rsp + r12*4 + 0x112], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1400e635e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6384
cmp dword [rbp], 0
je 0x1400e6382
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6384
xor cl, cl
mov byte [rsp + r12*4 + 0x111], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1400e63a8
movzx ecx, byte [rax]
lea rbp, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e63ce
cmp dword [rbp], 0
je 0x1400e63cc
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e63ce
xor cl, cl
mov byte [rsp + r12*4 + 0x110], cl
cmp r14d, 0xc
je 0x1400e640a
cmp rax, qword [rbx + 0xc8]
jae 0x1400e63f1
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e640a
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0
je 0x1400e640a
mov rcx, rbx
call fcn.1400dbd40
inc qword [rbx + 0xc0]
mov byte [rsp + r12*4 + 0x113], 0xff
inc r12
cmp r12, rdi
jl 0x1400e62f0
mov edi, dword [rsp + 0x48]
mov r14d, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x38]
xor eax, eax
cmp r12d, 0xc
setne al
add eax, 3
imul eax, r13d
sub r14d, eax
sub r14d, dword [rsp + 0x30]
sub r14d, r12d
je 0x1400e649e
test r14d, r14d
jns 0x1400e645f
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1400e649e
cmp qword [rbx + 0x10], 0
je 0x1400e6494
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x1400e6494
mov rax, qword [rbx + 0xc8]
sub r14d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r14d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x1400e649e
movsxd rax, r14d
add qword [rbx + 0xc0], rax
mov r13d, dword [rsp + 0x4c]
cmp r13d, 1
jne 0x1400e64b6
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400e64d4
cmp r13d, 4
jne 0x1400e64c7
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400e64d4
cmp r13d, 8
jne 0x1400e6825
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
cmp r13d, 1
jne 0x1400e6662
xor r13d, r13d
test eax, eax
jle 0x1400e6fbd
xor edi, edi
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1400e6525
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e654b
cmp dword [rbx + 0x30], 0
je 0x1400e6549
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e654b
xor cl, cl
xor ebp, ebp
movzx edx, cl
cmp dword [rbx], ebp
jle 0x1400e660b
nop dword [rax + rax]
mov eax, edx
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0x110]
mov byte [rdi + rsi], al
movzx eax, byte [rsp + rcx + 0x111]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rsp + rcx + 0x112]
mov byte [rdi + rsi + 2], al
add rdi, 3
cmp r15d, 4
jne 0x1400e65a6
mov byte [rdi + rsi], 0xff
inc rdi
lea eax, [rbp + 1]
cmp eax, dword [rbx]
je 0x1400e660b
sub r14d, 1
jns 0x1400e6601
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1400e65d8
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e65fe
cmp dword [rbx + 0x30], 0
je 0x1400e65fc
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e65fe
xor cl, cl
movzx edx, cl
inc ebp
cmp ebp, dword [rbx]
jl 0x1400e6560
test r12d, r12d
je 0x1400e664e
cmp qword [rbx + 0x10], 0
je 0x1400e6644
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x1400e6644
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400e664e
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
cmp r13d, eax
jl 0x1400e6500
jmp 0x1400e6fbd
xor r14d, r14d
test eax, eax
jle 0x1400e6fbd
nop dword [rax]
xor ebp, ebp
cmp dword [rbx], ebp
jle 0x1400e67ce
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e669f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e66c5
cmp dword [rbx + 0x30], 0
je 0x1400e66c3
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e66c5
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r13d, 4
jne 0x1400e66db
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0x110]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0x111]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0x112]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r15d, 4
jne 0x1400e6722
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [rbp + 1]
cmp eax, dword [rbx]
je 0x1400e67ce
cmp r13d, 8
jne 0x1400e677c
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e6752
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6778
cmp dword [rbx + 0x30], 0
je 0x1400e6776
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6778
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rsp + rdx + 0x110]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0x111]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0x112]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r15d, 4
jne 0x1400e67c3
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
add ebp, 2
cmp ebp, dword [rbx]
jl 0x1400e6680
test r12d, r12d
je 0x1400e6811
cmp qword [rbx + 0x10], 0
je 0x1400e6807
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x1400e6807
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400e6811
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r14d
cmp r14d, eax
jl 0x1400e6670
jmp 0x1400e6fbd
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x1400e712f
mov rcx, r11
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1400e712f
xor r8d, r8d
mov dword [rsp + 0x54], 0
xor r10d, r10d
mov dword [rsp + 0x58], 0
xor r9d, r9d
mov dword [rsp + 0x44], 0
xor r13d, r13d
mov dword [rsp + 0x38], r8d
xor edi, edi
xor ebp, ebp
sub r14d, esi
sub r14d, r12d
je 0x1400e6900
test r14d, r14d
jns 0x1400e68b1
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1400e6900
cmp qword [rbx + 0x10], rdi
je 0x1400e68f6
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x1400e68f6
mov rax, qword [rbx + 0xc8]
sub r14d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r14d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov r11, qword [rsp + 0x80]
mov r9d, edi
mov r10d, edi
mov r8d, edi
jmp 0x1400e6900
movsxd rax, r14d
add qword [rbx + 0xc0], rax
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0x18
jne 0x1400e6910
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x1400e691d
cmp ecx, 0x10
jne 0x1400e691b
mov edx, dword [rbx]
add edx, edx
jmp 0x1400e691d
xor edx, edx
neg edx
mov rsi, r11
and edx, 3
mov dword [rsp + 0x34], edx
cmp ecx, 0x18
jne 0x1400e6947
mov qword [rsp + 0x60], 1
mov r14d, edi
mov qword [rsp + 0x78], r11
mov r12d, edi
jmp 0x1400e6baf
xor eax, eax
mov qword [rsp + 0x60], rax
cmp ecx, 0x20
mov ecx, dword [rsp + 0x3c]
mov eax, r15d
jne 0x1400e69cf
xor eax, eax
cmp dword [rsp + 0x5c], 0xff
mov qword [rsp + 0x60], rax
mov eax, r15d
jne 0x1400e69cf
xor eax, eax
mov qword [rsp + 0x60], rax
mov eax, r15d
cmp ecx, 0xff00
jne 0x1400e69cf
xor eax, eax
cmp dword [rsp + 0x50], 0xff0000
mov qword [rsp + 0x60], rax
mov eax, r15d
jne 0x1400e69cf
mov r11d, dword [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rsi
cmp r11d, 0xff000000
jne 0x1400e6a18
mov rsi, qword [rsp + 0x80]
mov r14d, eax
mov qword [rsp + 0x78], rsi
mov r12d, eax
mov qword [rsp + 0x60], 2
jmp 0x1400e6baf
mov r9d, dword [rsp + 0x50]
mov r15d, eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x88], rax
test r9d, r9d
je 0x1400e70d4
test ecx, ecx
je 0x1400e70d4
mov edi, dword [rsp + 0x5c]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], r11
test edi, edi
je 0x1400e70d4
mov r11d, dword [rsp + 0x48]
jmp 0x1400e6a21
mov r9d, dword [rsp + 0x50]
mov edi, dword [rsp + 0x5c]
mov ecx, r9d
call fcn.1400e5a10
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rsp + 0x3c]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r14d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x54], r14d
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.1400e5a10
mov edx, r9d
mov ecx, r9d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r12d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x58], r12d
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.1400e5a10
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
and edx, 0x55555555
mov dword [rsp + 0x44], 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, r11d
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.1400e5a10
lea r8d, [rax - 7]
mov edx, r11d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
mov dword [rsp + 0x38], r8d
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
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
cmp r10d, 8
ja 0x1400e70d4
cmp r9d, 8
ja 0x1400e70d4
cmp r13d, 8
ja 0x1400e70d4
cmp edi, 8
ja 0x1400e70d4
mov edx, dword [rsp + 0x34]
mov eax, dword [rbx + 4]
xor r11d, r11d
mov dword [rsp + 0x30], r11d
test eax, eax
jle 0x1400e6fbd
neg r12d
mov qword [rsp + 0x68], rdi
mov eax, r14d
mov dword [rsp + 0xac], r12d
mov r12, qword [rsp + 0x60]
neg eax
mov dword [rsp + 0xa4], eax
mov eax, 8
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0xa8], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0xb0], ecx
mov ecx, dword [rsp + 0x44]
neg ecx
mov dword [rsp + 0x90], ecx
mov ecx, eax
sub ecx, r13d
mov dword [rsp + 0x94], ecx
mov ecx, r8d
neg ecx
sub eax, edi
mov dword [rsp + 0x98], ecx
mov dword [rsp + 0xa0], eax
mov eax, r10d
mov qword [rsp + 0xe0], rax
mov eax, r13d
mov r13d, dword [rsp + 0xa0]
mov ecx, r9d
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], rcx
nop word [rax + rax]
mov eax, dword [rbx]
movsxd rcx, ebp
test r12, r12
je 0x1400e6ddb
xor r14d, r14d
test eax, eax
jle 0x1400e6f5e
lea rdi, [rcx + rsi]
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e6c9f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6cc5
cmp dword [rbx + 0x30], 0
je 0x1400e6cc3
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6cc5
xor cl, cl
mov byte [rdi + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e6ce7
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6d0d
cmp dword [rbx + 0x30], 0
je 0x1400e6d0b
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6d0d
xor cl, cl
mov byte [rdi + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e6d2f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6d55
cmp dword [rbx + 0x30], 0
je 0x1400e6d53
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6d55
xor cl, cl
mov byte [rdi], cl
add ebp, 3
add rdi, 3
cmp r12, 2
jne 0x1400e6dab
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400e6d83
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6dad
cmp dword [rbx + 0x30], 0
je 0x1400e6da7
mov rcx, rbx
call fcn.1400dbd40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400e6dad
xor cl, cl
jmp 0x1400e6dad
mov cl, 0xff
movzx eax, cl
or dword [rsp + 0x40], eax
cmp r15d, 4
jne 0x1400e6dc1
inc ebp
mov byte [rdi], cl
inc rdi
inc r14d
cmp r14d, dword [rbx]
jl 0x1400e6c80
mov edx, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x30]
jmp 0x1400e6f5e
test eax, eax
jle 0x1400e6f59
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x4c]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400dbf50
cmp esi, 0x10
je 0x1400e6e11
mov rcx, rbx
mov edi, eax
call fcn.1400dbf50
shl eax, 0x10
add eax, edi
mov rdi, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x54]
mov edx, eax
and edx, dword [rsp + 0x50]
test ecx, ecx
jns 0x1400e6e2a
mov ecx, dword [rsp + 0xa4]
shl edx, cl
jmp 0x1400e6e2c
shr edx, cl
mov r8, qword [rsp + 0xe0]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0xa8]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x111c20]
mov ecx, dword [r9 + r8*4 + 0x111c68]
sar edx, cl
mov ecx, dword [rsp + 0x58]
mov byte [r14], dl
mov edx, eax
and edx, dword [rsp + 0x3c]
test ecx, ecx
jns 0x1400e6e73
mov ecx, dword [rsp + 0xac]
shl edx, cl
jmp 0x1400e6e75
shr edx, cl
mov r8, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0xb0]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x111c20]
mov ecx, dword [r9 + r8*4 + 0x111c68]
sar edx, cl
mov ecx, dword [rsp + 0x44]
mov byte [r14 + 1], dl
mov edx, eax
and edx, dword [rsp + 0x5c]
test ecx, ecx
jns 0x1400e6eb6
mov ecx, dword [rsp + 0x90]
shl edx, cl
jmp 0x1400e6eb8
shr edx, cl
mov r8, qword [rsp + 0xf0]
add ebp, 3
mov ecx, dword [rsp + 0x94]
mov r11d, dword [rsp + 0x48]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x111c20]
mov ecx, dword [r9 + r8*4 + 0x111c68]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test r11d, r11d
je 0x1400e6f28
mov r8d, dword [rsp + 0x38]
and eax, r11d
test r8d, r8d
jns 0x1400e6f09
mov ecx, dword [rsp + 0x98]
shl eax, cl
jmp 0x1400e6f0e
mov ecx, r8d
shr eax, cl
mov ecx, r13d
shr eax, cl
imul eax, dword [r9 + rdi*4 + 0x111c20]
mov ecx, dword [r9 + rdi*4 + 0x111c68]
sar eax, cl
jmp 0x1400e6f2d
mov eax, 0xff
or dword [rsp + 0x40], eax
cmp r15d, 4
jne 0x1400e6f3f
inc ebp
mov byte [r14], al
inc r14
inc r12d
cmp r12d, dword [rbx]
jl 0x1400e6df0
mov rsi, qword [rsp + 0x78]
mov edx, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x60]
test edx, edx
je 0x1400e6fa4
cmp qword [rbx + 0x10], 0
je 0x1400e6f9b
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x1400e6f9b
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 + 0x34]
mov r11d, dword [rsp + 0x30]
jmp 0x1400e6fa4
mov eax, edx
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r11d
mov rdi, qword [rsp + 0x68]
mov dword [rsp + 0x30], r11d
cmp r11d, eax
jl 0x1400e6c60
cmp r15d, 4
jne 0x1400e6fed
cmp dword [rsp + 0x40], 0
jne 0x1400e6fed
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400e6fed
mov rax, qword [rsp + 0x80]
mov byte [rcx + rax], 0xff
sub rcx, 4
jns 0x1400e6fe3
cmp dword [rsp + 0x9c], 0
jle 0x1400e706f
mov edx, dword [rbx + 4]
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400e706f
nop word [rax + rax]
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
imul ecx, r15d
imul edx, r15d
imul r9d, r15d
add rdx, rsi
add r9, rsi
test ecx, ecx
jle 0x1400e7060
sub r9, rdx
nop dword [rax]
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov eax, r15d
mov byte [rdx], cl
lea rdx, [rdx + 1]
imul eax, dword [rbx]
cmp r8d, eax
jl 0x1400e7040
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400e7010
mov ecx, dword [rsp + 0x70]
test ecx, ecx
je 0x1400e709f
cmp ecx, r15d
je 0x1400e709f
mov eax, dword [rbx + 4]
mov r8d, ecx
mov r9d, dword [rbx]
mov rcx, rsi
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.1400dc010
test rax, rax
je 0x1400e7138
jmp 0x1400e70a7
mov rax, qword [rsp + 0x88]
mov ecx, dword [rbx]
mov rdx, qword [rsp + 0xf8]
mov dword [rdx], ecx
mov rdx, qword [rsp + 0x100]
mov ecx, dword [rbx + 4]
mov dword [rdx], ecx
mov rdx, qword [rsp + 0x108]
test rdx, rdx
je 0x1400e713a
mov ecx, dword [rbx + 8]
mov dword [rdx], ecx
jmp 0x1400e713a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1400e712f
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400e712f
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_offset
jmp 0x1400e712f
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_header
mov edx, 0x28
mov qword [rdx + rcx], rax
xor eax, eax
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.1400f3ce0
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret