Function at 0x1401bda50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push r15
sub rsp, 0x4f0
mov rbx, rcx
lea rcx, [0x14048d6c1]
call fcn.140289ea0
xor ebp, ebp
mov dword [rsp + 0xa4], 0xff
lea rdx, [rsp + 0x88]
mov rcx, rbx
mov r15d, ebp
call fcn.1401bd550
test rax, rax
je 0x1401bdadb
mov eax, dword [rbx + 4]
mov r8d, eax
neg r8d
mov dword [rsp + 0x84], eax
cmovs r8d, eax
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x1401bdae9
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4f0
pop r15
pop rbp
pop rbx
ret
mov r9d, dword [rbx]
cmp r9d, 0x1000000
ja 0x1401bdabf
mov eax, dword [rsp + 0x94]
mov r10d, dword [rsp + 0xa0]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov qword [rsp + 0x4e0], r12
mov r12d, dword [rsp + 0x8c]
mov dword [rsp + 0x530], eax
mov eax, dword [rsp + 0x9c]
mov qword [rsp + 0x4d8], r13
mov r13d, dword [rsp + 0x90]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa4]
mov qword [rsp + 0x4d0], r14
mov r14d, dword [rsp + 0xa8]
mov dword [rsp + 0x538], eax
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x2c], edi
cmp r13d, 0xc
jne 0x1401bdbad
cmp edi, 0x18
jge 0x1401bdbc4
mov ecx, r12d
mov eax, 0x55555556
sub ecx, r14d
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
jmp 0x1401bdbbf
cmp edi, 0x10
jge 0x1401bdbc4
mov r15d, r12d
sub r15d, r14d
sub r15d, r13d
sar r15d, 2
test r15d, r15d
jne 0x1401bdc12
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add ecx, dword [rbx + 0xb8]
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x1401be8b9
cmp r12d, ecx
jl 0x1401be896
mov edx, r12d
sub edx, ecx
cmp edx, 0x400
jg 0x1401be896
mov rcx, rbx
call fcn.1401b3e10
mov r8d, dword [rbx + 4]
mov r9d, dword [rbx]
mov r10d, dword [rsp + 0x34]
cmp edi, 0x18
jne 0x1401bdc27
cmp r10d, 0xff000000
jne 0x1401bdc27
mov eax, 3
jmp 0x1401bdc32
test r10d, r10d
mov eax, ebp
setne al
add eax, 3
mov dword [rbx + 8], eax
test r9d, r9d
js 0x1401be873
jne 0x1401bdc4a
lea ecx, [r9*4]
jmp 0x1401bdc6c
mov eax, 0x7fffffff
cdq
idiv r9d
cmp eax, 4
jl 0x1401be873
lea ecx, [r9*4]
test ecx, ecx
js 0x1401be873
test r8d, r8d
js 0x1401be873
je 0x1401bdc88
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1401be873
test r9d, r9d
je 0x1401bdc9f
mov eax, 0x7fffffff
cdq
idiv r9d
cmp eax, 4
jl 0x1401be850
lea ecx, [r9*4]
test r8d, r8d
je 0x1401bdcbd
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1401be850
imul r8d, r9d
lea eax, [r8*4]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov rcx, rax
test rax, rax
je 0x1401be850
cmp edi, 0x10
mov qword [rsp + 0x510], rsi
mov edi, ebp
jge 0x1401be220
mov dword [rsp + 0x530], ebp
test r15d, r15d
je 0x1401be200
cmp r15d, 0x100
jg 0x1401be200
mov r14, rax
test r15d, r15d
jle 0x1401bde67
mov r12d, dword [rsp + 0x24]
lea rsi, [rbx + 0x30]
movsxd rdi, r15d
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401bdd4f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bdd79
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1401bdd77
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bdd79
xor cl, cl
mov r13, rsi
mov byte [rsp + rbp*4 + 0xd2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401bdd9b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bddc0
cmp dword [rsi], 0
je 0x1401bddbe
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bddc0
xor cl, cl
mov byte [rsp + rbp*4 + 0xd1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401bdde3
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bde08
cmp dword [rsi], 0
je 0x1401bde06
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bde08
xor cl, cl
mov byte [rsp + rbp*4 + 0xd0], cl
cmp r12d, 0xc
je 0x1401bde40
cmp rax, qword [rbx + 0xc8]
jae 0x1401bde2a
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bde40
cmp dword [r13], 0
je 0x1401bde40
mov rcx, rbx
call fcn.1401b3d80
inc qword [rbx + 0xc0]
mov byte [rsp + rbp*4 + 0xd3], 0xff
inc rbp
cmp rbp, rdi
jl 0x1401bdd30
mov edi, dword [rsp + 0x530]
xor ebp, ebp
mov r12d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x24]
mov eax, ebp
cmp r13d, 0xc
mov rcx, rbx
setne al
add eax, 3
imul eax, r15d
sub r12d, eax
sub r12d, dword [rsp + 0x28]
sub r12d, r13d
mov edx, r12d
call fcn.1401b3e10
mov r15d, dword [rsp + 0x2c]
cmp r15d, 1
jne 0x1401bdea5
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1401bdec3
cmp r15d, 4
jne 0x1401bdeb6
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1401bdec3
cmp r15d, 8
jne 0x1401be1a5
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov ecx, eax
cmp r15d, 1
jne 0x1401be010
xor r15d, r15d
test eax, eax
jle 0x1401be776
xor edi, edi
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov esi, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401bdf14
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bdf3a
cmp dword [rbx + 0x30], 0
je 0x1401bdf38
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bdf3a
xor cl, cl
xor ebp, ebp
movzx edx, cl
cmp dword [rbx], ebp
jle 0x1401bdfef
mov eax, edx
mov ecx, esi
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0xd0]
mov byte [rdi + r14], al
movzx eax, byte [rsp + rcx + 0xd1]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rsp + rcx + 0xd2]
mov byte [rdi + r14 + 2], al
lea eax, [rbp + 1]
mov byte [rdi + r14 + 3], 0xff
mov ebp, eax
mov ecx, dword [rbx]
add rdi, 4
cmp eax, ecx
je 0x1401bdfef
sub esi, 1
jns 0x1401bdfe7
mov rax, qword [rbx + 0xc0]
mov esi, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401bdfbc
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401bdfe4
cmp dword [rbx + 0x30], 0
je 0x1401bdfe2
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x1401bdfe4
xor dl, dl
movzx edx, dl
cmp ebp, ecx
jl 0x1401bdf47
mov edx, r12d
mov rcx, rbx
call fcn.1401b3e10
mov eax, dword [rbx + 4]
inc r15d
mov ecx, eax
cmp r15d, eax
jl 0x1401bdef0
jmp 0x1401be776
xor ebp, ebp
test eax, eax
jle 0x1401be776
nop word [rax + rax]
xor esi, esi
cmp dword [rbx], esi
jle 0x1401be186
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401be04f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be075
cmp dword [rbx + 0x30], 0
je 0x1401be073
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be075
xor cl, cl
mov edx, Ordinal_50
xor r8d, r8d
mov rax, rbx
movzx eax, cl
lea r9, [rdx + rbx]
cmp r15d, 4
jne 0x1401be097
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
lea eax, [rsi + 1]
cmp eax, dword [rbx]
je 0x1401be186
cmp r15d, 8
jne 0x1401be136
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401be10c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be132
cmp dword [r9], 0
je 0x1401be130
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be132
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
add esi, 2
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
cmp esi, dword [rbx]
jl 0x1401be030
mov edx, r12d
mov rcx, rbx
call fcn.1401b3e10
mov eax, dword [rbx + 4]
inc ebp
mov ecx, eax
cmp ebp, eax
jl 0x1401be020
jmp 0x1401be776
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x510]
mov r12, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4d8]
mov r14, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r15
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1401be1c6
sub r12d, r14d
mov dword [rsp + 0x40], ebp
sub r12d, r13d
mov dword [rsp + 0x24], ebp
mov edx, r12d
mov dword [rsp + 0x60], ebp
mov rcx, rbx
mov r15d, ebp
mov esi, ebp
call fcn.1401b3e10
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0x18
jne 0x1401be252
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x1401be25f
cmp ecx, 0x10
jne 0x1401be25d
mov eax, dword [rbx]
add eax, eax
jmp 0x1401be25f
xor eax, eax
neg eax
and eax, 3
mov dword [rsp + 0x80], eax
cmp ecx, 0x18
jne 0x1401be28f
mov r14, qword [rsp + 0x50]
mov edx, 1
mov qword [rsp + 0x38], rdx
mov r12d, esi
mov qword [rsp + 0x48], r14
mov r13d, esi
jmp 0x1401be3e5
mov r8, qword [rsp + 0x50]
xor eax, eax
mov r12d, dword [rsp + 0x44]
mov r14, r8
mov qword [rsp + 0x38], rax
cmp ecx, 0x20
jne 0x1401be308
mov qword [rsp + 0x38], rax
cmp r12d, 0xff
jne 0x1401be308
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x530]
cmp eax, 0xff00
jne 0x1401be30f
xor eax, eax
cmp dword [rsp + 0x30], 0xff0000
mov qword [rsp + 0x38], rax
jne 0x1401be308
cmp dword [rsp + 0x34], 0xff000000
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r8
jne 0x1401be350
mov edx, 2
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rdx
mov r12d, eax
mov r13d, eax
jmp 0x1401be3e5
mov eax, dword [rsp + 0x530]
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x1401be32a
test eax, eax
je 0x1401be32a
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r8
test r12d, r12d
jne 0x1401be354
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1401be1c6
mov edi, dword [rsp + 0x30]
mov ecx, edi
call fcn.1401bd3b0
mov ecx, edi
lea r13d, [rax - 7]
call fcn.1401bd440
mov ecx, dword [rsp + 0x530]
mov r15d, eax
call fcn.1401bd3b0
mov ecx, dword [rsp + 0x530]
sub eax, 7
mov dword [rsp + 0x40], eax
call fcn.1401bd440
mov ecx, r12d
mov edi, eax
call fcn.1401bd3b0
sub eax, 7
mov ecx, r12d
mov dword [rsp + 0x24], eax
call fcn.1401bd440
mov ecx, dword [rsp + 0x34]
mov esi, eax
call fcn.1401bd3b0
mov ecx, dword [rsp + 0x34]
lea r12d, [rax - 7]
call fcn.1401bd440
mov ebp, eax
cmp r15d, 8
jg 0x1401be32a
cmp edi, 8
jg 0x1401be32a
cmp esi, 8
jg 0x1401be32a
cmp eax, 8
jg 0x1401be32a
mov rdx, qword [rsp + 0x38]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x20], 0
test eax, eax
jle 0x1401be776
mov ecx, 8
mov eax, r13d
neg eax
mov dword [rsp + 0x28], eax
mov eax, ecx
sub eax, r15d
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x68], eax
mov eax, ecx
sub eax, edi
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x24]
neg eax
mov dword [rsp + 0x70], eax
mov eax, ecx
sub eax, esi
mov dword [rsp + 0x74], eax
mov eax, r12d
neg eax
mov dword [rsp + 0x78], eax
sub ecx, ebp
movsxd rax, r15d
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x7c], ecx
movsxd rcx, edi
mov qword [rsp + 0xb0], rax
movsxd rax, esi
movsxd rdi, ebp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0xb8], rcx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx]
xor ebp, ebp
movsxd rcx, r15d
test rdx, rdx
je 0x1401be5f5
test eax, eax
jle 0x1401be742
lea rsi, [r14 + rcx]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401be4bf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be4e9
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1401be4e7
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be4e9
xor cl, cl
mov byte [rsi + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401be50b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be530
cmp dword [rdi], 0
je 0x1401be52e
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be530
xor cl, cl
mov byte [rsi + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401be556
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be57b
cmp dword [rdi], 0
je 0x1401be579
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be57b
xor cl, cl
cmp qword [rsp + 0x38], 2
mov byte [rsi], cl
jne 0x1401be5cf
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401be5a8
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be5d1
cmp dword [rdi], 0
je 0x1401be5cb
mov rcx, rbx
call fcn.1401b3d80
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401be5d1
xor cl, cl
jmp 0x1401be5d1
mov cl, 0xff
mov byte [rsi + 3], cl
add r15d, 4
movzx eax, cl
add rsi, 4
or dword [rsp + 0x538], eax
inc ebp
cmp ebp, dword [rbx]
jl 0x1401be4a0
jmp 0x1401be742
test eax, eax
jle 0x1401be742
lea rsi, [r14 + rcx]
mov r14d, dword [rsp + 0x2c]
mov rcx, rbx
call fcn.1401b4040
cmp r14d, 0x10
je 0x1401be628
mov rcx, rbx
mov edi, eax
call fcn.1401b4040
shl eax, 0x10
add eax, edi
mov rdi, qword [rsp + 0x58]
mov edx, eax
and edx, dword [rsp + 0x30]
test r13d, r13d
jns 0x1401be63b
mov ecx, dword [rsp + 0x28]
shl edx, cl
jmp 0x1401be640
mov ecx, r13d
shr edx, cl
mov r8, qword [rsp + 0xb0]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0x64]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x3bf1f8]
mov ecx, dword [r9 + r8*4 + 0x3bf250]
sar edx, cl
mov ecx, dword [rsp + 0x40]
mov byte [rsi], dl
mov edx, eax
and edx, dword [rsp + 0x530]
test ecx, ecx
jns 0x1401be683
mov ecx, dword [rsp + 0x68]
shl edx, cl
jmp 0x1401be685
shr edx, cl
mov r8, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x6c]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x3bf1f8]
mov ecx, dword [r9 + r8*4 + 0x3bf250]
sar edx, cl
mov ecx, dword [rsp + 0x24]
mov byte [rsi + 1], dl
mov edx, eax
and edx, dword [rsp + 0x44]
test ecx, ecx
jns 0x1401be6bf
mov ecx, dword [rsp + 0x70]
shl edx, cl
jmp 0x1401be6c1
shr edx, cl
mov r8, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x74]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x3bf1f8]
mov ecx, dword [r9 + r8*4 + 0x3bf250]
sar edx, cl
mov ecx, dword [rsp + 0x34]
mov byte [rsi + 2], dl
test ecx, ecx
je 0x1401be71c
and eax, ecx
test r12d, r12d
jns 0x1401be6fc
mov ecx, dword [rsp + 0x78]
shl eax, cl
jmp 0x1401be701
mov ecx, r12d
shr eax, cl
mov ecx, dword [rsp + 0x7c]
shr eax, cl
imul eax, dword [r9 + rdi*4 + 0x3bf1f8]
mov ecx, dword [r9 + rdi*4 + 0x3bf250]
sar eax, cl
jmp 0x1401be721
mov eax, 0xff
or dword [rsp + 0x538], eax
add r15d, 4
mov byte [rsi + 3], al
inc ebp
add rsi, 4
cmp ebp, dword [rbx]
jl 0x1401be606
mov r14, qword [rsp + 0x48]
mov edx, dword [rsp + 0x80]
mov rcx, rbx
call fcn.1401b3e10
mov r8d, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
inc r8d
mov rdx, qword [rsp + 0x38]
mov ecx, eax
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], r8d
cmp r8d, eax
jl 0x1401be480
cmp dword [rsp + 0x538], 0
jne 0x1401be7a3
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x1401be7a3
mov rax, qword [rsp + 0x50]
mov byte [rax + rdx], 0xff
sub rdx, 4
jns 0x1401be796
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x84], 0
jle 0x1401be820
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x1401be820
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
lea eax, [rcx*4]
shl edx, 2
shl r9d, 2
add rdx, r14
add r9, r14
test eax, eax
jle 0x1401be80f
sub r9, rdx
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x1401be7f0
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x1401be7c0
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x518]
mov dword [rdx], eax
mov rax, qword [rsp + 0x520]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x528]
test rcx, rcx
je 0x1401be848
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r14
jmp 0x1401be1cc
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401be1d4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401be1d4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401be1d4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401be1d4