Function at 0x101222a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
mov edx, dword [ebp + 8]
cmp dword [edx + 4], ecx
jb 0x10122302
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
xor ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
jmp 0x10122330
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x101224e7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0
jne 0x101224cd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 8]
and ecx, 7
jne 0x10122361
mov dword [ebp - 0x1c], 1
jmp 0x10122368
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x1012242e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
cmp dword [eax + 0x40], 0
jl 0x101223b0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [edx + 0x3c]
cmp edx, dword [ecx + 0x40]
jl 0x101223b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 8]
or edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 8], edx
mov dword [ebp - 0x20], 0xffffffff
jmp 0x10122426
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x1c]
sub ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x1c], ecx
cmp dword [ebp - 0x24], 0
jge 0x101223e7
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call fcn.100fbb70
add esp, 8
mov dword [ebp - 0x28], eax
jmp 0x10122420
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x18]
movzx eax, byte [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x18]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
jmp 0x10122435
mov dword [ebp - 0x2c], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10122452
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 1
mov dword [ebp - 0x14], 0xff
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x1c]
mov byte [ebp - 0x15], dl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x14]
mov byte [eax + 0x1c], cl
movzx edx, byte [ebp - 0x15]
cmp edx, 0xff
jne 0x101224b1
cmp dword [ebp - 0x14], 0x8f
jle 0x10122495
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0xff00
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 8
jmp 0x101224af
mov ecx, dword [ebp - 0x14]
shl ecx, 9
mov edx, dword [ebp + 8]
add ecx, dword [edx]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 7
jmp 0x101224cb
mov edx, dword [ebp - 0x14]
shl edx, 8
mov eax, dword [ebp + 8]
add edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov dword [edx + 8], 8
jmp 0x101224e7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0xff00
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
and edx, 0x8000
je 0x10122330
mov eax, dword [ebp - 4]
pop edi
add esp, 0x2c
cmp ebp, esp
call fcn.101b9ab0
mov esp, ebp
pop ebp
ret