Function at 0x101c2ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10200d8d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x103b9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebx]
mov ecx, esi
push 0x18
mov dword [ebp - 0x30], 0
mov eax, dword [esi]
call dword [eax]
mov dword [ebp - 0x54], eax
mov dword [eax], esi
mov dword [ebp - 4], 0
mov ecx, eax
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
call fcn.10199b10
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx]
mov dword [ebp - 0x4c], edi
mov edx, dword [edi + 0x10]
mov dword [edi], ecx
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x101c2b81
mov dword [ebp - 4], 2
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
mov dword [ebp - 4], 0xffffffff
push dword [ebx + 0x40]
mov eax, dword [ebx]
push dword [ebx + 0x3c]
push str.Generic_region_decoding_procedure:_Create_Image_Failed_with_width___d__height___d_n
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 0x3c]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
lea ebx, [esi + 7]
shr ebx, 3
lea ecx, [eax + eax]
dec ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebx*8]
sub esi, eax
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x40]
and eax, 0x7fffffff
mov dword [ebp - 0x54], eax
mov eax, 0
mov dword [ebp - 0x20], eax
jbe 0x101c2ed5
mov edi, edx
mov edx, dword [ebp - 0x48]
sub edi, edx
mov dword [ebp - 0x34], edx
sub dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edi
lea ecx, [ebx + edx]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
cmp dword [esi + 0x48], 0
je 0x101c2bfe
mov eax, dword [ebp + 0xc]
mov ecx, edx
add eax, 0x4d928
push eax
call fcn.101c29e0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
xor ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
jmp 0x101c2c01
mov ecx, dword [ebp - 0x30]
cmp ecx, 1
jne 0x101c2c59
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x101c2eb4
mov edx, dword [ebp - 0x20]
lea esi, [edx - 1]
test esi, esi
js 0x101c2c41
cmp esi, dword [ecx + 8]
jge 0x101c2c41
mov ecx, dword [ecx + 0xc]
mov edx, ecx
push ecx
imul ecx, dword [ebp - 0x20]
imul edx, esi
add ecx, eax
add edx, eax
call fcn.100a43b0
add esp, 4
jmp 0x101c2eb1
mov ecx, dword [ecx + 0xc]
push ecx
imul ecx, edx
xor edx, edx
add ecx, eax
call fcn.100a44c0
add esp, 4
jmp 0x101c2eb1
cmp eax, 1
jbe 0x101c2db7
mov eax, dword [ebp - 0x34]
lea ebx, [edi + 1]
movzx ecx, byte [edi]
mov dword [ebp - 0x40], 0
movzx esi, byte [eax + edi]
add eax, ebx
shl esi, 6
mov dword [ebp - 0x38], eax
mov edi, esi
mov eax, ecx
and edi, 0xf800
and eax, 0x7f0
or edi, eax
cmp dword [ebp - 0x18], 0
jle 0x101c2d32
nop dword [eax]
mov eax, dword [ebp - 0x38]
inc dword [ebp - 0x38]
shl esi, 2
shl ecx, 8
movzx eax, byte [eax]
or esi, eax
movzx eax, byte [ebx]
inc ebx
shl esi, 6
or ecx, eax
mov dword [ebp - 0x50], ebx
xor al, al
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x14], ecx
mov ebx, 7
mov byte [ebp - 0xd], al
nop dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, edx
lea eax, [eax + edi*8]
push eax
call fcn.101c29e0
mov ecx, ebx
mov dl, al
shl dl, cl
and edi, 0x7bf7
or byte [ebp - 0xd], dl
add edi, edi
mov edx, dword [ebp - 0x14]
shr esi, cl
shr edx, cl
and esi, 0x800
and edx, 0x10
or esi, edx
mov edx, dword [ebp + 8]
or edi, esi
mov esi, dword [ebp - 0x3c]
or edi, eax
sub ebx, 1
jns 0x101c2cd0
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov al, byte [ebp - 0xd]
mov ebx, dword [ebp - 0x50]
mov byte [edx + ecx], al
inc edx
cmp edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp + 8]
jl 0x101c2ca0
shl ecx, 8
xor al, al
shl esi, 8
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0xd], al
mov dword [ebp - 0x3c], 0
jle 0x101c2ea5
mov dword [ebp - 0x38], 7
nop dword [eax + eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + edi*8]
push eax
call fcn.101c29e0
mov ecx, dword [ebp - 0x38]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dl, bl
dec dword [ebp - 0x38]
and edi, 0x7bf7
shl dl, cl
add edi, edi
or byte [ebp - 0xd], dl
mov ecx, 7
sub ecx, dword [ebp - 0x3c]
mov edx, esi
shr eax, cl
shr edx, cl
and eax, 0x10
and edx, 0x800
or edx, eax
mov eax, dword [ebp - 0x3c]
or edi, edx
inc eax
or edi, ebx
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x24]
jl 0x101c2d60
jmp 0x101c2ea2
mov ecx, edi
and eax, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], eax
je 0x101c2dd0
mov ecx, dword [ebp - 0x2c]
movzx edi, byte [edi]
inc ecx
mov dword [ebp - 0x3c], ecx
jmp 0x101c2dd2
xor edi, edi
mov esi, edi
mov dword [ebp - 0x40], 0
and esi, 0x7f0
test ebx, ebx
jle 0x101c2e50
test eax, eax
je 0x101c2df5
movzx eax, byte [ecx]
shl edi, 8
or edi, eax
inc ecx
mov dword [ebp - 0x3c], ecx
xor al, al
mov ebx, 7
mov byte [ebp - 0xd], al
nop
mov eax, dword [ebp + 0xc]
mov ecx, edx
lea eax, [eax + esi*8]
push eax
call fcn.101c29e0
mov ecx, ebx
mov dl, al
shl dl, cl
and esi, 0x7bf7
or byte [ebp - 0xd], dl
add esi, esi
mov edx, edi
shr edx, cl
and edx, 0x10
or esi, edx
mov edx, dword [ebp + 8]
or esi, eax
sub ebx, 1
jns 0x101c2e00
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x28]
mov al, byte [ebp - 0xd]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
jl 0x101c2de5
xor al, al
shl edi, 8
xor ebx, ebx
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x24], ebx
jle 0x101c2ea5
mov dword [ebp - 0x3c], 7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*8]
push eax
call fcn.101c29e0
mov ecx, dword [ebp - 0x3c]
mov dl, al
dec dword [ebp - 0x3c]
and esi, 0x7bf7
shl dl, cl
add esi, esi
or byte [ebp - 0xd], dl
mov ecx, 7
sub ecx, ebx
mov edx, edi
shr edx, cl
inc ebx
and edx, 0x10
or esi, edx
or esi, eax
cmp ebx, dword [ebp - 0x24]
jl 0x101c2e66
mov al, byte [ebp - 0xd]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x18]
mov byte [ecx + edi], al
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
add edi, eax
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x54]
jb 0x101c2bd8
mov edi, dword [ebp - 0x4c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8