Function at 0x1001b19b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0x40], 0x26
xorps xmm1, xmm1
mov dword [ebp - 0x3c], 0x4f
xor edx, edx
mov dword [ebp - 0x38], 0x4a
xorps xmm2, xmm2
mov dword [ebp - 0x34], 0xffffff41
mov ecx, edx
movups xmm0, xmmword [ebp - 0x40]
push esi
push edi
psubd xmm1, xmm0
mov dword [ebp - 0x44], 0x61
movaps xmm0, xmm1
mov dword [ebp - 0x3c], 0x5b
psrldq xmm0, 8
mov eax, edx
paddd xmm1, xmm0
mov dword [ebp - 0x38], 0x52
movups xmm0, xmm1
mov dword [ebp - 0x34], 0xfffffebc
psrldq xmm0, 4
push 0x36
paddd xmm1, xmm0
pop edi
movd dword [ebp - 0x28], xmm1
mov dword [ebp - 0x40], edi
sub ecx, dword [ebp + eax*4 - 0x44]
inc eax
cmp eax, 5
jl 0x1001b215
mov dword [ebp - 0x24], ecx
mov eax, edx
mov ecx, str.._AVSimpleKeyAgreementDomain_CryptoPP__
inc eax
lea ecx, [ecx + 2]
cmp eax, 0x2124
jl 0x1001b239
cmp word [ecx], dx
jne 0x1001b229
cmp eax, 0xd4a
jle 0x1001b245
call fcn.10019cbb
mov esi, dword [0x1002d99c]
add esi, 0x6551a89b
call fcn.10019d10
mov dword [ebp - 0xc], edi
xor edi, edi
push 0x60
pop ecx
mov dword [ebp - 0x10], 0xb
mov eax, edi
mov dword [ebp - 8], 0xffffff5f
add ecx, dword [ebp + eax*4 - 0x10]
inc eax
cmp eax, 3
jl 0x1001b26e
push 0xe
mov dword [ebp - 0x58], ecx
mov ecx, edi
pop edx
mov dword [ebp - 0x40], 0x1b
mov dword [ebp - 0x3c], 0x4f
mov dword [ebp - 0x38], 0x2c
mov dword [ebp - 0x34], 0xffffff77
imul eax, esi, 0x95ea7a9c
mov esi, eax
sub edx, dword [ebp + ecx*4 - 0x40]
add eax, 0xeefd0ee7
inc ecx
cmp ecx, 4
jl 0x1001b29c
mov dword [ebp - 0x50], edx
or eax, 0xdae0a309
mov dword [ebp - 0x18], eax
imul esi, eax, 0x206a75c9
xor edx, edx
push 0x3c
pop ecx
mov dword [ebp - 0x4c], 0x13
mov eax, edx
mov dword [ebp - 0x48], 0xffffffb2
mov dword [ebp - 0x1c], esi
add ecx, dword [ebp + eax*4 - 0x4c]
inc eax
cmp eax, 2
jl 0x1001b2dc
mov dword [ebp - 0x48], ecx
lea edi, [ebp - 0x44]
push 5
pop ecx
mov esi, str.invalid_operation:__d
mov dword [ebp - 0x10], 0x77007192
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], 0x72ae9290
mov eax, edx
mov dword [ebp - 8], 0x69a4037f
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x18]
or esi, 0x691bdf6
mov byte [ebp + eax - 0x158], al
inc eax
cmp eax, 0x100
jb 0x1001b312
mov dword [ebp - 0x18], esi
mov edi, edx
mov esi, edx
xor edx, edx
mov dword [ebp - 0x20], 0x15
mov eax, edi
mov cl, byte [ebp + edi - 0x158]
div dword [ebp - 0x20]
mov byte [ebp - 1], cl
movzx ecx, cl
movzx eax, byte [ebp + edx - 0x44]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [ebp + esi - 0x158]
mov byte [ebp + edi - 0x158], al
inc edi
mov al, byte [ebp - 1]
mov byte [ebp + esi - 0x158], al
cmp edi, 0x100
jb 0x1001b32e
mov esi, dword [ebp - 0x18]
xor ecx, ecx
mov edi, dword [ebp - 0x1c]
mov edx, ecx
mov eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, str.ClientParameters
inc eax
movzx eax, al
mov dword [ebp - 0x1c], eax
mov al, byte [ebp + eax - 0x158]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0x2c], eax
add eax, edx
movzx eax, al
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, edx
inc eax
lea ecx, [ecx + 2]
cmp eax, 0xfc5
jl 0x1001b3bf
cmp word [ecx], dx
jne 0x1001b3ad
jmp 0x1001b3c5
lea esi, [edi + 0x40f3627e]
lea edi, [esi + 0x27595ac4]
call fcn.10019b36
push 0x2e
mov ecx, str.._AV_lambda_d04b57b9a1b7c1fa60a58189a537da40___
pop edx
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x1001b3f0
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1001b3d8
jmp 0x1001b3f8
mov esi, edi
xor esi, 0xc1fa2b8e
call fcn.100198c4
mov edx, dword [ebp - 0x18]
add esi, 0x34fda7a
mov ecx, dword [ebp - 0x1c]
xor esi, 0xf9211624
mov al, byte [ebp + edx - 0x158]
mov byte [ebp + ecx - 0x158], al
mov al, byte [ebp - 1]
mov byte [ebp + edx - 0x158], al
movzx eax, byte [ebp + ecx - 0x158]
mov ecx, str.ClientParameters
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
movzx eax, al
mov al, byte [ebp + eax - 0x158]
xor al, byte [ebp + edx - 0x10]
mov byte [ebp + edx - 0x3c], al
inc edx
mov eax, dword [ebp - 0x1c]
cmp edx, 0xc
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x18]
jb 0x1001b38a
push 8
xor eax, eax
mov dword [0x1002d99c], esi
pop ecx
mov byte [ebp - 0x30], al
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0x37
mov dword [ebp - 8], 0xffffffba
add ecx, dword [ebp + eax*4 - 0x10]
and edi, 0x3f473b67
inc eax
mov dword [0x1002d8cc], edi
cmp eax, 3
jl 0x1001b47e
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], edi
cmp dword [ebp + 8], eax
jne 0x1001b5bf
push 0x3f
xor edi, edi
mov dword [ebp - 0x10], 6
pop edx
mov dword [ebp - 0xc], 0x41
mov eax, edi
mov dword [ebp - 8], 0xffffff7f
mov ecx, str.ClientParameters
add ecx, 2
inc eax
cmp eax, 0x232e
jg 0x1001b4d9
cmp word [ecx], di
jne 0x1001b4c7
jmp 0x1001b4e0
push ecx
call fcn.10019f62
pop ecx
imul edi, esi, 0x73d59dbc
call fcn.10019ae8
xor ecx, ecx
mov eax, ecx
add edx, dword [ebp + eax*4 - 0x10]
inc eax
cmp eax, 3
jl 0x1001b4ef
mov dword [ebp - 0x28], edx
mov esi, ecx
mov dword [ebp - 0x24], 0x5e
mov dword [ebp - 0x10], 0x54
mov dword [ebp - 0xc], 0x32
mov dword [ebp - 8], 4
add edi, 0x685f147c
call fcn.10019cbb
lea eax, [edi - 0x49ccf6e7]
mov dword [0x1002d99c], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp + esi*4 - 0x10]
inc esi
mov dword [ebp - 0x24], eax
cmp esi, 3
jl 0x1001b51a
mov dword [0x1002d8cc], edi
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x3c]
call fcn.1001d36b
call eax
add eax, dword [0x1002c680]
mov esi, dword [0x1002d99c]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], 0x2d
mov dword [ebp - 0xc], 0x5f
mov dword [ebp - 8], 0xffffff60
push 0x14
pop ecx
xor edx, edx
mov eax, edx
add ecx, dword [ebp + eax*4 - 0x10]
inc eax
cmp eax, 3
jl 0x1001b581
imul eax, esi, 0x344bf23
mov dword [ebp - 0x48], ecx
mov ecx, str.id_mod_kea_profile_93
or eax, 0xb51c5e5d
xor esi, esi
mov dword [0x1002d8cc], eax
inc edx
lea ecx, [ecx + 2]
cmp edx, 0x153c
jl 0x1001b676
cmp word [ecx], si
jne 0x1001b5a5
jmp 0x1001b680
mov eax, dword [ebp - 0x50]
cmp dword [ebp + 8], eax
jne 0x1001b546
push 0x34
pop ecx
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0x56
mov dword [ebp - 8], 0xffffff57
movups xmm0, xmmword [ebp - 0x14]
push 0x43
pop edi
paddd xmm2, xmm0
mov dword [ebp - 0x54], edi
movaps xmm0, xmm2
mov dword [ebp - 0x50], ecx
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd eax, xmm2
add eax, 0x1a
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x1c]
add esi, 0x3aecc191
call fcn.1001a080
xor edx, edx
mov ecx, str.._AVSimpleKeyAgreementDomain_CryptoPP__
mov eax, edx
inc eax
lea ecx, [ecx + 2]
cmp eax, 0x148c
jg 0x1001b642
cmp word [ecx], dx
jne 0x1001b630
jmp 0x1001b647
call fcn.1001a1c0
imul eax, esi, 0x2fb9300b
mov dword [0x1002d8cc], eax
sub esi, 0x4473581d
mov dword [0x1002d99c], esi
call fcn.10019d10
xor esi, esi
mov eax, esi
add edi, dword [ebp + eax*4 - 0x54]
inc eax
cmp eax, 2
jl 0x1001b667
jmp 0x1001b549
sub eax, 0x2db46a9f
mov dword [0x1002d8cc], eax
mov edx, dword [0x1002c680]
lea esi, [eax - 0x7ce0ed65]
mov ecx, dword [ebp - 0x48]
lea eax, [ebp + 8]
xor esi, 0x9a3524de
push eax
mov dword [0x1002d99c], esi
call fcn.1001b0a1
pop ecx
mov ecx, dword [0x1002ddc0]
mov eax, dword [eax*8 + 0x1002c688]
add eax, dword [ebp - 0x28]
add ecx, eax
movzx eax, byte [ecx]
cmp eax, edi
je 0x1001b6ca
cmp dword [ebp - 0x2c], 0
jne 0x1001b57a
jmp 0x1001b6cc
mov eax, ecx
pop edi
pop esi
leave
ret