Function at 0x140192020
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.1401919b0
test rax, rax
je 0x140192090
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 0x14019209e
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 0x140192074
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 0x140192162
cmp r13d, 0x18
jge 0x14019217e
mov ecx, r14d
mov eax, 0x55555556
sub ecx, edi
sub ecx, 0x18
imul ecx
mov r12d, edx
shr r12d, 0x1f
add r12d, edx
jmp 0x140192175
cmp r13d, 0x10
jge 0x14019217e
mov r12d, r14d
sub r12d, edi
sub r12d, ebp
sar r12d, 2
test r12d, r12d
jne 0x140192212
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 0x140193058
cmp r14d, edx
jl 0x140193043
mov ecx, r14d
sub ecx, edx
cmp ecx, 0x400
jg 0x140193043
test ecx, ecx
je 0x14019220a
jns 0x1401921d2
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14019220a
cmp qword [rbx + 0x10], rsi
je 0x140192200
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x140192200
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 0x14019220a
movsxd rax, ecx
add qword [rbx + 0xc0], rax
mov r8d, dword [rsp + 0x500]
cmp r13d, 0x18
jne 0x140192228
cmp r8d, 0xff000000
jne 0x140192228
mov eax, 3
jmp 0x140192233
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 0x14019302e
jne 0x140192250
lea r9d, [rcx*4]
jmp 0x140192272
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x14019302e
lea r9d, [rcx*4]
test r9d, r9d
js 0x14019302e
test r8d, r8d
js 0x14019302e
je 0x14019228f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14019302e
test ecx, ecx
jne 0x14019229d
lea r9d, [rcx*4]
jmp 0x1401922c0
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x140193019
lea edx, [rcx*4]
test edx, edx
js 0x140193019
mov r9d, edx
test r8d, r8d
je 0x1401922d7
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x140193019
imul ecx, r8d
lea eax, [rcx*4]
movsxd rcx, eax
call fcn.1404b9d50
mov qword [rsp + 0x60], rax
mov rdx, rax
test rax, rax
je 0x140193019
cmp r13d, 0x10
jge 0x1401928bc
mov edi, esi
test r12d, r12d
je 0x14019289c
cmp r12d, 0x100
jg 0x14019289c
test r12d, r12d
jle 0x140192481
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 0x14019235f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192388
cmp dword [rbx + 0x30], edi
lea rbp, [rbx + 0x30]
je 0x140192386
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192388
xor cl, cl
mov qword [rsp + 0x4f8], rbp
mov byte [rsp + r15*4 + 0xa2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401923b0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401923d5
cmp dword [rbp], edi
je 0x1401923d3
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401923d5
xor cl, cl
mov byte [rsp + r15*4 + 0xa1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401923f9
movzx ecx, byte [rax]
lea rbp, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019241e
cmp dword [rbp], edi
je 0x14019241c
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019241e
xor cl, cl
mov byte [rsp + r15*4 + 0xa0], cl
cmp r13d, 0xc
je 0x14019245c
cmp rax, qword [rbx + 0xc8]
jae 0x140192441
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019245c
mov rax, qword [rsp + 0x4f8]
cmp dword [rax], edi
je 0x14019245c
mov rcx, rbx
call fcn.140187a40
inc qword [rbx + 0xc0]
mov byte [rsp + r15*4 + 0xa3], 0xff
inc r15
cmp r15, r14
jl 0x140192340
mov r14d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x20]
mov ebp, dword [rsp + 0x24]
jmp 0x140192484
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 0x1401924f3
test r14d, r14d
jns 0x1401924b5
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1401924f3
cmp qword [rbx + 0x10], rdi
je 0x1401924e9
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x1401924e9
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 0x1401924f3
movsxd rax, r14d
add qword [rbx + 0xc0], rax
cmp r13d, 1
jne 0x140192506
mov r15d, dword [rbx]
add r15d, 7
shr r15d, 3
jmp 0x140192524
cmp r13d, 4
jne 0x140192517
mov r15d, dword [rbx]
inc r15d
shr r15d, 1
jmp 0x140192524
cmp r13d, 8
jne 0x14019287c
mov r15d, dword [rbx]
mov eax, dword [rbx + 4]
neg r15d
and r15d, 3
mov edx, eax
cmp r13d, 1
jne 0x1401926b5
xor r12d, r12d
test eax, eax
jle 0x140192872
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov ebp, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140192574
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019259a
cmp dword [rbx + 0x30], 0
je 0x140192598
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019259a
xor cl, cl
xor r14d, r14d
movzx edx, cl
cmp dword [rbx], r14d
jle 0x140192657
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 0x140192657
sub ebp, 1
jns 0x14019264e
mov rax, qword [rbx + 0xc0]
mov ebp, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140192623
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019264b
cmp dword [rbx + 0x30], 0
je 0x140192649
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x14019264b
xor dl, dl
movzx edx, dl
cmp r14d, ecx
jl 0x1401925b0
test r15d, r15d
je 0x14019269a
cmp qword [rbx + 0x10], 0
je 0x140192690
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x140192690
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 0x14019269a
mov eax, r15d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r12d
mov edx, eax
cmp r12d, eax
jl 0x140192550
mov r15d, dword [rsp + 0x28]
jmp 0x140192f47
xor r14d, r14d
test eax, eax
jle 0x140192872
xor ebp, ebp
cmp dword [rbx], ebp
jle 0x14019281e
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401926ef
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192715
cmp dword [rbx + 0x30], 0
je 0x140192713
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192715
xor cl, cl
mov edx, gethostbyaddr
xor r8d, r8d
mov rax, rbx
movzx eax, cl
lea r9, [rbx + rdx]
cmp r13d, 4
jne 0x140192737
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 0x14019281e
cmp r13d, 8
jne 0x1401927d2
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401927a8
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401927ce
cmp dword [r9], 0
je 0x1401927cc
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401927ce
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 0x1401926d0
test r15d, r15d
je 0x140192861
cmp qword [rbx + 0x10], 0
je 0x140192857
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x140192857
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 0x140192861
mov eax, r15d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r14d
mov edx, eax
cmp r14d, eax
jl 0x1401926c0
mov r15d, dword [rsp + 0x28]
jmp 0x140192f47
mov rcx, rsi
call fcn.1404b3bb8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x14019306b
mov rcx, rdx
call fcn.1404b3bb8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14019306b
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 0x14019293f
test r14d, r14d
jns 0x1401928fc
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14019293f
cmp qword [rbx + 0x10], rsi
je 0x140192935
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x140192935
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 0x14019293f
movsxd rax, r14d
add qword [rbx + 0xc0], rax
mov r12d, dword [rsp + 0x20]
cmp r12d, 0x18
jne 0x140192952
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x140192963
cmp r12d, 0x10
jne 0x140192960
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x140192963
mov r8d, esi
neg r8d
and r8d, 3
mov dword [rsp + 0x20], r8d
cmp r12d, 0x18
jne 0x14019298d
mov r10d, 1
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], r10
mov rsi, rdx
jmp 0x140192bd4
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 0x140192a09
mov qword [rsp + 0x38], r10
cmp r11d, 0xff
jne 0x140192a09
mov ecx, dword [rsp + 0x4f8]
mov qword [rsp + 0x38], r10
cmp edi, 0xff00
jne 0x140192a10
mov qword [rsp + 0x38], r10
cmp ecx, 0xff0000
jne 0x140192a10
mov r9d, dword [rsp + 0x500]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x68], rdx
cmp r9d, 0xff000000
jne 0x140192a3b
mov r10d, 2
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], r10
jmp 0x140192bd4
mov ecx, dword [rsp + 0x4f8]
test ecx, ecx
je 0x140192ffc
test edi, edi
je 0x140192ffc
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rdx
test r11d, r11d
je 0x140192ffc
mov r9d, dword [rsp + 0x500]
call fcn.140191840
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.140191840
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.140191840
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.140191840
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 0x140192ffc
cmp ebp, 8
ja 0x140192ffc
cmp edi, 8
ja 0x140192ffc
cmp r11d, 8
ja 0x140192ffc
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 0x140192f47
nop word [rax + rax]
mov eax, dword [rbx]
xor ebp, ebp
movsxd rcx, r13d
test r10, r10
je 0x140192d6a
test eax, eax
jle 0x140192ee7
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140192c2f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192c59
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140192c57
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192c59
xor cl, cl
mov byte [r14 + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140192c7c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192ca1
cmp dword [rdi], 0
je 0x140192c9f
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192ca1
xor cl, cl
mov byte [r14 + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140192cc8
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192ced
cmp dword [rdi], 0
je 0x140192ceb
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192ced
xor cl, cl
cmp qword [rsp + 0x38], 2
mov byte [r14], cl
jne 0x140192d42
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140192d1b
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192d44
cmp dword [rdi], 0
je 0x140192d3e
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192d44
xor cl, cl
jmp 0x140192d44
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 0x140192c10
mov dword [rsp + 0x28], r15d
jmp 0x140192ede
test eax, eax
jle 0x140192ee7
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x500]
nop dword [rax]
cmp r12d, 0x10
jne 0x140192e47
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140192da9
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192dcf
cmp dword [rbx + 0x30], 0
je 0x140192dcd
mov rcx, rbx
call fcn.140187a40
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140192dcf
xor cl, cl
mov rdx, rbx
mov r8d, gethostbyaddr
movzx r15d, cl
cmp rax, qword [rbx + 0xc8]
jae 0x140192e02
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 0x140192e51
cmp dword [r8 + rdx], 0
je 0x140192e35
mov rcx, rbx
call fcn.140187a40
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 0x140192e51
xor cl, cl
movzx edi, cl
shl edi, 8
add edi, r15d
mov r15d, dword [rsp + 0x28]
jmp 0x140192e51
mov rcx, rbx
call fcn.140187c50
mov edi, eax
mov r8d, dword [rsp + 0x44]
mov ecx, edi
and ecx, dword [rsp + 0x4f8]
mov edx, dword [rsp + 0x48]
call fcn.1401918b0
mov r8d, dword [rsp + 0x4c]
mov ecx, edi
and ecx, dword [rsp + 0x508]
mov edx, dword [rsp + 0x50]
mov byte [r14], al
call fcn.1401918b0
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.1401918b0
mov byte [r14 + 2], al
test esi, esi
je 0x140192eb6
mov r8d, dword [rsp + 0x2c]
and edi, esi
mov edx, dword [rsp + 0x30]
mov ecx, edi
call fcn.1401918b0
jmp 0x140192ebb
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 0x140192d80
mov rsi, qword [rsp + 0x68]
mov edi, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x140192f2f
cmp qword [rbx + 0x10], 0
je 0x140192f25
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x140192f25
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 0x140192f2f
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 0x140192bf0
test r15d, r15d
jne 0x140192f6f
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x140192f6f
mov rax, qword [rsp + 0x60]
mov byte [rcx + rax], 0xff
sub rcx, 4
jns 0x140192f62
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x140192fde
xor r10d, r10d
test edx, 0xfffffffe
jle 0x140192fde
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 0x140192fcf
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 0x140192fb0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x140192f81
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 0x140193076
mov rcx, rsi
call fcn.1404b3bb8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14019306b
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x14019306b
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x14019306b
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_offset
jmp 0x14019306b
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