Function at 0x14009f0c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140145080]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov qword [rbp - 0x28], rdx
mov rbx, rcx
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x20], r8
xor r13d, r13d
mov dword [rbp - 0x54], 0xff
call fcn.14009ea50
test rax, rax
je 0x14009f13b
mov ecx, dword [rbx + 4]
mov eax, ecx
neg eax
mov dword [rbp - 0x80], ecx
cmovs eax, ecx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x14009f142
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009f938
cmp dword [rbx], 0x1000000
ja 0x14009f11f
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x4c], eax
mov eax, dword [rbp - 0x60]
mov qword [rsp + 0x558], rsi
mov esi, dword [rbp - 0x58]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x518], rdi
mov edi, dword [rbp - 0x70]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x54]
mov qword [rsp + 0x508], r14
mov r14d, dword [rbp - 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x50]
mov qword [rsp + 0x500], r15
mov r15d, dword [rbp - 0x6c]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x48], edi
cmp r14d, 0xc
jne 0x14009f1d3
cmp edi, 0x18
jge 0x14009f1ee
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x14009f1e5
cmp edi, 0x10
jge 0x14009f1ee
mov r13d, r15d
sub r13d, eax
sub r13d, r14d
sar r13d, 2
test r13d, r13d
jne 0x14009f27b
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 0x1400a01f6
cmp r15d, edx
jl 0x1400a01d3
mov ecx, r15d
sub ecx, edx
cmp ecx, 0x400
jg 0x1400a01d3
test ecx, ecx
je 0x14009f27b
jns 0x14009f242
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14009f27b
cmp qword [rbx + 0x10], 0
je 0x14009f271
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x14009f271
mov rax, qword [rbx + 0xc8]
sub ecx, edx
mov edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x14009f27b
movsxd rax, ecx
add qword [rbx + 0xc0], rax
cmp edi, 0x18
jne 0x14009f28d
cmp esi, 0xff000000
jne 0x14009f28d
lea eax, [rdi - 0x15]
jmp 0x14009f297
xor eax, eax
test esi, esi
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x1400a01b0
jne 0x14009f2b4
lea r9d, [rcx*4]
jmp 0x14009f2d6
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400a01b0
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400a01b0
test r8d, r8d
js 0x1400a01b0
je 0x14009f2f3
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400a01b0
test ecx, ecx
jne 0x14009f301
lea r9d, [rcx*4]
jmp 0x14009f324
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400a018d
lea edx, [rcx*4]
test edx, edx
js 0x1400a018d
mov r9d, edx
test r8d, r8d
je 0x14009f33b
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400a018d
imul ecx, r8d
lea eax, [rcx*4]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x78], rax
mov rsi, rax
test rax, rax
je 0x1400a018d
mov qword [rsp + 0x510], r12
cmp edi, 0x10
jge 0x14009f976
xor edi, edi
mov dword [rsp + 0x38], edi
test r13d, r13d
je 0x14009f953
cmp r13d, 0x100
jg 0x14009f953
test r13d, r13d
jle 0x14009f4ea
mov r15d, dword [rsp + 0x28]
lea r14, [rbx + 0x30]
xor r12d, r12d
movsxd rsi, r13d
lea rdi, [rbp - 0xd]
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14009f3cf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f3f9
cmp dword [rbx + 0x30], 0
lea r14, [rbx + 0x30]
je 0x14009f3f7
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f3f9
xor cl, cl
lea rdx, [rbp - 0xe]
mov qword [rsp + 0x40], r14
mov byte [rdx + r12*4], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14009f41e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f444
cmp dword [r14], 0
je 0x14009f442
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f444
xor cl, cl
mov byte [rbp + r12*4 - 0xf], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14009f465
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f48b
cmp dword [r14], 0
je 0x14009f489
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f48b
xor cl, cl
lea rdx, [rbp - 0x10]
mov byte [rdx + r12*4], cl
cmp r15d, 0xc
je 0x14009f4c7
cmp rax, qword [rbx + 0xc8]
jae 0x14009f4ae
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f4c7
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0
je 0x14009f4c7
mov rcx, rbx
call fcn.140094e20
inc qword [rbx + 0xc0]
mov byte [rdi + r12*4], 0xff
inc r12
cmp r12, rsi
jl 0x14009f3b0
mov edi, dword [rsp + 0x38]
mov rsi, qword [rbp - 0x78]
mov r15d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x28]
xor eax, eax
cmp r14d, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, dword [rsp + 0x20]
sub r15d, r14d
je 0x14009f55b
test r15d, r15d
jns 0x14009f51c
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14009f55b
cmp qword [rbx + 0x10], 0
je 0x14009f551
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x14009f551
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
jmp 0x14009f55b
movsxd rax, r15d
add qword [rbx + 0xc0], rax
mov r13d, dword [rsp + 0x48]
cmp r13d, 1
jne 0x14009f573
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x14009f591
cmp r13d, 4
jne 0x14009f584
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x14009f591
cmp r13d, 8
jne 0x14009f8e9
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x14009f749
xor r13d, r13d
test eax, eax
jle 0x1400a00af
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 0xc0]
mov r14d, 7
cmp r8, qword [rbx + 0xc8]
jae 0x14009f5e6
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x14009f60d
cmp dword [rbx + 0x30], 0
je 0x14009f60b
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x14009f60d
xor cl, cl
mov r9d, dword [rbx]
xor r15d, r15d
movzx r10d, cl
mov rcx, r8
test r9d, r9d
jle 0x14009f6ee
mov rdx, r8
nop word [rax + rax]
mov eax, r10d
mov ecx, r14d
sar eax, cl
mov r8d, edx
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x10]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0xf]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0xe]
mov rcx, rdx
mov byte [rdi + rsi + 2], al
lea eax, [r15 + 1]
mov byte [rdi + rsi + 3], 0xff
mov r15d, eax
add rdi, 4
cmp eax, r9d
je 0x14009f6ee
sub r14d, 1
jns 0x14009f6d5
mov r14d, 7
cmp rdx, qword [rbx + 0xc8]
jae 0x14009f6a2
movzx r8d, byte [rdx]
lea rcx, [rdx + 1]
mov qword [rbx + 0xc0], rcx
movzx r10d, r8b
jmp 0x14009f6dc
cmp dword [rbx + 0x30], 0
je 0x14009f6cc
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx r8d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
movzx r10d, r8b
jmp 0x14009f6dc
xor r8b, r8b
movzx r10d, r8b
jmp 0x14009f6dc
mov rcx, qword [rbx + 0xc0]
mov r9d, dword [rbx]
mov rdx, rcx
mov r8d, ecx
cmp r15d, r9d
jl 0x14009f630
test r12d, r12d
je 0x14009f733
cmp qword [rbx + 0x10], 0
je 0x14009f726
mov r9d, dword [rbx + 0xc8]
sub r9d, r8d
cmp r9d, r12d
jge 0x14009f726
mov rax, qword [rbx + 0xc8]
mov edx, r12d
mov rcx, qword [rbx + 0x28]
sub edx, r9d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
jmp 0x14009f733
mov eax, r12d
add rax, rcx
mov qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x14009f5c0
jmp 0x1400a00af
xor r15d, r15d
test eax, eax
jle 0x1400a00af
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x14009f890
mov r8, qword [rbx + 0xc0]
cmp r8, qword [rbx + 0xc8]
jae 0x14009f780
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x14009f7a7
cmp dword [rbx + 0x30], 0
je 0x14009f7a5
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x14009f7a7
xor cl, cl
xor r9d, r9d
movzx eax, cl
cmp r13d, 4
jne 0x14009f7bd
mov r9d, eax
and r9d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x10]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xf]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xe]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, dword [rbx]
je 0x14009f890
cmp r13d, 8
jne 0x14009f84b
cmp r8, qword [rbx + 0xc8]
jae 0x14009f821
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x14009f847
cmp dword [rbx + 0x30], 0
je 0x14009f845
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009f847
xor cl, cl
movzx r9d, cl
movsxd rcx, edi
lea rdx, [r9*4]
movzx eax, byte [rbp + rdx - 0x10]
inc edi
add r14d, 2
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xf]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xe]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r14d, dword [rbx]
jl 0x14009f760
test r12d, r12d
je 0x14009f8d3
cmp qword [rbx + 0x10], 0
je 0x14009f8c9
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x14009f8c9
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x14009f8d3
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r15d
mov edx, eax
cmp r15d, eax
jl 0x14009f754
jmp 0x1400a00af
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov r12, qword [rsp + 0x510]
mov r14, qword [rsp + 0x508]
mov rdi, qword [rsp + 0x518]
mov rsi, qword [rsp + 0x558]
mov r15, qword [rsp + 0x500]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1401096d0
add rsp, 0x520
pop r13
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, Ordinal_41
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14009f90a
sub r15d, dword [rsp + 0x20]
xor edx, edx
mov dword [rsp + 0x34], edx
mov r11d, edx
mov dword [rsp + 0x54], edx
mov r9d, edx
mov dword [rsp + 0x28], edx
mov r13d, edx
mov dword [rsp + 0x2c], edx
mov r12d, edx
mov edi, edx
sub r15d, r14d
je 0x14009f9fb
test r15d, r15d
jns 0x14009f9b5
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14009f9fb
cmp qword [rbx + 0x10], rdx
je 0x14009f9f1
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x14009f9f1
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
mov r9d, edi
mov r11d, edi
xor edx, edx
jmp 0x14009f9fb
movsxd rax, r15d
add qword [rbx + 0xc0], rax
mov ecx, dword [rsp + 0x48]
cmp ecx, 0x18
jne 0x14009fa0c
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x14009fa1c
cmp ecx, 0x10
jne 0x14009fa19
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x14009fa1c
mov r8d, edx
neg r8d
and r8d, 3
mov dword [rsp + 0x24], r8d
cmp ecx, 0x18
jne 0x14009fa41
mov qword [rsp + 0x40], 1
mov r14d, edi
mov r15d, edi
jmp 0x14009fc60
mov r14d, dword [rsp + 0x58]
mov qword [rsp + 0x40], rdx
cmp ecx, 0x20
jne 0x14009faa3
mov qword [rsp + 0x40], rdx
cmp r14d, 0xff
jne 0x14009faa3
cmp dword [rsp + 0x50], 0xff00
mov qword [rsp + 0x40], rdx
jne 0x14009faa3
cmp dword [rsp + 0x4c], 0xff0000
mov qword [rsp + 0x40], rdx
jne 0x14009faa3
mov r10d, dword [rsp + 0x38]
mov qword [rsp + 0x40], rdx
cmp r10d, 0xff000000
jne 0x14009facd
mov qword [rsp + 0x40], 2
mov r14d, edi
mov r15d, edi
jmp 0x14009fc60
mov r9d, dword [rsp + 0x4c]
test r9d, r9d
je 0x1400a0167
mov edi, dword [rsp + 0x50]
test edi, edi
je 0x1400a0167
test r14d, r14d
je 0x1400a0167
mov r10d, dword [rsp + 0x38]
jmp 0x14009fad6
mov r9d, dword [rsp + 0x4c]
mov edi, dword [rsp + 0x50]
mov ecx, r9d
call fcn.14009e970
mov edx, r9d
mov ecx, r9d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r11d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x34], r11d
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.14009e970
mov edx, edi
mov ecx, edi
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r15d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x54], r15d
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r14d
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.14009e970
sub eax, 7
mov edx, r14d
shr edx, 1
mov ecx, r14d
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, r10d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r12d, al
call fcn.14009e970
lea r14d, [rax - 7]
mov edx, r10d
mov dword [rsp + 0x2c], r14d
shr edx, 1
mov ecx, r10d
and edx, 0x55555555
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 r9d, 8
ja 0x1400a0167
cmp r13d, 8
ja 0x1400a0167
cmp r12d, 8
ja 0x1400a0167
cmp edi, 8
ja 0x1400a0167
mov r8d, dword [rsp + 0x24]
mov eax, dword [rbx + 4]
xor r10d, r10d
mov dword [rsp + 0x20], r10d
mov edx, eax
test eax, eax
jle 0x1400a00af
neg r15d
mov eax, r11d
neg eax
mov dword [rsp + 0x6c], r15d
mov r15, qword [rsp + 0x40]
mov dword [rsp + 0x64], eax
mov eax, 8
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x68], ecx
mov ecx, eax
sub ecx, r13d
mov dword [rsp + 0x70], ecx
mov ecx, dword [rsp + 0x28]
neg ecx
mov dword [rsp + 0x74], ecx
mov ecx, eax
sub ecx, r12d
mov dword [rsp + 0x78], ecx
mov ecx, r14d
neg ecx
sub eax, edi
mov dword [rsp + 0x7c], ecx
mov dword [rsp + 0x60], eax
mov eax, r9d
mov qword [rbp - 0x48], rax
mov eax, r12d
mov r12d, dword [rsp + 0x60]
mov ecx, r13d
mov r13d, r10d
mov qword [rbp - 0x38], rax
mov eax, edi
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x40], rcx
nop word [rax + rax]
mov eax, dword [rbx]
movsxd rcx, r13d
test r15, r15
je 0x14009fe4e
xor r14d, r14d
test eax, eax
jle 0x1400a0047
lea rdi, [rcx + rsi]
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14009fd2f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fd55
cmp dword [rbx + 0x30], 0
je 0x14009fd53
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fd55
xor cl, cl
mov byte [rdi + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14009fd70
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fd96
cmp dword [rbx + 0x30], 0
je 0x14009fd94
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fd96
xor cl, cl
mov byte [rdi + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14009fdb1
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fdd7
cmp dword [rbx + 0x30], 0
je 0x14009fdd5
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fdd7
xor cl, cl
mov byte [rdi], cl
cmp r15, 2
jne 0x14009fe1f
cmp rax, qword [rbx + 0xc8]
jae 0x14009fdf7
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fe21
cmp dword [rbx + 0x30], 0
je 0x14009fe1b
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009fe21
xor cl, cl
jmp 0x14009fe21
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rsp + 0x30], eax
inc r14d
mov byte [rdi + 3], cl
add rdi, 4
cmp r14d, dword [rbx]
jl 0x14009fd10
mov r8d, dword [rsp + 0x24]
mov r10d, dword [rsp + 0x20]
jmp 0x1400a0047
test eax, eax
jle 0x1400a0042
lea rdi, [rcx + rsi]
mov esi, dword [rsp + 0x48]
nop
cmp esi, 0x10
jne 0x14009ff1c
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14009fe88
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009feae
cmp dword [rbx + 0x30], 0
je 0x14009feac
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14009feae
xor cl, cl
movzx r14d, cl
cmp rax, qword [rbx + 0xc8]
jae 0x14009fed8
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
movzx eax, cl
shl eax, 8
add eax, r14d
mov r14d, dword [rsp + 0x2c]
jmp 0x14009ff24
cmp dword [rbx + 0x30], 0
je 0x14009ff0a
mov rcx, rbx
call fcn.140094e20
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
movzx eax, cl
shl eax, 8
add eax, r14d
mov r14d, dword [rsp + 0x2c]
jmp 0x14009ff24
xor cl, cl
movzx eax, cl
shl eax, 8
add eax, r14d
mov r14d, dword [rsp + 0x2c]
jmp 0x14009ff24
mov rcx, rbx
call fcn.140095030
mov r11d, dword [rsp + 0x34]
mov edx, eax
and edx, dword [rsp + 0x4c]
test r11d, r11d
jns 0x14009ff3c
mov ecx, dword [rsp + 0x64]
shl edx, cl
jmp 0x14009ff41
mov ecx, r11d
shr edx, cl
mov r9, qword [rbp - 0x48]
lea r11, [0x140000000]
mov ecx, dword [rsp + 0x68]
shr edx, cl
imul edx, dword [r11 + r9*4 + 0x12b810]
mov ecx, dword [r11 + r9*4 + 0x12b858]
sar edx, cl
mov ecx, dword [rsp + 0x54]
mov byte [rdi], dl
mov edx, eax
and edx, dword [rsp + 0x50]
test ecx, ecx
jns 0x14009ff7d
mov ecx, dword [rsp + 0x6c]
shl edx, cl
jmp 0x14009ff7f
shr edx, cl
mov r9, qword [rbp - 0x40]
mov ecx, dword [rsp + 0x70]
shr edx, cl
imul edx, dword [r11 + r9*4 + 0x12b810]
mov ecx, dword [r11 + r9*4 + 0x12b858]
sar edx, cl
mov ecx, dword [rsp + 0x28]
mov byte [rdi + 1], dl
mov edx, eax
and edx, dword [rsp + 0x58]
test ecx, ecx
jns 0x14009ffb5
mov ecx, dword [rsp + 0x74]
shl edx, cl
jmp 0x14009ffb7
shr edx, cl
mov r9, qword [rbp - 0x38]
mov ecx, dword [rsp + 0x78]
mov r10d, dword [rsp + 0x38]
shr edx, cl
imul edx, dword [r11 + r9*4 + 0x12b810]
mov ecx, dword [r11 + r9*4 + 0x12b858]
sar edx, cl
mov byte [rdi + 2], dl
test r10d, r10d
je 0x1400a0014
and eax, r10d
test r14d, r14d
jns 0x14009fff1
mov ecx, dword [rsp + 0x7c]
shl eax, cl
jmp 0x14009fff6
mov ecx, r14d
shr eax, cl
mov rdx, qword [rbp - 0x30]
mov ecx, r12d
shr eax, cl
imul eax, dword [r11 + rdx*4 + 0x12b810]
mov ecx, dword [r11 + rdx*4 + 0x12b858]
sar eax, cl
jmp 0x1400a0019
mov eax, 0xff
or dword [rsp + 0x30], eax
add r13d, 4
mov byte [rdi + 3], al
inc r15d
add rdi, 4
cmp r15d, dword [rbx]
jl 0x14009fe60
mov rsi, qword [rbp - 0x78]
mov r8d, dword [rsp + 0x24]
mov r10d, dword [rsp + 0x20]
mov r15, qword [rsp + 0x40]
test r8d, r8d
je 0x1400a0094
cmp qword [rbx + 0x10], 0
je 0x1400a008a
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x1400a008a
mov rax, qword [rbx + 0xc8]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
mov r8d, dword [rsp + 0x24]
mov r10d, dword [rsp + 0x20]
jmp 0x1400a0094
mov eax, r8d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r10d
mov r14d, dword [rsp + 0x2c]
mov edx, eax
mov dword [rsp + 0x20], r10d
cmp r10d, eax
jl 0x14009fcf0
cmp dword [rsp + 0x30], 0
jne 0x1400a00dd
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400a00dd
nop word [rax + rax]
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x1400a00d0
mov edx, dword [rbx + 4]
cmp dword [rbp - 0x80], 0
jle 0x1400a014e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400a014e
nop
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, rsi
shl r9d, 2
test eax, eax
jle 0x1400a013f
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x1400a0120
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400a00f0
mov eax, dword [rbx]
mov rcx, qword [rbp - 0x28]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rbp - 0x20]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14009f910
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14009f90a
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009f918
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009f918
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009f918
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009f918