Function at 0x10007de6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4f0
mov eax, dword [0x1001e7e8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x434], ebx
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x430], edi
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov eax, dword [ebp - 0x434]
push 2
push eax
mov dword [ebp - 0x41c], eax
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov dword [ebp - 0x42c], eax
sub eax, ecx
cdq
xor eax, edx
mov dword [ebp - 0x414], ecx
sub eax, edx
cdq
and edx, 3
lea ecx, [edx + eax]
mov eax, 0x100
sar ecx, 2
dec ecx
mov dword [ebp - 0x428], ecx
cmp ecx, eax
jle 0x10007e6f
mov dword [ebp - 0x428], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x418], eax
sub eax, dword [esi + 0xc]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1000], 1
jne 0x10007ec4
mov edx, dword [ebp - 0x414]
lea esi, [edi + 0x4d8]
mov eax, dword [ebp - 0x418]
lea edi, [ebp - 0x40c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x42c]
jmp 0x10007f7e
push 0x14
mov ecx, ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x420], eax
pop edi
mov esi, ebx
cmp ecx, 0xec
jl 0x10007ef9
mov edx, eax
movzx ecx, byte [edx + 0x400]
movzx eax, byte [edx]
add ecx, eax
shr ecx, 1
add esi, ecx
dec edx
sub edi, 1
jne 0x10007ee1
jmp 0x10007f13
mov edi, ebx
movzx edx, byte [eax + edi + 0x400]
movzx ecx, byte [eax + edi]
add edx, ecx
shr edx, 1
add esi, edx
inc edi
cmp edi, 0x14
jl 0x10007efb
mov eax, esi
mov ecx, dword [ebp - 0x410]
cdq
push 0x14
pop edi
idiv edi
mov dword [ebp + ecx*4 - 0x40c], eax
inc ecx
mov eax, dword [ebp - 0x420]
inc eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], eax
cmp ecx, 0xff
jl 0x10007ed5
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x10], eax
mov eax, 0xd8
mov ecx, dword [ebp + eax - 0x4e4]
mov edi, dword [eax + edx]
cmp edi, ecx
jl 0x10007f69
lea ecx, [edi - 2]
mov dword [edx + eax], ecx
add eax, 4
cmp eax, 0x4d8
jl 0x10007f58
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x424]
add eax, 3
sub ecx, edx
mov dword [ebp - 0x490], eax
push ecx
lea eax, [ebp - 0x454]
mov dword [ebp - 0x48c], ecx
push eax
lea eax, [ebp - 0x458]
mov dword [ebp - 0x454], 0xff1b3097
push eax
lea eax, [ebp - 0x494]
mov dword [ebp - 0x458], 0xff6babdf
push eax
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x494], edx
mov dword [ebp - 0x488], edi
call fcn.10010cac
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x4a0], eax
mov eax, dword [esi + 8]
sub eax, ecx
mov dword [ebp - 0x4a4], ecx
mov dword [ebp - 0x49c], eax
lea eax, [ebp - 0x45c]
push ecx
push eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x45c], 0xbaffffff
push eax
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x460], 0x60ffffff
push eax
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x498], edi
call fcn.100072bb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
sub eax, edi
mov dword [ebp - 0x4b0], eax
mov eax, dword [esi + 8]
sub eax, ecx
mov dword [ebp - 0x4b4], ecx
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x464]
push ecx
push eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x464], 0x8c6babdf
push eax
lea eax, [ebp - 0x4b4]
mov dword [ebp - 0x478], 0x141b3097
push eax
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x4a8], edi
call fcn.100072bb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
sub eax, edi
mov dword [ebp - 0x4c0], eax
mov eax, dword [esi + 8]
sub eax, ecx
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x468]
push ecx
push eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x468], 0xffffff
push eax
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x46c], 0x3cffffff
push eax
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 0x4b8], edi
call fcn.100072bb
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], ebx
push eax
push 0xff6babdf
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov eax, dword [ebp - 0x438]
fld dword [0x10003728]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x474]
push eax
push ebx
push ecx
fstp dword [esp]
push dword [ebp - 0x480]
mov dword [ebp - 0x474], ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePen2]
fld1
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x450]
push eax
push ebx
push ecx
fstp dword [esp]
push dword [ebp - 0x4ec]
mov dword [ebp - 0x450], ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePen2]
fld1
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x448]
push eax
push ebx
push ecx
fstp dword [esp]
push 0x80ffffff
mov dword [ebp - 0x448], ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
fld1
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x440]
push eax
push ebx
push ecx
fstp dword [esp]
push dword [ebp - 0x4d4]
mov dword [ebp - 0x440], ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePen2]
mov edi, ebx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x420], edi
cmp dword [ebp - 0x428], ebx
jle 0x1000838c
fild dword [ebp - 0x428]
fstp dword [ebp - 0x414]
fld dword [ebp - 0x414]
fdivr qword [0x100037d8]
fst qword [ebp - 0x4cc]
fild dword [ebp - 0x424]
fstp dword [ebp - 0x414]
fld dword [ebp - 0x414]
fstp dword [ebp - 0x414]
fld qword [0x100035c8]
fld dword [ebp - 0x414]
jmp 0x100081fc
mov edi, dword [ebp - 0x420]
fild dword [ebp - 0x420]
fstp dword [ebp - 0x418]
fld dword [ebp - 0x418]
fmulp st(3)
fxch st(2)
call sub.msvcrt.dll__ftol2_sse
push 0x24
pop ecx
sub ecx, eax
mov eax, 0xff
mov dword [ebp - 0x418], ecx
cmp ecx, eax
jle 0x10008233
mov ecx, eax
mov dword [ebp - 0x418], eax
fild dword [ebp + ecx*4 - 0x40c]
fstp dword [ebp - 0x410]
fld dword [ebp - 0x410]
fmul st(1)
fmul st(2)
call sub.msvcrt.dll__ftol2_sse
mov ecx, dword [ebp - 0x430]
mov ebx, edi
mov edi, dword [esi]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x418]
shl ebx, 2
add edi, ebx
fild dword [ecx + eax*4 + 0xd8]
fstp dword [ebp - 0x418]
fmul dword [ebp - 0x418]
fmulp st(1)
call sub.msvcrt.dll__ftol2_sse
mov esi, dword [esi + 0xc]
push 2
sub esi, eax
sub esi, dword [ebp - 0x424]
push 3
sub esi, 3
push esi
push edi
push dword [ebp - 0x42c]
push dword [ebp - 0x41c]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push 2
push 3
push esi
push edi
push dword [ebp - 0x448]
push dword [ebp - 0x41c]
call dword [sym.imp.gdiplus.dll_GdipDrawRectangleI]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x410]
push eax
push 3
mov edi, dword [esi]
mov esi, dword [esi + 0xc]
add edi, ebx
sub esi, eax
sub esi, dword [ebp - 0x424]
dec esi
push esi
push edi
push dword [ebp - 0x480]
push dword [ebp - 0x41c]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push dword [ebp - 0x410]
push 3
push esi
push edi
push dword [ebp - 0x450]
push dword [ebp - 0x41c]
call dword [sym.imp.gdiplus.dll_GdipDrawRectangleI]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
mov esi, dword [eax + 0xc]
add edi, ebx
mov ebx, dword [ebp - 0x410]
sub esi, dword [ebp - 0x424]
push ebx
push 3
inc esi
push esi
push edi
push dword [ebp - 0x4e0]
push dword [ebp - 0x41c]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push ebx
push 3
push esi
push edi
push dword [ebp - 0x440]
mov edi, dword [ebp - 0x41c]
push edi
call dword [sym.imp.gdiplus.dll_GdipDrawRectangleI]
mov eax, dword [ebp - 0x420]
fld qword [ebp - 0x4cc]
inc eax
fld qword [0x100035c8]
fld dword [ebp - 0x414]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
cmp eax, dword [ebp - 0x428]
jl 0x100081f6
fstp st(2)
xor ebx, ebx
fstp st(1)
fstp st(0)
jmp 0x10008392
mov edi, dword [ebp - 0x41c]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1000], 1
je 0x100083c8
mov edx, dword [ebp - 0x430]
add edx, 0x4d8
movzx ecx, byte [ebx + esi + 0x400]
movzx eax, byte [ebx + esi]
add ecx, eax
shr ecx, 1
inc ebx
mov dword [edx], ecx
lea edx, [edx + 4]
cmp ebx, 0x100
jl 0x100083aa
push dword [ebp - 0x440]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [ebp - 0x448]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [ebp - 0x450]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [ebp - 0x474]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [ebp - 0x42c]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [ebp - 0x4d4]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [ebp - 0x4e0]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [ebp - 0x4ec]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [ebp - 0x480]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push edi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001bdd0
mov esp, ebp
pop ebp
ret 0xc