Function at 0x10091de1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x1018b55c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0xc4], esi
and dword [eax + 8], 0
cmp ebx, 4
ja 0x100925dd
push esi
call fcn.100956c3
pop ecx
test eax, eax
jne 0x10091e43
push esi
call fcn.10093c13
jmp 0x100925e7
xor edi, edi
inc edi
push 3
pop edx
test ebx, ebx
jne 0x10091e5a
mov eax, dword [esi]
mov ebx, edi
cmp dword [eax + 8], edx
cmovge ebx, edx
mov dword [ebp + 0x18], ebx
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb8], eax
cmp eax, edx
jne 0x10091e8d
cmp dword [esi + 0x47ec], edx
je 0x10091e83
cmp dword [esi + 0x47e8], 0
jne 0x10091e8d
cmp dword [esi + 0x47e4], 0
jne 0x10091e8d
mov edx, edi
mov dword [ebp - 0xc0], edi
jmp 0x10091e95
xor edx, edx
mov dword [ebp - 0xc0], edx
cmp eax, 3
jne 0x10091eac
cmp ebx, eax
jge 0x10091eac
test edx, edx
jne 0x10091eac
mov eax, edi
mov dword [ebp - 0xb8], eax
jmp 0x10091eb0
test eax, eax
jle 0x10091e38
and dword [ebp - 0xac], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test eax, eax
jle 0x10091fcb
lea eax, [esi + 0x46a0]
lea edi, [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov eax, dword [ecx]
add eax, 3
push eax
call fcn.100c4812
pop ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x1009204b
mov eax, dword [esi + 0x4684]
cdq
idiv dword [ecx]
and dword [edi + 0xc], 0
mov dword [ebp - 0x98], eax
mov dword [edi - 4], eax
mov eax, dword [esi + 0x4688]
cdq
idiv dword [ecx + 4]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0xb0], eax
sar ecx, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 8], ecx
dec eax
mov ecx, dword [esi]
mov ecx, dword [ecx]
add eax, ecx
div dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x28]
mov dword [edi - 8], eax
mov dword [edi - 0xc], eax
mov eax, dword [ebp - 0xb0]
cmp edx, 1
jne 0x10091f77
cmp eax, edx
jne 0x10091f69
mov dword [edi - 0x10], 0x100925fb
jmp 0x10091fa1
cmp eax, 2
jne 0x10091f77
mov dword [edi - 0x10], 0x1009d8f9
jmp 0x10091fa1
cmp edx, 2
jne 0x10091f9a
cmp eax, 1
jne 0x10091f8a
mov dword [edi - 0x10], 0x1009d5f2
jmp 0x10091fa1
cmp eax, 2
jne 0x10091f9a
mov eax, dword [esi + 0x4814]
mov dword [edi - 0x10], eax
jmp 0x10091fa1
mov dword [edi - 0x10], 0x1009d5bd
mov eax, dword [ebp - 0xac]
add ecx, 0x48
inc eax
mov dword [ebp - 0x9c], ecx
mov ecx, dword [esi]
add edi, 0x20
mov dword [ebp - 0xac], eax
cmp eax, dword [ebp - 0xb8]
jl 0x10091ed8
xor edi, edi
inc edi
mov eax, dword [esi]
push edi
push dword [eax + 4]
push dword [eax]
push ebx
call fcn.10099acf
add esp, 0x10
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x1009204b
mov eax, dword [esi]
xor edx, edx
mov dword [ebp - 0x9c], edx
cmp dword [eax + 4], edx
jbe 0x1009259e
mov ecx, dword [ebp - 0x14]
mov edi, dword [eax]
and dword [ebp - 0x98], 0
imul edi, edx
imul edi, ebx
add edi, dword [ebp - 0xc8]
cmp dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], edi
jle 0x100920d9
mov edi, dword [ebp - 0xb8]
lea eax, [esi + 0x46bc]
mov dword [ebp - 0xa4], eax
lea ebx, [ebp - 0x7c]
mov esi, eax
mov eax, dword [ebx - 8]
mov ecx, dword [ebx]
sar eax, 1
cmp ecx, eax
jl 0x1009205d
mov edx, dword [ebx - 0x14]
jmp 0x10092060
push esi
call fcn.10093c13
mov dword [esp], str.outofmem
jmp 0x100925e2
mov edx, dword [ebx - 0x10]
cmp ecx, eax
jl 0x10092069
mov eax, dword [ebx - 0x10]
jmp 0x1009206c
mov eax, dword [ebx - 0x14]
push dword [ebx - 0xc]
push dword [ebx - 4]
push edx
push eax
push dword [esi + 0x18]
call dword [ebx - 0x18]
mov edx, dword [ebp - 0x98]
add esp, 0x14
mov dword [ebp + edx*4 - 0x14], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
cmp eax, dword [ebx - 8]
jl 0x100920ac
and dword [ebx], 0
inc dword [ebx + 4]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx - 0x10]
mov dword [ebx - 0x14], ecx
cmp eax, dword [esi]
jge 0x100920ac
mov eax, dword [esi + 4]
add eax, ecx
mov dword [ebx - 0x10], eax
inc edx
add ebx, 0x20
add esi, 0x48
mov dword [ebp - 0x98], edx
cmp edx, edi
jl 0x1009203b
mov esi, dword [ebp - 0xc4]
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x9c]
mov eax, dword [esi]
cmp ebx, 3
jl 0x100922fd
cmp dword [eax + 8], 3
jne 0x10092177
cmp dword [ebp - 0xc0], 0
je 0x1009215c
and dword [ebp - 0x98], 0
cmp dword [eax], 0
jbe 0x10092589
mov eax, dword [ebp - 0xc]
add edi, 2
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xa8], ecx
sub ecx, dword [ebp - 0x10]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0xa8], eax
mov al, byte [ecx + edx]
mov byte [edi - 2], al
mov al, byte [edx]
mov byte [edi - 1], al
mov eax, dword [ebp - 0xa8]
mov al, byte [eax + edx]
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc dword [ebp - 0x98]
inc edx
mov esi, dword [ebp - 0x98]
cmp esi, dword [eax]
mov esi, dword [ebp - 0xc4]
jb 0x10092122
jmp 0x10092580
push ebx
push dword [eax]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [esi + 0x4810]
add esp, 0x18
jmp 0x10092580
cmp dword [eax + 8], 4
jne 0x100922c6
mov edx, dword [esi + 0x47e8]
test edx, edx
jne 0x10092238
and dword [ebp - 0x98], edx
cmp dword [eax], edx
jbe 0x10092583
mov edx, dword [ebp - 0x14]
add edi, 2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub ecx, edx
mov dword [ebp - 0xa4], ecx
sub eax, edx
mov ecx, dword [ebp - 0xc]
sub ecx, edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xb4], ecx
mov al, byte [eax + edx]
mov byte [ebp - 0xbc], al
push dword [ebp - 0xbc]
movzx eax, byte [edx]
push eax
call fcn.10092960
push dword [ebp - 0xbc]
mov byte [edi - 2], al
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax + edx]
push eax
call fcn.10092960
push dword [ebp - 0xbc]
mov byte [edi - 1], al
mov eax, dword [ebp - 0xb4]
movzx eax, byte [eax + edx]
push eax
call fcn.10092960
mov ecx, dword [ebp - 0x98]
add esp, 0x18
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc ecx
inc edx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa0]
jb 0x100921c4
jmp 0x10092580
push ebx
push dword [eax]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
cmp edx, 2
jne 0x10092169
call dword [esi + 0x4810]
mov eax, dword [esi]
xor edx, edx
add esp, 0x18
cmp dword [eax], edx
jbe 0x10092580
add edi, 2
mov eax, dword [ebp - 8]
mov al, byte [edx + eax]
mov byte [ebp - 0xac], al
mov al, byte [edi - 2]
push dword [ebp - 0xac]
not al
movzx eax, al
push eax
call fcn.10092960
push dword [ebp - 0xac]
mov byte [edi - 2], al
mov al, byte [edi - 1]
not al
movzx eax, al
push eax
call fcn.10092960
push dword [ebp - 0xac]
mov byte [edi - 1], al
mov al, byte [edi]
not al
movzx eax, al
push eax
call fcn.10092960
mov byte [edi], al
add esp, 0x18
mov eax, dword [esi]
add edi, ebx
inc edx
cmp edx, dword [eax]
jb 0x10092266
jmp 0x10092580
and dword [ebp - 0xa0], 0
cmp dword [eax], 0
jbe 0x10092589
mov edx, dword [ebp - 0x14]
inc edi
mov ecx, dword [ebp - 0xa0]
mov al, byte [ecx + edx]
mov byte [edi + 1], al
mov byte [edi], al
mov byte [edi - 1], al
mov byte [edi + 2], 0xff
add edi, ebx
mov eax, dword [esi]
inc ecx
cmp ecx, dword [eax]
jb 0x100922e0
jmp 0x10092580
cmp dword [ebp - 0xc0], 0
je 0x100923d8
and dword [ebp - 0x98], 0
cmp ebx, 1
jne 0x10092377
cmp dword [eax], 0
jbe 0x10092589
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
sub eax, edx
sub ebx, edx
mov dword [ebp - 0xb4], eax
sub edi, edx
movzx eax, byte [edx + ebx]
imul ecx, eax, 0x1d
mov eax, dword [ebp - 0xb4]
movzx eax, byte [edx + eax]
imul eax, eax, 0x4d
add ecx, eax
movzx eax, byte [edx]
imul eax, eax, 0x96
add ecx, eax
shr ecx, 8
mov byte [edi + edx], cl
mov ecx, dword [ebp - 0x98]
mov eax, dword [esi]
inc ecx
inc edx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax]
jb 0x10092334
mov ebx, dword [ebp + 0x18]
jmp 0x10092580
cmp dword [eax], 0
jbe 0x10092589
mov eax, dword [ebp - 0x10]
mov edx, eax
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0xa0], ecx
movzx eax, byte [edx + ebx]
imul ecx, eax, 0x1d
mov eax, dword [ebp - 0xa0]
movzx eax, byte [edx + eax]
imul eax, eax, 0x4d
add ecx, eax
movzx eax, byte [edx]
imul eax, eax, 0x96
mov byte [edi + 1], 0xff
add ecx, eax
shr ecx, 8
mov byte [edi], cl
lea edi, [edi + 2]
mov ecx, dword [ebp - 0x98]
mov eax, dword [esi]
inc ecx
inc edx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax]
jb 0x10092395
jmp 0x1009236f
cmp dword [eax + 8], 4
jne 0x10092539
cmp dword [esi + 0x47e8], 0
jne 0x100924d4
and dword [ebp - 0xa4], 0
cmp dword [eax], 0
jbe 0x10092589
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0xa0], edx
sub ecx, eax
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x98]
mov al, byte [ecx + eax]
mov byte [ebp - 0xb0], al
mov eax, dword [ebp - 0x98]
push dword [ebp - 0xb0]
movzx eax, byte [edx + eax]
push eax
call fcn.10092960
mov ecx, dword [ebp - 0x98]
push dword [ebp - 0xb0]
movzx eax, al
imul edx, eax, 0x4d
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax + ecx]
push eax
call fcn.10092960
push dword [ebp - 0xb0]
movzx eax, al
imul eax, eax, 0x96
add edx, eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
push eax
call fcn.10092960
mov ecx, dword [ebp - 0xa4]
add esp, 0x18
movzx eax, al
imul eax, eax, 0x1d
mov byte [edi + 1], 0xff
add edx, eax
shr edx, 8
mov byte [edi], dl
add edi, ebx
mov eax, dword [esi]
inc ecx
inc dword [ebp - 0x98]
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], ecx
cmp ecx, dword [eax]
mov ecx, dword [ebp - 0xb4]
jb 0x10092429
jmp 0x10092580
cmp dword [eax + 8], 4
jne 0x10092539
cmp dword [esi + 0x47e8], 2
jne 0x10092539
and dword [ebp - 0xa4], 0
cmp dword [eax], 0
jbe 0x10092589
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub ecx, edx
mov dword [ebp - 0xa0], ecx
movzx eax, byte [edx + ecx]
push eax
mov al, byte [edx]
not al
movzx eax, al
push eax
call fcn.10092960
pop ecx
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0xa4]
inc ecx
inc edx
cmp ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xa0]
jb 0x10092501
jmp 0x10092580
cmp ebx, 1
jne 0x10092558
xor edx, edx
cmp dword [eax], edx
jbe 0x10092583
mov ecx, dword [ebp - 0x14]
sub ecx, edi
mov al, byte [ecx + edi]
inc edx
mov byte [edi], al
inc edi
mov eax, dword [esi]
cmp edx, dword [eax]
jb 0x10092549
jmp 0x10092580
and dword [ebp - 0xa0], 0
cmp dword [eax], 0
jbe 0x10092589
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xa0]
mov al, byte [ecx + edx]
inc ecx
mov byte [edi], al
lea edi, [edi + 2]
mov byte [edi - 1], 0xff
mov eax, dword [esi]
cmp ecx, dword [eax]
jb 0x1009256d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x9c]
mov eax, dword [esi]
inc edx
mov dword [ebp - 0x9c], edx
cmp edx, dword [eax + 4]
jb 0x10091ffc
xor edi, edi
inc edi
push esi
call fcn.10093c13
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0xcc]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x100925d5
mov eax, dword [esi]
push 3
pop edx
cmp dword [eax + 8], edx
cmovge edi, edx
mov dword [ecx], edi
mov eax, dword [ebp - 0xc8]
jmp 0x100925ea
push str.bad_req_comp
call fcn.1009595b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a4461
mov esp, ebp
pop ebp
ret