Function at 0x101d3d83
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.101dee18
mov edx, eax
test edi, edi
je 0x101d3daa
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x101d3dbc
movzx eax, word [eax]
jmp 0x101d3dd1
xor edi, edi
test dl, dl
je 0x101d3de6
mov eax, 6
xor ebx, ebx
jmp 0x101d3e63
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov ecx, esi
mov ebx, edx
call dword [section..00cfg]
mov ecx, edi
call esi
mov edx, ebx
xor ebx, ebx
cmp ax, 0xffff
sete cl
cmove edi, ebx
mov eax, 6
cmp dl, cl
je 0x101d3e63
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x101d3dfb
movzx esi, word [eax]
jmp 0x101d3e0e
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
movzx ebx, si
mov esi, dword [ebp + 0x14]
mov ecx, esi
push ebx
push 4
call edi
test al, al
je 0x101d3e5c
mov eax, dword [esi]
mov edi, esi
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 0
push ebx
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x101d3e72
add eax, 2
mov dword [edi + 0xc], eax
jmp 0x101d3e83
xor ebx, ebx
mov eax, 4
mov ecx, dword [ebp + 0x10]
or dword [ecx], eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov esi, dword [ebp + 0x18]
movsx ebx, bl
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.101dee18
mov edx, eax
test edi, edi
mov dword [ebp - 0x14], esi
je 0x101d3eaa
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x101d3eb0
movzx eax, word [eax]
jmp 0x101d3eca
mov al, 1
xor edi, edi
jmp 0x101d3ed9
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov ecx, esi
mov byte [ebp - 0x10], dl
call dword [section..00cfg]
mov ecx, edi
call esi
mov dl, byte [ebp - 0x10]
mov esi, dword [ebp - 0x14]
xor ecx, ecx
cmp ax, 0xffff
sete al
je 0x101d3ed7
mov ecx, edi
mov edi, ecx
add ebx, 0xffffffd0
cmp dl, al
je 0x101d3f8f
cmp esi, 2
jl 0x101d3f8f
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ebx
je 0x101d3f05
movzx esi, word [eax]
jmp 0x101d3f18
mov eax, dword [esi]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
mov esi, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
movzx edi, si
mov esi, dword [ebp + 0x14]
mov ecx, esi
push edi
push 4
call ebx
test al, al
je 0x101d3faa
mov eax, dword [esi]
mov ebx, esi
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push 0
push edi
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x101d3f66
add eax, 2
mov dword [esi + 0xc], eax
jmp 0x101d3f77
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
movsx ecx, bl
lea ebx, [ecx + eax*2]
dec esi
jmp 0x101d3e8c
mov ecx, dword [ebp + 8]
call fcn.101dee18
mov ecx, eax
test edi, edi
je 0x101d3fb2
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x101d3fc4
movzx eax, word [eax]
jmp 0x101d3fdb
mov ebx, dword [ebp - 0x18]
jmp 0x101d3e68
mov eax, 2
test cl, cl
jne 0x101d3e63
jmp 0x101d3e68
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov byte [ebp - 0x14], cl
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov cl, byte [ebp - 0x14]
cmp ax, 0xffff
sete al
xor cl, al
mov eax, 2
je 0x101d3e63
jmp 0x101d3e68