Function at 0x41abc6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x45faf0
call fcn.0045d320
sub esp, 0x9c
push esi
mov esi, ecx
push 0x1000
call fcn.00418776
mov al, byte [esi + 0x3a67]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 0x10], al
mov ax, word [esi + 0x3a61]
mov word [ebp - 0x38], ax
mov al, byte [esi + 0x3a68]
mov byte [ebp - 0xf], al
mov ax, word [esi + 0x3a63]
mov word [ebp - 0x30], ax
mov al, byte [esi + 0x3a69]
mov byte [ebp - 0x11], al
mov ax, word [esi + 0x3a65]
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea edx, [eax + ecx]
cmp eax, edx
mov dword [ebp - 0x68], edx
jge 0x41b110
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 0x41b0d7
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
jmp 0x41acbc
mov ecx, dword [ebp - 0x4c]
push 0x10
pop eax
cmp ecx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x14], eax
jge 0x41accc
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x44]
cmp ecx, eax
jge 0x41acd6
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 0x41adf1
mov eax, dword [ebp - 0x1c]
lea ebx, [esi + 0xbc]
imul eax, dword [ebp + 0x14]
shl eax, 1
push eax
mov ecx, esi
push dword [ebx]
call fcn.004186a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], ecx
jge 0x41b0c3
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 0x50], ecx
jmp 0x41ad31
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x50]
mov dword [ebp + 0x14], eax
jge 0x41addd
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x3c], eax
movzx ebx, word [ebx]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x40]
movzx edx, al
mov eax, ebx
or dh, 2
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
imul eax, eax, 0xff
shl edx, 8
mov ebx, edx
cdq
idiv ecx
mov ecx, dword [ebp - 0x3c]
movzx eax, al
or ebx, eax
mov eax, dword [ebp - 0x24]
shl ebx, 8
movzx eax, word [eax]
shr eax, cl
movzx ecx, word [ebp - 0x38]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv 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 - 0x24]
inc ebx
inc ebx
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], ebx
cmp eax, dword [ebp - 0x50]
jl 0x41ad52
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x41ad2e
jmp 0x41b0c3
test byte [ebp - 0xe], 2
je 0x41ae67
lea eax, [ebp - 0x26]
push 2
push eax
mov ecx, esi
call fcn.004186a8
movzx eax, word [ebp - 0x26]
mov cl, byte [ebp - 0x11]
movzx ebx, word [ebp - 0x34]
shr eax, cl
mov cl, byte [ebp - 0xf]
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
movzx ebx, al
movzx eax, word [ebp - 0x26]
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
or bh, 2
imul eax, eax, 0xff
cdq
idiv ecx
mov cl, byte [ebp - 0x10]
shl ebx, 8
movzx eax, al
or ebx, eax
movzx eax, word [ebp - 0x26]
shr eax, cl
movzx ecx, word [ebp - 0x38]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
shl ebx, 8
movzx eax, al
or ebx, eax
mov dword [ebp - 0x5c], ebx
jmp 0x41ae6a
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 - 0x20]
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 0x41af13
lea eax, [ebp - 0x46]
push 2
push eax
mov ecx, esi
call fcn.004186a8
movzx ebx, word [ebp - 0x46]
mov cl, byte [ebp - 0x11]
mov eax, ebx
movzx edi, word [ebp - 0x34]
shr eax, cl
mov cl, byte [ebp - 0xf]
and eax, edi
imul eax, eax, 0xff
cdq
idiv edi
movzx edi, al
mov eax, ebx
or edi, 0x200
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov cl, byte [ebp - 0x10]
shl edi, 8
movzx eax, al
or edi, eax
mov eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x38]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
shl edi, 8
movzx eax, al
or edi, eax
test byte [ebp - 0xe], 8
je 0x41b0c3
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 0x41b03f
shl eax, 2
push eax
push ebx
mov ecx, esi
call fcn.004186a8
and dword [ebp + 0x14], 0
cmp byte [ebp - 0xd], 0
jbe 0x41b0c3
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebx]
mov ecx, dword [ebp - 0x1c]
shr eax, cl
movzx ecx, word [ebp - 0x34]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x40]
movzx edi, al
movzx eax, word [ebx]
shr eax, cl
movzx ecx, word [ebp - 0x30]
and eax, ecx
or edi, 0x200
imul eax, eax, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x3c]
shl edi, 8
movzx eax, al
or edi, eax
movzx eax, word [ebx]
shr eax, cl
movzx ecx, word [ebp - 0x38]
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
shl edi, 8
movzx eax, al
or edi, eax
inc ebx
inc ebx
push edi
movzx eax, byte [ebx]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ebx
mov edx, eax
mov dword [ebp - 0x24], ecx
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 - 0x20]
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x24]
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 - 0x2c]
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 0x41af6d
jmp 0x41b0c3
shl eax, 1
push eax
push ebx
mov ecx, esi
call fcn.004186a8
and dword [ebp + 0x14], 0
cmp byte [ebp - 0xd], 0
jbe 0x41b0c3
movzx eax, byte [ebx]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ebx
mov edx, eax
mov dword [ebp - 0x24], 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 - 0x20]
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x24]
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 - 0x2c]
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 0x41b054
add dword [ebp + 0xc], 0x10
sub dword [ebp - 0x4c], 0x10
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x58]
jl 0x41acb9
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 - 0x20], 0x10
sub dword [ebp - 0x44], 0x10
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x68]
jl 0x41ac52
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x10