Function at 0x140193be0
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 rsi
push r12
sub rsp, 0x4c0
xor esi, esi
mov dword [rsp + 0x94], 0xff
lea rdx, [rsp + 0x78]
mov r12d, esi
mov rbx, rcx
call fcn.140193570
test rax, rax
je 0x140193c50
mov ecx, dword [rbx + 4]
mov eax, ecx
neg eax
mov dword [rsp + 0x70], ecx
cmovs eax, ecx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x140193c5e
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4c0
pop r12
pop rsi
pop rbx
ret
cmp dword [rbx], 0x1000000
ja 0x140193c34
mov eax, dword [rsp + 0x84]
mov r8d, dword [rsp + 0x90]
mov qword [rsp + 0x4e0], rbp
mov ebp, dword [rsp + 0x80]
mov qword [rsp + 0x4b8], rdi
mov edi, dword [rsp + 0x98]
mov qword [rsp + 0x4b0], r13
mov r13d, dword [rsp + 0x78]
mov dword [rsp + 0x4f8], eax
mov eax, dword [rsp + 0x88]
mov qword [rsp + 0x4a8], r14
mov r14d, dword [rsp + 0x7c]
mov qword [rsp + 0x4a0], r15
mov r15d, dword [rsp + 0x94]
mov dword [rsp + 0x508], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x500], r8d
mov dword [rsp + 0x2c], edi
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x24], ebp
mov dword [rsp + 0x20], r13d
cmp ebp, 0xc
jne 0x140193d22
cmp r13d, 0x18
jge 0x140193d3e
mov ecx, r14d
mov eax, 0x55555556
sub ecx, edi
sub ecx, 0x18
imul ecx
mov r12d, edx
shr r12d, 0x1f
add r12d, edx
jmp 0x140193d35
cmp r13d, 0x10
jge 0x140193d3e
mov r12d, r14d
sub r12d, edi
sub r12d, ebp
sar r12d, 2
test r12d, r12d
jne 0x140193dd2
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 0x140194c18
cmp r14d, edx
jl 0x140194c03
mov ecx, r14d
sub ecx, edx
cmp ecx, 0x400
jg 0x140194c03
test ecx, ecx
je 0x140193dca
jns 0x140193d92
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140193dca
cmp qword [rbx + 0x10], rsi
je 0x140193dc0
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x140193dc0
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 0x140193dca
movsxd rax, ecx
add qword [rbx + 0xc0], rax
mov r8d, dword [rsp + 0x500]
cmp r13d, 0x18
jne 0x140193de8
cmp r8d, 0xff000000
jne 0x140193de8
mov eax, 3
jmp 0x140193df3
test r8d, r8d
mov eax, esi
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x140194bee
jne 0x140193e10
lea r9d, [rcx*4]
jmp 0x140193e32
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x140194bee
lea r9d, [rcx*4]
test r9d, r9d
js 0x140194bee
test r8d, r8d
js 0x140194bee
je 0x140193e4f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x140194bee
test ecx, ecx
jne 0x140193e5d
lea r9d, [rcx*4]
jmp 0x140193e80
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x140194bd9
lea edx, [rcx*4]
test edx, edx
js 0x140194bd9
mov r9d, edx
test r8d, r8d
je 0x140193e97
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x140194bd9
imul ecx, r8d
lea eax, [rcx*4]
movsxd rcx, eax
call fcn.1404bafd0
mov qword [rsp + 0x60], rax
mov rdx, rax
test rax, rax
je 0x140194bd9
cmp r13d, 0x10
jge 0x14019447c
mov edi, esi
test r12d, r12d
je 0x14019445c
cmp r12d, 0x100
jg 0x14019445c
test r12d, r12d
jle 0x140194041
mov r13d, dword [rsp + 0x24]
lea rbp, [rbx + 0x30]
mov r15, rsi
movsxd r14, r12d
mov rsi, rax
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140193f1f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193f48
cmp dword [rbx + 0x30], edi
lea rbp, [rbx + 0x30]
je 0x140193f46
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193f48
xor cl, cl
mov qword [rsp + 0x4f8], rbp
mov byte [rsp + r15*4 + 0xa2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x140193f70
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193f95
cmp dword [rbp], edi
je 0x140193f93
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193f95
xor cl, cl
mov byte [rsp + r15*4 + 0xa1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x140193fb9
movzx ecx, byte [rax]
lea rbp, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193fde
cmp dword [rbp], edi
je 0x140193fdc
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193fde
xor cl, cl
mov byte [rsp + r15*4 + 0xa0], cl
cmp r13d, 0xc
je 0x14019401c
cmp rax, qword [rbx + 0xc8]
jae 0x140194001
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019401c
mov rax, qword [rsp + 0x4f8]
cmp dword [rax], edi
je 0x14019401c
mov rcx, rbx
call fcn.140189600
inc qword [rbx + 0xc0]
mov byte [rsp + r15*4 + 0xa3], 0xff
inc r15
cmp r15, r14
jl 0x140193f00
mov r14d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x20]
mov ebp, dword [rsp + 0x24]
jmp 0x140194044
mov rsi, rdx
xor eax, eax
cmp ebp, 0xc
setne al
add eax, 3
imul eax, r12d
sub r14d, eax
sub r14d, dword [rsp + 0x2c]
sub r14d, ebp
je 0x1401940b3
test r14d, r14d
jns 0x140194075
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1401940b3
cmp qword [rbx + 0x10], rdi
je 0x1401940a9
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x1401940a9
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 0x1401940b3
movsxd rax, r14d
add qword [rbx + 0xc0], rax
cmp r13d, 1
jne 0x1401940c6
mov r15d, dword [rbx]
add r15d, 7
shr r15d, 3
jmp 0x1401940e4
cmp r13d, 4
jne 0x1401940d7
mov r15d, dword [rbx]
inc r15d
shr r15d, 1
jmp 0x1401940e4
cmp r13d, 8
jne 0x14019443c
mov r15d, dword [rbx]
mov eax, dword [rbx + 4]
neg r15d
and r15d, 3
mov edx, eax
cmp r13d, 1
jne 0x140194275
xor r12d, r12d
test eax, eax
jle 0x140194432
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov ebp, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140194134
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019415a
cmp dword [rbx + 0x30], 0
je 0x140194158
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019415a
xor cl, cl
xor r14d, r14d
movzx edx, cl
cmp dword [rbx], r14d
jle 0x140194217
nop dword [rax]
mov eax, edx
mov ecx, ebp
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0xa0]
mov byte [rdi + rsi], al
movzx eax, byte [rsp + rcx + 0xa1]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rsp + rcx + 0xa2]
mov byte [rdi + rsi + 2], al
lea eax, [r14 + 1]
mov byte [rdi + rsi + 3], 0xff
mov r14d, eax
mov ecx, dword [rbx]
add rdi, 4
cmp eax, ecx
je 0x140194217
sub ebp, 1
jns 0x14019420e
mov rax, qword [rbx + 0xc0]
mov ebp, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401941e3
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019420b
cmp dword [rbx + 0x30], 0
je 0x140194209
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x14019420b
xor dl, dl
movzx edx, dl
cmp r14d, ecx
jl 0x140194170
test r15d, r15d
je 0x14019425a
cmp qword [rbx + 0x10], 0
je 0x140194250
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x140194250
mov rax, qword [rbx + 0xc8]
mov edx, r15d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14019425a
mov eax, r15d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r12d
mov edx, eax
cmp r12d, eax
jl 0x140194110
mov r15d, dword [rsp + 0x28]
jmp 0x140194b07
xor r14d, r14d
test eax, eax
jle 0x140194432
xor ebp, ebp
cmp dword [rbx], ebp
jle 0x1401943de
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401942af
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401942d5
cmp dword [rbx + 0x30], 0
je 0x1401942d3
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401942d5
xor cl, cl
mov edx, gethostbyaddr
xor r8d, r8d
mov rax, rbx
movzx eax, cl
lea r9, [rbx + rdx]
cmp r13d, 4
jne 0x1401942f7
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xa0]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xa1]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xa2]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [rbp + 1]
cmp eax, dword [rbx]
je 0x1401943de
cmp r13d, 8
jne 0x140194392
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140194368
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019438e
cmp dword [r9], 0
je 0x14019438c
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019438e
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rsp + rdx + 0xa0]
inc edi
add ebp, 2
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xa1]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xa2]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp ebp, dword [rbx]
jl 0x140194290
test r15d, r15d
je 0x140194421
cmp qword [rbx + 0x10], 0
je 0x140194417
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x140194417
mov rax, qword [rbx + 0xc8]
mov edx, r15d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x140194421
mov eax, r15d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r14d
mov edx, eax
cmp r14d, eax
jl 0x140194280
mov r15d, dword [rsp + 0x28]
jmp 0x140194b07
mov rcx, rsi
call fcn.1404b4e38
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x140194c2b
mov rcx, rdx
call fcn.1404b4e38
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x140194c2b
sub r14d, edi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x50], esi
mov r13d, esi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x2c], esi
sub r14d, ebp
je 0x1401944ff
test r14d, r14d
jns 0x1401944bc
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1401944ff
cmp qword [rbx + 0x10], rsi
je 0x1401944f5
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x1401944f5
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 rdx, qword [rsp + 0x60]
jmp 0x1401944ff
movsxd rax, r14d
add qword [rbx + 0xc0], rax
mov r12d, dword [rsp + 0x20]
cmp r12d, 0x18
jne 0x140194512
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x140194523
cmp r12d, 0x10
jne 0x140194520
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x140194523
mov r8d, esi
neg r8d
and r8d, 3
mov dword [rsp + 0x20], r8d
cmp r12d, 0x18
jne 0x14019454d
mov r10d, 1
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], r10
mov rsi, rdx
jmp 0x140194794
mov r11d, dword [rsp + 0x40]
mov r10, rsi
mov edi, dword [rsp + 0x508]
mov qword [rsp + 0x38], rsi
mov rsi, rdx
cmp r12d, 0x20
jne 0x1401945c9
mov qword [rsp + 0x38], r10
cmp r11d, 0xff
jne 0x1401945c9
mov ecx, dword [rsp + 0x4f8]
mov qword [rsp + 0x38], r10
cmp edi, 0xff00
jne 0x1401945d0
mov qword [rsp + 0x38], r10
cmp ecx, 0xff0000
jne 0x1401945d0
mov r9d, dword [rsp + 0x500]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x68], rdx
cmp r9d, 0xff000000
jne 0x1401945fb
mov r10d, 2
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], r10
jmp 0x140194794
mov ecx, dword [rsp + 0x4f8]
test ecx, ecx
je 0x140194bbc
test edi, edi
je 0x140194bbc
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rdx
test r11d, r11d
je 0x140194bbc
mov r9d, dword [rsp + 0x500]
call fcn.140193400
mov edx, dword [rsp + 0x4f8]
sub eax, 7
mov ecx, dword [rsp + 0x4f8]
shr edx, 1
and ecx, 0x55555555
and edx, 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, edi
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r14d, al
mov dword [rsp + 0x44], r14d
call fcn.140193400
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
and edx, 0x55555555
mov dword [rsp + 0x50], 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 ebp, al
mov dword [rsp + 0x4c], ebp
call fcn.140193400
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
mov dword [rsp + 0x58], 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, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
mov dword [rsp + 0x54], edi
call fcn.140193400
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x30], 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
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r11d, al
mov dword [rsp + 0x2c], r11d
cmp r14d, 8
ja 0x140194bbc
cmp ebp, 8
ja 0x140194bbc
cmp edi, 8
ja 0x140194bbc
cmp r11d, 8
ja 0x140194bbc
mov r8d, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
xor edi, edi
mov dword [rsp + 0x24], edi
mov edx, eax
test eax, eax
jle 0x140194b07
nop word [rax + rax]
mov eax, dword [rbx]
xor ebp, ebp
movsxd rcx, r13d
test r10, r10
je 0x14019492a
test eax, eax
jle 0x140194aa7
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401947ef
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194819
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140194817
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194819
xor cl, cl
mov byte [r14 + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14019483c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194861
cmp dword [rdi], 0
je 0x14019485f
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194861
xor cl, cl
mov byte [r14 + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140194888
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401948ad
cmp dword [rdi], 0
je 0x1401948ab
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401948ad
xor cl, cl
cmp qword [rsp + 0x38], 2
mov byte [r14], cl
jne 0x140194902
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401948db
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194904
cmp dword [rdi], 0
je 0x1401948fe
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194904
xor cl, cl
jmp 0x140194904
mov cl, 0xff
mov byte [r14 + 3], cl
add r13d, 4
movzx eax, cl
add r14, 4
or r15d, eax
inc ebp
cmp ebp, dword [rbx]
jl 0x1401947d0
mov dword [rsp + 0x28], r15d
jmp 0x140194a9e
test eax, eax
jle 0x140194aa7
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x500]
nop dword [rax]
cmp r12d, 0x10
jne 0x140194a07
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140194969
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019498f
cmp dword [rbx + 0x30], 0
je 0x14019498d
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019498f
xor cl, cl
mov rdx, rbx
mov r8d, gethostbyaddr
movzx r15d, cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401949c2
movzx ecx, byte [rax]
inc rax
movzx edi, cl
shl edi, 8
add edi, r15d
mov qword [rbx + 0xc0], rax
mov r15d, dword [rsp + 0x28]
jmp 0x140194a11
cmp dword [r8 + rdx], 0
je 0x1401949f5
mov rcx, rbx
call fcn.140189600
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
movzx edi, cl
shl edi, 8
add edi, r15d
mov qword [rbx + 0xc0], rax
mov r15d, dword [rsp + 0x28]
jmp 0x140194a11
xor cl, cl
movzx edi, cl
shl edi, 8
add edi, r15d
mov r15d, dword [rsp + 0x28]
jmp 0x140194a11
mov rcx, rbx
call fcn.140189810
mov edi, eax
mov r8d, dword [rsp + 0x44]
mov ecx, edi
and ecx, dword [rsp + 0x4f8]
mov edx, dword [rsp + 0x48]
call fcn.140193470
mov r8d, dword [rsp + 0x4c]
mov ecx, edi
and ecx, dword [rsp + 0x508]
mov edx, dword [rsp + 0x50]
mov byte [r14], al
call fcn.140193470
mov r8d, dword [rsp + 0x54]
mov ecx, edi
and ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x58]
mov byte [r14 + 1], al
call fcn.140193470
mov byte [r14 + 2], al
test esi, esi
je 0x140194a76
mov r8d, dword [rsp + 0x2c]
and edi, esi
mov edx, dword [rsp + 0x30]
mov ecx, edi
call fcn.140193470
jmp 0x140194a7b
mov eax, 0xff
mov byte [r14 + 3], al
or r15d, eax
add r14, 4
mov dword [rsp + 0x28], r15d
add r13d, 4
inc ebp
cmp ebp, dword [rbx]
jl 0x140194940
mov rsi, qword [rsp + 0x68]
mov edi, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x140194aef
cmp qword [rbx + 0x10], 0
je 0x140194ae5
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x140194ae5
mov rax, qword [rbx + 0xc8]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
mov r8d, dword [rsp + 0x20]
jmp 0x140194aef
mov eax, r8d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc edi
mov r10, qword [rsp + 0x38]
mov edx, eax
mov dword [rsp + 0x24], edi
cmp edi, eax
jl 0x1401947b0
test r15d, r15d
jne 0x140194b2f
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x140194b2f
mov rax, qword [rsp + 0x60]
mov byte [rcx + rax], 0xff
sub rcx, 4
jns 0x140194b22
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x140194b9e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x140194b9e
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, rsi
add r9, rsi
test eax, eax
jle 0x140194b8f
sub r9, rdx
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 0x140194b70
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x140194b41
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x4e8]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x4f0]
mov dword [rcx], eax
mov rax, rsi
jmp 0x140194c36
mov rcx, rsi
call fcn.1404b4e38
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x140194c2b
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140194c2b
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x140194c2b
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_offset
jmp 0x140194c2b
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 r14, qword [rsp + 0x4a8]
mov r13, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4b8]
mov rbp, qword [rsp + 0x4e0]
mov r15, qword [rsp + 0x4a0]
add rsp, 0x4c0
pop r12
pop rsi
pop rbx
ret