Function at 0x101cb320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1070dd84]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
push ebx
movzx eax, byte [edx]
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, dword [eax*4 + 0x1048d020]
mov esi, dword [eax*4 + 0x1048d070]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], eax
cmp ecx, esi
je 0x101cb3ae
jle 0x101cb38c
lea eax, [esi + esi]
cmp ecx, eax
jne 0x101cb378
mov dword [ebp - 0x24], 1
jmp 0x101cb3b5
lea eax, [esi*4]
cmp ecx, eax
jne 0x101cb3ae
mov dword [ebp - 0x24], 2
jmp 0x101cb3b5
lea eax, [ecx + ecx]
cmp esi, eax
jne 0x101cb39c
mov dword [ebp - 0x24], 0xffffffff
jmp 0x101cb3b5
lea eax, [ecx*4]
mov dword [ebp - 0x24], 0xfffffffe
cmp esi, eax
je 0x101cb3b5
mov dword [ebp - 0x24], 0
mov edi, dword [edx + 0x2c]
xor ecx, ecx
mov edx, dword [ebp + 0x1c]
test edi, edi
jle 0x101cb3e5
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
cmp ecx, 0xc
jge 0x101cb3df
mov al, byte [esi + ecx + 0x12]
inc al
add al, byte [ebx]
add al, dl
mov byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, edi
jl 0x101cb3c7
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov edi, dword [edi + 0x30]
test edi, edi
jle 0x101cb418
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
cmp ecx, 0xc
jge 0x101cb412
mov al, byte [esi + ecx + 0x1e]
inc al
add al, byte [ebx + 1]
add al, byte [ebx]
add al, dl
mov byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, edi
jl 0x101cb3f7
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx + 0x10]
mov byte [ebp - 0x54], al
movzx eax, byte [edx + 0x11]
mov byte [ebp - 0x58], al
movzx eax, byte [edx + 0x2a]
push eax
call fcn.101cb610
mov dword [ebp - 0x4c], eax
movzx eax, byte [edx + 0x2b]
push eax
call fcn.101cb610
mov ecx, dword [ebp - 0x2c]
lea edi, [ebx + esi*4]
add esp, 8
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x3c], 0
test ecx, ecx
jle 0x101cb55e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
lea eax, [ecx*4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
lea eax, [eax + ecx*4]
add eax, 0xfffffffc
mov dword [ebp - 0x48], eax
nop dword [eax]
xor ecx, ecx
cmp dword [edx + 4], ecx
jne 0x101cb4a3
test esi, esi
jle 0x101cb4d0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x40]
lea edi, [eax + eax]
movsx eax, word [edx]
add edx, edi
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x101cb494
jmp 0x101cb4cd
test esi, esi
jle 0x101cb4d0
mov edi, dword [ebp + 0x10]
lea eax, [esi - 1]
imul eax, dword [ebp + 0x10]
neg edi
mov edx, dword [ebp + 8]
add edi, edi
add eax, dword [ebp - 0x3c]
lea edx, [edx + eax*2]
nop
movsx eax, word [edx]
add edx, edi
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x101cb4c0
lea edi, [ebx + esi*4]
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax]
neg eax
push eax
push esi
push ebx
call dword [0x1075880c]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x54]
push edi
push ebx
call dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax + 1]
neg eax
push eax
push esi
push edi
call dword [0x1075880c]
mov edx, dword [ebp - 0x20]
xor ecx, ecx
add esp, 0x28
cmp dword [edx + 8], ecx
jne 0x101cb524
test esi, esi
jle 0x101cb542
mov edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x50]
mov eax, dword [edi + ecx*4]
inc ecx
mov dword [edx], eax
add edx, ebx
cmp ecx, esi
jl 0x101cb516
jmp 0x101cb53c
test esi, esi
jle 0x101cb542
mov edx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x50]
nop
mov eax, dword [edi + ecx*4]
inc ecx
mov dword [edx], eax
add edx, ebx
cmp ecx, esi
jl 0x101cb530
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x40], 2
inc eax
add dword [ebp - 0x44], 4
sub dword [ebp - 0x48], 4
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x101cb480
test esi, esi
jle 0x101cb5f8
mov eax, dword [ebp - 0x24]
cdq
mov edi, eax
mov eax, dword [ebp - 0x30]
xor edi, edx
sub edi, edx
sub eax, ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x30], eax
nop dword [eax + eax]
lea ecx, [ebp - 0x1c]
add eax, ebx
push ecx
push dword [ebp - 0x58]
push ebx
push eax
call dword [ebp - 0x5c]
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax + 2]
neg eax
push eax
push dword [ebp - 0x2c]
push ebx
call dword [0x1075880c]
add esp, 0x1c
cmp edi, 1
jne 0x101cb5e1
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x101cb5e1
mov ecx, ebx
mov edi, eax
mov esi, 0x16a1
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
imul esi
add eax, 0x800
adc edx, 0
shrd eax, edx, 0xc
mov dword [ecx - 4], eax
sub edi, 1
jne 0x101cb5c0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx*4]
add ebx, eax
mov eax, dword [ebp - 0x30]
sub esi, 1
mov dword [ebp - 0x38], esi
jne 0x101cb580
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10398bef
mov esp, ebp
pop ebp
ret