Function at 0x100e793b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
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 edi, dword [ebp + 0x18]
mov dword [ebp - 0xb4], esi
mov dword [eax + 8], ebx
mov dword [ebp - 0xa4], edi
cmp edi, 4
ja 0x100e811a
push esi
call fcn.100eb072
pop ecx
test eax, eax
jne 0x100e79a4
push esi
call fcn.100e9635
jmp 0x100e8124
mov eax, dword [esi]
xor ecx, ecx
inc ecx
mov dword [ebp - 0xb8], 3
mov edx, dword [eax + 8]
mov dword [ebp - 0xb0], edx
test edi, edi
jne 0x100e79d2
cmp edx, 3
mov edi, ecx
cmovge edi, dword [ebp - 0xb8]
mov dword [ebp - 0xa4], edi
cmp edx, 3
jne 0x100e79f9
cmp dword [esi + 0x47ec], edx
je 0x100e79ef
cmp dword [esi + 0x47e8], ebx
jne 0x100e79f9
cmp dword [esi + 0x47e4], ebx
jne 0x100e79f9
mov ebx, ecx
mov dword [ebp - 0xc4], ebx
jmp 0x100e7a04
mov dword [ebp - 0xc4], ebx
cmp edx, 3
jne 0x100e7a15
cmp edi, 3
jge 0x100e7a15
test ebx, ebx
jne 0x100e7a15
mov edx, ecx
mov dword [ebp - 0xb0], edx
and dword [ebp - 0xac], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test edx, edx
jle 0x100e7b22
lea edi, [esi + 0x46a0]
lea ebx, [ebp - 0x88]
mov dword [ebp - 0x9c], edi
mov eax, dword [esi]
push 3
pop ecx
mov eax, dword [eax]
add eax, ecx
push eax
call fcn.100eea3e
mov dword [edi + 0x34], eax
pop ecx
test eax, eax
je 0x100e7b43
mov eax, dword [esi + 0x4684]
cdq
idiv dword [edi]
mov ecx, dword [ebp - 0x9c]
mov edi, eax
and dword [ebx + 0x10], 0
mov eax, dword [esi + 0x4688]
cdq
idiv dword [ecx + 4]
xor edx, edx
mov dword [ebx], edi
mov ecx, eax
mov dword [ebp - 0x98], eax
sar ecx, 1
mov dword [ebx + 0xc], ecx
mov ecx, dword [esi]
mov dword [ebx + 4], eax
mov eax, dword [ecx]
xor ecx, ecx
dec eax
inc ecx
add eax, edi
div edi
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x28]
mov dword [ebx - 4], eax
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x98]
cmp edi, ecx
jne 0x100e7acc
cmp eax, ecx
jne 0x100e7abe
mov eax, 0x100e8136
jmp 0x100e7af2
mov edi, ecx
cmp eax, 2
jne 0x100e7adc
mov eax, 0x100f237f
jmp 0x100e7af2
cmp edi, 2
jne 0x100e7aed
cmp eax, ecx
jne 0x100e7adc
mov eax, 0x100f20b6
jmp 0x100e7af2
cmp edi, 2
jne 0x100e7aed
cmp eax, edi
jne 0x100e7aed
mov eax, dword [esi + 0x4814]
jmp 0x100e7af2
mov eax, 0x100f2081
mov edi, dword [ebp - 0x9c]
mov dword [ebx - 0xc], eax
add edi, 0x48
mov eax, dword [ebp - 0xac]
add ebx, 0x20
inc eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xac], eax
cmp eax, dword [ebp - 0xb0]
jl 0x100e7a3d
mov eax, dword [esi]
mov ebx, dword [ebp - 0xa4]
push ecx
push dword [eax + 4]
push dword [eax]
push ebx
call fcn.100eea72
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xb8], edi
test edi, edi
jne 0x100e7b55
push esi
call fcn.100e9635
mov dword [esp], str.outofmem
jmp 0x100e811f
mov eax, dword [esi]
xor edx, edx
mov dword [ebp - 0xc8], edx
cmp dword [eax + 4], edx
jbe 0x100e80dc
mov ecx, dword [ebp - 0x14]
mov edi, dword [eax]
and dword [ebp - 0x98], 0
imul edi, edx
imul edi, ebx
add edi, dword [ebp - 0xb8]
cmp dword [ebp - 0xb0], 0
mov dword [ebp - 0xa8], edi
jle 0x100e7c2d
mov edi, dword [ebp - 0xb0]
lea eax, [esi + 0x46bc]
mov dword [ebp - 0x9c], eax
lea ebx, [ebp - 0x7c]
mov esi, eax
mov eax, dword [ebx - 8]
sar eax, 1
cmp dword [ebx], eax
jl 0x100e7bb8
mov edx, dword [ebx - 0x14]
jmp 0x100e7bbb
mov edx, dword [ebx - 0x10]
jl 0x100e7bc2
mov eax, dword [ebx - 0x10]
jmp 0x100e7bc5
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 0x100e7c05
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 0x100e7c05
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 0x100e7baa
mov esi, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
push 3
pop edx
cmp ebx, edx
jl 0x100e7e5a
cmp dword [eax + 8], edx
jne 0x100e7cd4
cmp dword [ebp - 0xc4], 0
je 0x100e7cb9
and dword [ebp - 0x9c], 0
cmp dword [eax], 0
jbe 0x100e7e53
mov eax, dword [ebp - 0x10]
add edi, 2
mov esi, dword [ebp - 0xc]
mov edx, eax
mov dword [ebp - 0x98], esi
mov esi, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], ecx
sub ecx, eax
sub dword [ebp - 0x98], eax
mov al, byte [ecx + edx]
mov byte [edi - 2], al
mov al, byte [edx]
mov byte [edi - 1], al
mov eax, dword [ebp - 0x98]
mov al, byte [eax + edx]
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc dword [ebp - 0x9c]
inc edx
mov esi, dword [ebp - 0x9c]
cmp esi, dword [eax]
mov esi, dword [ebp - 0xb4]
jb 0x100e7c7f
jmp 0x100e7e50
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 0x100e7e50
cmp dword [eax + 8], 4
jne 0x100e7e2e
mov edx, dword [esi + 0x47e8]
test edx, edx
jne 0x100e7d9d
and dword [ebp - 0x98], edx
cmp dword [eax], edx
jbe 0x100e7e53
mov eax, dword [ebp - 0x14]
add edi, 2
mov ebx, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0xa8], ebx
sub ecx, eax
mov ebx, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ebx
mov ebx, dword [ebp - 0xa4]
mov al, byte [ecx + edx]
mov byte [ebp - 0xbc], al
push dword [ebp - 0xbc]
movzx eax, byte [edx]
push eax
call fcn.100e848d
push dword [ebp - 0xbc]
mov byte [edi - 2], al
mov eax, dword [ebp - 0xa8]
movzx eax, byte [eax + edx]
push eax
call fcn.100e848d
push dword [ebp - 0xbc]
mov byte [edi - 1], al
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + edx]
push eax
call fcn.100e848d
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 ecx, dword [ebp - 0xa0]
jb 0x100e7d29
jmp 0x100e7e50
mov eax, dword [eax]
mov ecx, dword [esi + 0x4810]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
cmp edx, 2
jne 0x100e7e27
call ecx
mov eax, dword [esi]
xor edx, edx
add esp, 0x18
cmp dword [eax], edx
jbe 0x100e7e50
add edi, 2
mov eax, dword [ebp - 8]
mov al, byte [edx + eax]
mov byte [ebp - 0xc0], al
mov al, byte [edi - 2]
push dword [ebp - 0xc0]
not al
movzx eax, al
push eax
call fcn.100e848d
push dword [ebp - 0xc0]
mov byte [edi - 2], al
mov al, byte [edi - 1]
not al
movzx eax, al
push eax
call fcn.100e848d
push dword [ebp - 0xc0]
mov byte [edi - 1], al
mov al, byte [edi]
not al
movzx eax, al
push eax
call fcn.100e848d
mov byte [edi], al
add esp, 0x18
mov eax, dword [esi]
add edi, ebx
inc edx
cmp edx, dword [eax]
jb 0x100e7dca
jmp 0x100e7e50
call ecx
jmp 0x100e7ccc
xor edx, edx
cmp dword [eax], edx
jbe 0x100e7e53
inc edi
mov eax, dword [ebp - 0x14]
mov al, byte [edx + eax]
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 edx
cmp edx, dword [eax]
jb 0x100e7e35
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
jmp 0x100e80c0
cmp dword [ebp - 0xc4], 0
je 0x100e7f27
and dword [ebp - 0x98], 0
mov edx, dword [eax]
cmp ebx, 1
jne 0x100e7ecc
test edx, edx
je 0x100e80c0
mov eax, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
sub ecx, eax
sub ebx, eax
mov dword [ebp - 0xa0], ecx
sub edi, eax
movzx eax, byte [ebx + edx]
push eax
movzx eax, byte [edx]
push eax
movzx eax, byte [ecx + edx]
push eax
call fcn.100e99f3
mov ecx, dword [ebp - 0x98]
add esp, 0xc
mov byte [edi + edx], al
inc ecx
mov eax, dword [esi]
inc edx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax]
mov ecx, dword [ebp - 0xa0]
jb 0x100e7e94
jmp 0x100e80b7
test edx, edx
je 0x100e80c0
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 [ebx + edx]
push eax
movzx eax, byte [edx]
push eax
movzx eax, byte [ecx + edx]
push eax
call fcn.100e99f3
mov ecx, dword [ebp - 0x98]
add esp, 0xc
mov byte [edi], al
inc ecx
mov byte [edi + 1], 0xff
lea edi, [edi + 2]
mov eax, dword [esi]
inc edx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax]
mov ecx, dword [ebp - 0xa0]
jb 0x100e7ee9
jmp 0x100e80b7
cmp dword [eax + 8], 4
jne 0x100e806e
mov edx, dword [esi + 0x47e8]
test edx, edx
jne 0x100e8013
and dword [ebp - 0x98], edx
cmp dword [eax], edx
jbe 0x100e80c0
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x9c], eax
sub edx, eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0xa8], eax
mov al, byte [edx + ecx]
mov byte [ebp - 0xac], al
push dword [ebp - 0xac]
movzx eax, byte [ecx]
push eax
call fcn.100e848d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x9c]
movzx eax, al
push eax
mov eax, dword [ebp - 0xa0]
push dword [ebp - 0xac]
movzx eax, byte [eax + ecx]
push eax
call fcn.100e848d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x9c]
movzx eax, al
push eax
mov eax, dword [ebp - 0xa8]
push dword [ebp - 0xac]
movzx eax, byte [eax + ecx]
push eax
call fcn.100e848d
pop ecx
pop ecx
movzx eax, al
push eax
call fcn.100e99f3
mov ecx, dword [ebp - 0x9c]
add esp, 0xc
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc dword [ebp - 0x98]
inc ecx
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
cmp esi, dword [eax]
mov esi, dword [ebp - 0xb4]
jb 0x100e7f73
jmp 0x100e80bd
cmp edx, 2
jne 0x100e806e
and dword [ebp - 0x98], 0
cmp dword [eax], 0
jbe 0x100e80c0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub ecx, edx
mov dword [ebp - 0xa0], ecx
movzx eax, byte [ecx + edx]
push eax
mov al, byte [edx]
not al
movzx eax, al
push eax
call fcn.100e848d
pop ecx
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x98]
inc ecx
inc edx
cmp ecx, dword [eax]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0xa0]
jb 0x100e8036
jmp 0x100e80bd
mov edx, dword [eax]
mov dword [ebp - 0x98], edx
xor edx, edx
cmp ebx, 1
jne 0x100e8099
cmp dword [ebp - 0x98], edx
jbe 0x100e80c0
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 0x100e808a
jmp 0x100e80bd
cmp dword [ebp - 0x98], edx
jbe 0x100e80c0
mov ebx, dword [ebp - 0x14]
mov al, byte [edx + ebx]
inc edx
mov byte [edi], al
lea edi, [edi + 2]
mov byte [edi - 1], 0xff
mov eax, dword [esi]
cmp edx, dword [eax]
jb 0x100e80a4
mov ebx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc8]
inc edx
mov dword [ebp - 0xc8], edx
cmp edx, dword [eax + 4]
jb 0x100e7b6b
mov edi, dword [ebp - 0xb8]
push esi
call fcn.100e9635
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 0x100e8116
mov eax, dword [esi]
push 3
pop edx
push 1
cmp dword [eax + 8], edx
pop eax
cmovge eax, edx
mov dword [ecx], eax
mov eax, edi
jmp 0x100e8127
push str.bad_req_comp
call fcn.100eb2e4
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10128191
leave
ret