Function at 0x41b11f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x45fb14
call fcn.0045d320
sub esp, 0x9c
push esi
mov esi, ecx
push 0x2000
call fcn.00418776
mov al, byte [esi + 0x3a67]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 0x11], al
mov ax, word [esi + 0x3a61]
mov word [ebp - 0x34], ax
mov al, byte [esi + 0x3a68]
mov byte [ebp - 0x10], al
mov ax, word [esi + 0x3a63]
mov word [ebp - 0x2c], ax
mov al, byte [esi + 0x3a69]
mov byte [ebp - 0xf], al
mov ax, word [esi + 0x3a65]
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea edx, [eax + ecx]
cmp eax, edx
mov dword [ebp - 0x68], edx
jge 0x41b671
mov edx, dword [ebp + 0x10]
lea eax, [esi + 0xdc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
push ebx
add eax, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x54]
call fcn.0043789c
mov ecx, dword [esi + 0x38e4]
mov eax, dword [esi + 0x38e8]
and dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x38ec]
mov ebx, dword [esi + 0x38e8]
push 0
push eax
push ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp eax, dword [ebp - 0x58]
mov dword [ebp + 0xc], eax
jge 0x41b638
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
jmp 0x41b215
mov ecx, dword [ebp - 0x4c]
push 0x10
pop eax
cmp ecx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x14], eax
jge 0x41b225
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x44]
cmp ecx, eax
jge 0x41b22f
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0xe]
push 1
push eax
mov ecx, esi
call fcn.004186a8
test byte [ebp - 0xe], 1
je 0x41b34d
mov eax, dword [ebp - 0x1c]
lea ebx, [esi + 0xbc]
imul eax, dword [ebp + 0x14]
shl eax, 2
push eax
mov ecx, esi
push dword [ebx]
call fcn.004186a8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
jge 0x41b624
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 0x50], ecx
jmp 0x41b28b
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x50]
mov dword [ebp + 0x14], eax
jge 0x41b339
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x38], eax
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
xor edx, edx
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
imul eax, eax, 0xff
div ecx
mov ecx, dword [ebp - 0x40]
movzx edx, al
mov eax, ebx
or dh, 2
shr eax, cl
movzx ecx, word [ebp - 0x2c]
and eax, ecx
imul eax, eax, 0xff
shl edx, 8
mov ebx, edx
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x38]
xor edx, edx
movzx eax, al
or ebx, eax
mov eax, dword [ebp - 0x20]
shl ebx, 8
mov eax, dword [eax]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
div ecx
movzx eax, al
or ebx, eax
push ebx
push dword [ebp - 0x18]
push dword [ebp + 0x14]
push dword [esi + 0x38e8]
call dword [sym.imp.GDI32.dll_SetPixelV]
mov ebx, dword [ebp - 0x20]
add ebx, 4
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], ebx
cmp eax, dword [ebp - 0x50]
jl 0x41b2ac
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jl 0x41b288
jmp 0x41b624
test byte [ebp - 0xe], 2
je 0x41b3c3
lea eax, [ebp - 0x48]
push 4
push eax
mov ecx, esi
call fcn.004186a8
mov eax, dword [ebp - 0x48]
mov cl, byte [ebp - 0xf]
movzx ebx, word [ebp - 0x30]
shr eax, cl
xor edx, edx
mov cl, byte [ebp - 0x10]
and eax, ebx
imul eax, eax, 0xff
div ebx
xor edx, edx
movzx ebx, al
mov eax, dword [ebp - 0x48]
or bh, 2
shr eax, cl
movzx ecx, word [ebp - 0x2c]
and eax, ecx
imul eax, eax, 0xff
div ecx
mov cl, byte [ebp - 0x11]
xor edx, edx
shl ebx, 8
movzx eax, al
or ebx, eax
mov eax, dword [ebp - 0x48]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
div ecx
shl ebx, 8
movzx eax, al
or ebx, eax
mov dword [ebp - 0x5c], ebx
jmp 0x41b3c6
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
add ecx, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], eax
add ecx, eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x8c], ecx
push ebx
push eax
mov ecx, esi
call fcn.00416091
test byte [ebp - 0xe], 4
je 0x41b471
lea eax, [ebp - 0x3c]
push 4
push eax
mov ecx, esi
call fcn.004186a8
mov eax, dword [ebp - 0x3c]
mov cl, byte [ebp - 0xf]
movzx edi, word [ebp - 0x30]
shr eax, cl
xor edx, edx
mov cl, byte [ebp - 0x10]
movzx ebx, word [ebp - 0x2c]
and eax, edi
imul eax, eax, 0xff
div edi
xor edx, edx
movzx edi, al
mov eax, dword [ebp - 0x3c]
or edi, 0x200
shr eax, cl
mov cl, byte [ebp - 0x11]
shl edi, 8
and eax, ebx
imul eax, eax, 0xff
div ebx
xor edx, edx
movzx eax, al
or edi, eax
mov eax, dword [ebp - 0x3c]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
div ecx
shl edi, 8
movzx eax, al
or edi, eax
test byte [ebp - 0xe], 8
je 0x41b624
lea eax, [ebp - 0xd]
push 1
push eax
mov ecx, esi
call fcn.004186a8
test byte [ebp - 0xe], 0x10
mov ebx, dword [esi + 0xbc]
movzx eax, byte [ebp - 0xd]
je 0x41b5a0
lea eax, [eax + eax*2]
mov ecx, esi
shl eax, 1
push eax
push ebx
call fcn.004186a8
and dword [ebp + 0x14], 0
cmp byte [ebp - 0xd], 0
jbe 0x41b624
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x1c]
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
xor edx, edx
imul eax, eax, 0xff
div ecx
mov ecx, dword [ebp - 0x40]
xor edx, edx
movzx edi, al
mov eax, dword [ebx]
or edi, 0x200
shr eax, cl
movzx ecx, word [ebp - 0x2c]
and eax, ecx
imul eax, eax, 0xff
div ecx
mov ecx, dword [ebp - 0x38]
xor edx, edx
shl edi, 8
movzx eax, al
or edi, eax
mov eax, dword [ebx]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
add ebx, 4
imul eax, eax, 0xff
div ecx
shl edi, 8
movzx eax, al
or edi, eax
movzx eax, byte [ebx]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ebx
mov edx, eax
mov dword [ebp - 0x20], ecx
push edi
movzx eax, byte [ebx]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ecx
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
add eax, edx
inc ebx
mov dword [ebp - 0x88], eax
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
add eax, ecx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
call fcn.00416091
movzx eax, byte [ebp - 0xd]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], eax
jl 0x41b4cd
jmp 0x41b624
shl eax, 1
push eax
push ebx
mov ecx, esi
call fcn.004186a8
and dword [ebp + 0x14], 0
cmp byte [ebp - 0xd], 0
jbe 0x41b624
movzx eax, byte [ebx]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ebx
mov edx, eax
mov dword [ebp - 0x20], ecx
push edi
movzx eax, byte [ebx]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ecx
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
add eax, edx
inc ebx
mov dword [ebp - 0xa8], eax
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa4], eax
add eax, ecx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
call fcn.00416091
movzx eax, byte [ebp - 0xd]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], eax
jl 0x41b5b5
add dword [ebp + 0xc], 0x10
sub dword [ebp - 0x4c], 0x10
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x58]
jl 0x41b212
lea ecx, [ebp - 0x78]
call fcn.004160d3
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x54]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x64], eax
call fcn.004378a4
add dword [ebp - 0x24], 0x10
sub dword [ebp - 0x44], 0x10
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x68]
jl 0x41b1ab
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x10