Function at 0x14005c2d0
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 rdi
push r13
lea rbp, [rsp - 0x3d8]
sub rsp, 0x4d8
xor edi, edi
mov dword [rbp - 0x64], 0xff
lea rdx, [rbp - 0x80]
mov r13d, edi
mov rbx, rcx
call fcn.14005bdf0
test rax, rax
je 0x14005c34a
mov eax, dword [rbx + 4]
mov dword [rsp + 0x68], eax
cdq
mov r9d, eax
xor r9d, edx
sub r9d, edx
mov dword [rbx + 4], r9d
cmp r9d, 0x1000000
jbe 0x14005c359
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4d8
pop r13
pop rdi
pop rbx
pop rbp
ret
mov r8d, dword [rbx]
cmp r8d, 0x1000000
ja 0x14005c32e
mov eax, dword [rbp - 0x74]
mov edx, dword [rbp - 0x68]
mov dword [rbp + 0x428], eax
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x6c]
mov qword [rsp + 0x4d0], r12
mov r12d, dword [rbp - 0x80]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x4c8], r14
mov r14d, dword [rbp - 0x78]
mov qword [rsp + 0x4c0], r15
movsxd r15, dword [rbp - 0x7c]
mov dword [rbp + 0x420], eax
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x2c], eax
mov dword [rbp + 0x418], edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x24], r12d
cmp r14d, 0xc
jne 0x14005c3f5
cmp r12d, 0x18
jge 0x14005c40d
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
mov edx, dword [rbp + 0x418]
jmp 0x14005c408
cmp r12d, 0x10
jge 0x14005c40d
mov r13d, r15d
sub r13d, eax
sub r13d, r14d
sar r13d, 2
test r13d, r13d
jne 0x14005c44a
movsxd rcx, dword [rbx + 0xb8]
add rcx, qword [rbx + 0xc0]
sub rcx, rbx
sub rcx, 0x38
cmp r15, rcx
je 0x14005c44a
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14005ca92
cmp r12d, 0x18
jne 0x14005c45f
cmp edx, 0xff000000
jne 0x14005c45f
lea eax, [r12 - 0x15]
jmp 0x14005c46c
mov r8d, dword [rbx]
test edx, edx
mov eax, edi
setne al
add eax, 3
mov dword [rbx + 8], eax
test r8d, r8d
js 0x14005d250
jne 0x14005c484
lea ecx, [r8*4]
jmp 0x14005c4a6
mov eax, 0x7fffffff
cdq
idiv r8d
cmp eax, 4
jl 0x14005d250
lea ecx, [r8*4]
test ecx, ecx
js 0x14005d250
test r9d, r9d
js 0x14005d250
je 0x14005c4c2
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x14005d250
mov qword [rsp + 0x500], rsi
test r8d, r8d
je 0x14005c4e1
mov eax, 0x7fffffff
cdq
idiv r8d
cmp eax, 4
jl 0x14005d233
test r9d, r9d
je 0x14005c4f7
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x14005d233
imul r8d, r9d
shl r8d, 2
movsxd rcx, r8d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x70], rax
mov rsi, rax
test rax, rax
je 0x14005d233
cmp r12d, 0x10
jge 0x14005cada
test r13d, r13d
je 0x14005cab7
cmp r13d, 0x100
jg 0x14005cab7
test r13d, r13d
jle 0x14005c674
mov rax, qword [rbx + 0xc0]
xor r12d, r12d
mov esi, dword [rsp + 0x20]
movsxd r15, r13d
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jb 0x14005c57a
cmp dword [rbx + 0x30], edi
je 0x14005c59e
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
lea r14, [r12*4]
inc rax
mov byte [rbp + r14 - 0x3e], dl
mov qword [rbx + 0xc0], rax
mov r8, r14
cmp rax, rcx
jae 0x14005c5ae
jmp 0x14005c5c9
lea r14, [r12*4]
mov byte [rbp + r14 - 0x3e], dil
mov r8, r14
cmp dword [rbx + 0x30], edi
je 0x14005c5ef
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rbp + r14 - 0x3f], dl
cmp rax, rcx
jae 0x14005c5f4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005c619
mov byte [rbp + r8 - 0x3f], dil
cmp dword [rbx + 0x30], edi
je 0x14005c617
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005c619
xor cl, cl
mov byte [rbp + r14 - 0x40], cl
cmp esi, 0xc
je 0x14005c653
cmp rax, qword [rbx + 0xc8]
jae 0x14005c638
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005c653
cmp dword [rbx + 0x30], edi
je 0x14005c653
mov rcx, rbx
call fcn.140052730
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
inc r12
mov byte [rbp + r14 - 0x3d], 0xff
cmp r12, r15
jl 0x14005c553
mov rsi, qword [rsp + 0x70]
mov r15d, dword [rsp + 0x28]
mov r14d, dword [rsp + 0x20]
xor eax, eax
cmp r14d, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, dword [rsp + 0x2c]
sub r15d, r14d
je 0x14005c6e4
test r15d, r15d
jns 0x14005c6a6
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14005c6e4
cmp qword [rbx + 0x10], rdi
je 0x14005c6da
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x14005c6da
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x14005c6e4
movsxd rax, r15d
add qword [rbx + 0xc0], rax
mov r15d, dword [rsp + 0x24]
cmp r15d, 1
jne 0x14005c6fc
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x14005c71a
cmp r15d, 4
jne 0x14005c70d
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x14005c71a
cmp r15d, 8
jne 0x14005ca63
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
xor r13d, r13d
mov edx, eax
cmp r15d, 1
jne 0x14005c8ad
test eax, eax
jle 0x14005d158
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x14005c765
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005c78b
cmp dword [rbx + 0x30], 0
je 0x14005c789
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005c78b
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x14005c854
mov r8d, edx
nop
mov eax, r9d
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x40]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x3f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x3e]
mov byte [rdi + rsi + 2], al
mov byte [rdi + rsi + 3], 0xff
add rdi, 4
inc r15d
cmp r15d, edx
je 0x14005c854
sub r14d, 1
jns 0x14005c845
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x14005c810
movzx ecx, byte [rax]
mov edx, r8d
inc rax
movzx r9d, cl
mov qword [rbx + 0xc0], rax
jmp 0x14005c848
cmp dword [rbx + 0x30], 0
je 0x14005c83a
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov edx, dword [rbx]
movzx r9d, cl
jmp 0x14005c848
xor cl, cl
mov edx, r8d
movzx r9d, cl
jmp 0x14005c848
mov edx, r8d
mov r8d, edx
cmp r15d, edx
jl 0x14005c7a0
test r12d, r12d
je 0x14005c897
cmp qword [rbx + 0x10], 0
je 0x14005c88d
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x14005c88d
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 0x14005c897
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x14005c740
jmp 0x14005d158
test eax, eax
jle 0x14005d158
nop word [rax + rax]
mov r8d, dword [rbx]
xor r14d, r14d
test r8d, r8d
jle 0x14005ca0a
nop
mov r9, qword [rbx + 0xc0]
cmp r9, qword [rbx + 0xc8]
jae 0x14005c8f0
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x14005c91a
cmp dword [rbx + 0x30], 0
je 0x14005c918
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x14005c91a
xor cl, cl
xor r10d, r10d
movzx eax, cl
cmp r15d, 4
jne 0x14005c930
mov r10d, eax
and r10d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x40]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3e]
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, r8d
je 0x14005ca0a
cmp r15d, 8
jne 0x14005c9c2
cmp r9, qword [rbx + 0xc8]
jae 0x14005c995
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x14005c9be
cmp dword [rbx + 0x30], 0
je 0x14005c9bc
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r8d, dword [rbx]
jmp 0x14005c9be
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x40]
inc edi
add r14d, 2
mov r9d, r8d
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r14d, r8d
jl 0x14005c8d0
test r12d, r12d
je 0x14005ca4d
cmp qword [rbx + 0x10], 0
je 0x14005ca43
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x14005ca43
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 0x14005ca4d
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x14005c8c0
jmp 0x14005d158
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x500]
mov r12, qword [rsp + 0x4d0]
mov r14, qword [rsp + 0x4c8]
mov r15, qword [rsp + 0x4c0]
add rsp, 0x4d8
pop r13
pop rdi
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, 0x18
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14005ca84
sub r15d, dword [rsp + 0x2c]
xor r8d, r8d
xor r13d, r13d
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x28], edi
mov r10d, edi
mov dword [rsp + 0x24], edi
mov r9d, edi
mov dword [rsp + 0x38], edi
sub r15d, r14d
je 0x14005cb5c
test r15d, r15d
jns 0x14005cb15
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14005cb5c
cmp qword [rbx + 0x10], rdi
je 0x14005cb52
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x14005cb52
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov r8d, edi
mov r9d, edi
mov r10d, edi
jmp 0x14005cb5c
movsxd rax, r15d
add qword [rbx + 0xc0], rax
cmp r12d, 0x18
jne 0x14005cb6a
mov eax, dword [rbx]
lea r11d, [rax + rax*2]
jmp 0x14005cb7b
cmp r12d, 0x10
jne 0x14005cb78
mov r11d, dword [rbx]
add r11d, r11d
jmp 0x14005cb7b
xor r11d, r11d
neg r11d
and r11d, 3
mov dword [rsp + 0x20], r11d
cmp r12d, 0x18
jne 0x14005cba0
mov r15d, 1
mov r14d, edi
mov qword [rsp + 0x48], r15
jmp 0x14005cdaf
mov r14d, dword [rsp + 0x30]
cmp r12d, 0x20
jne 0x14005cbed
cmp dword [rsp + 0x34], 0xff
jne 0x14005cbed
cmp r14d, 0xff00
jne 0x14005cbed
cmp dword [rbp + 0x428], 0xff0000
jne 0x14005cbed
mov r15d, dword [rbp + 0x418]
cmp r15d, 0xff000000
jne 0x14005cc1b
mov r15d, 2
mov r14d, edi
mov qword [rsp + 0x48], r15
jmp 0x14005cdaf
mov r9d, dword [rbp + 0x428]
test r9d, r9d
je 0x14005d20d
test r14d, r14d
je 0x14005d20d
mov edi, dword [rsp + 0x34]
test edi, edi
je 0x14005d20d
mov r15d, dword [rbp + 0x418]
jmp 0x14005cc26
mov r9d, dword [rbp + 0x428]
mov edi, dword [rsp + 0x34]
mov ecx, r9d
call fcn.14005bd80
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x3c], 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, r14d
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.14005bd80
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, 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.14005bd80
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
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, r15d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
call fcn.14005bd80
lea r14d, [rax - 7]
mov edx, r15d
mov dword [rsp + 0x38], r14d
shr edx, 1
mov ecx, r15d
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 r8d, al
cmp r10d, 8
ja 0x14005d20d
cmp r9d, 8
ja 0x14005d20d
cmp edi, 8
ja 0x14005d20d
xor r15d, r15d
mov qword [rsp + 0x48], r15
cmp r8d, 8
ja 0x14005d20d
mov eax, dword [rbx + 4]
mov edx, eax
mov dword [rsp + 0x2c], r13d
test eax, eax
jle 0x14005d158
mov eax, dword [rsp + 0x3c]
neg eax
mov dword [rsp + 0x44], eax
mov eax, 8
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0x28]
neg ecx
mov dword [rsp + 0x50], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x54], ecx
mov ecx, dword [rsp + 0x24]
neg ecx
mov dword [rsp + 0x58], ecx
mov ecx, eax
sub ecx, edi
mov dword [rsp + 0x5c], ecx
mov ecx, r14d
neg ecx
sub eax, r8d
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], eax
mov eax, r10d
mov qword [rbp - 0x58], rax
mov eax, edi
mov edi, r8d
mov ecx, r9d
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
nop word [rax + rax]
mov eax, dword [rbx]
movsxd rcx, r13d
test r15, r15
je 0x14005cf78
xor r14d, r14d
test eax, eax
jle 0x14005d0f4
lea rdi, [rcx + rsi]
nop dword [rax]
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rbx + 0xc0]
cmp rax, rcx
jb 0x14005ce7f
cmp dword [rbx + 0x30], 0
je 0x14005ce96
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rdi + 2], dl
cmp rax, rcx
jae 0x14005ce9a
jmp 0x14005ceb6
mov byte [rdi + 2], 0
cmp dword [rbx + 0x30], 0
je 0x14005ceda
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rdi + 1], dl
cmp rax, rcx
jae 0x14005cede
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005cf04
mov byte [rdi + 1], 0
cmp dword [rbx + 0x30], 0
je 0x14005cf02
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005cf04
xor cl, cl
mov byte [rdi], cl
cmp r15, 2
jne 0x14005cf4c
cmp rax, qword [rbx + 0xc8]
jae 0x14005cf24
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005cf4e
cmp dword [rbx + 0x30], 0
je 0x14005cf48
mov rcx, rbx
call fcn.140052730
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005cf4e
xor cl, cl
jmp 0x14005cf4e
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x420], eax
inc r14d
mov byte [rdi + 3], cl
add rdi, 4
cmp r14d, dword [rbx]
jl 0x14005ce50
mov r11d, dword [rsp + 0x20]
jmp 0x14005d0f4
test eax, eax
jle 0x14005d0ef
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x418]
nop word [rax + rax]
mov rcx, rbx
call fcn.140052940
cmp r12d, 0x10
jne 0x14005cfa3
mov r8d, eax
jmp 0x14005cfbc
mov rcx, rbx
mov edi, eax
call fcn.140052940
mov r8d, eax
shl r8d, 0x10
add r8d, edi
mov rdi, qword [rsp + 0x78]
mov r9d, dword [rsp + 0x3c]
lea r11, sym.ZeruaS.exe_HqHpN8U:rF.N_o_Z8_Kq3OYFmO7.Ge
mov r10, qword [rbp - 0x58]
mov ecx, r9d
mov edx, r8d
and edx, dword [rbp + 0x428]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x44]
shl edx, cl
mov ecx, dword [rsp + 0x40]
test r9d, r9d
mov r9d, dword [rsp + 0x28]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0xb2e18]
mov ecx, dword [r11 + r10*4 + 0xb4600]
mov r10, qword [rbp - 0x50]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rsp + 0x30]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x50]
shl edx, cl
mov ecx, dword [rsp + 0x54]
test r9d, r9d
mov r9d, dword [rsp + 0x24]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0xb2e18]
mov ecx, dword [r11 + r10*4 + 0xb4600]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x34]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x58]
shl edx, cl
mov ecx, dword [rsp + 0x5c]
test r9d, r9d
mov r9, qword [rbp - 0x48]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r9*4 + 0xb2e18]
mov ecx, dword [r11 + r9*4 + 0xb4600]
sar edx, cl
mov byte [r14 + 2], dl
test esi, esi
je 0x14005d0c0
mov edx, dword [rsp + 0x38]
and r8d, esi
mov eax, r8d
mov ecx, edx
shr eax, cl
mov ecx, dword [rsp + 0x60]
shl r8d, cl
mov ecx, dword [rsp + 0x64]
test edx, edx
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [r11 + rdi*4 + 0xb2e18]
mov ecx, dword [r11 + rdi*4 + 0xb4600]
sar r8d, cl
jmp 0x14005d0c6
mov r8d, 0xff
or dword [rbp + 0x420], r8d
add r13d, 4
mov byte [r14 + 3], r8b
inc r15d
add r14, 4
cmp r15d, dword [rbx]
jl 0x14005cf90
mov rsi, qword [rsp + 0x70]
mov r11d, dword [rsp + 0x20]
mov r15, qword [rsp + 0x48]
test r11d, r11d
je 0x14005d13c
cmp qword [rbx + 0x10], 0
je 0x14005d132
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r11d
jge 0x14005d132
mov rax, qword [rbx + 0xc8]
mov edx, r11d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
mov r11d, dword [rsp + 0x20]
jmp 0x14005d13c
mov eax, r11d
add qword [rbx + 0xc0], rax
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rbx + 4]
inc ecx
mov rdi, qword [rsp + 0x78]
mov edx, eax
mov dword [rsp + 0x2c], ecx
cmp ecx, eax
jl 0x14005ce30
cmp dword [rbp + 0x420], 0
jne 0x14005d17f
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14005d17f
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x14005d172
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x68], 0
jle 0x14005d1ee
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14005d1ee
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 0x14005d1df
sub r9, r11
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 0x14005d1c0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x14005d191
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x408]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rbp + 0x410]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14005ca8a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14005ca84
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x14005ca84
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14005ca92