Function at 0x102810c8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, eax
movzx eax, byte [esi + 0x12]
and eax, 7
xor ebx, ebx
sub eax, ebx
push edi
je 0x102814bf
dec eax
je 0x102811dc
dec eax
dec eax
jne 0x10281543
mov edi, dword [esi + 8]
push 0x2c
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.102f835e
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x64], 0x28
call fcn.102108ad
mov ecx, edi
mov dword [ebp - 0x60], eax
call fcn.102108d2
mov dword [ebp - 0x5c], eax
xor eax, eax
push 0x20
inc eax
mov word [ebp - 0x58], ax
pop eax
push ebx
push ebx
mov word [ebp - 0x56], ax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
push ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10281543
lea eax, [ebp - 0x38]
push eax
push 0xe200b
push 1
push ebx
mov ecx, edi
call fcn.10256839
test eax, eax
je 0x10281179
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10281543
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x102811b9
mov eax, dword [ebp - 0x38]
mov ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 8]
dec ecx
imul ecx, eax
mov eax, dword [ebp - 4]
lea eax, [eax + ecx*4]
push eax
call fcn.102f7ffa
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x34]
jb 0x10281181
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.10256860
cmp edi, ebx
je 0x102811d0
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
and byte [esi + 0x12], 0xf8
mov eax, dword [ebp - 0x14]
jmp 0x10281651
push 0x2c
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.102f835e
movzx eax, word [esi + 6]
mov dword [ebp - 0x8c], eax
movzx eax, word [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0x88], eax
xor eax, eax
push 0x20
inc eax
mov word [ebp - 0x84], ax
pop eax
push ebx
push ebx
mov word [ebp - 0x82], ax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 0x90], 0x28
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10281543
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x1028116b
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], eax
call fcn.102081a4
push ebx
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0xc]
movzx eax, word [esi + 0x10]
push eax
push ebx
push edi
push dword [ebp - 0x60]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
call edi
test eax, eax
jg 0x102812c7
lea ecx, [ebp - 0x60]
call fcn.10207c44
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x18], ebx
je 0x102812b3
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], ebx
je 0x102812bd
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
jmp 0x10281543
cmp dword [ebp - 0x18], ebx
je 0x102813bf
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x102812ff
lea ecx, [ebp - 0x60]
call fcn.10207c44
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x102812ae
push ebx
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 8]
movzx eax, word [esi + 0x10]
push eax
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x60]
call edi
test eax, eax
jg 0x10281334
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
lea ecx, [ebp - 0x60]
call fcn.10207c44
jmp 0x102812ae
movzx edx, word [esi + 0x10]
movzx eax, word [esi + 6]
imul edx, eax
xor ecx, ecx
cmp edx, ebx
mov dword [ebp - 0x20], edx
jle 0x1028135e
mov eax, dword [ebp - 0xc]
add eax, 3
cmp byte [eax], bl
ja 0x10281449
inc ecx
add eax, 4
cmp ecx, edx
jl 0x1028134e
cmp edx, ebx
mov dword [ebp - 4], ebx
jle 0x102813b6
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
shl eax, 2
mov cl, byte [eax + ecx + 2]
not cl
mov byte [eax + edi + 3], cl
mov ecx, dword [ebp - 0xc]
lea edi, [eax + ecx + 2]
mov ecx, dword [ebp - 8]
mov cl, byte [eax + ecx + 2]
not cl
and byte [edi], cl
mov ecx, dword [ebp - 0xc]
lea edi, [eax + ecx + 1]
mov ecx, dword [ebp - 8]
mov cl, byte [eax + ecx + 1]
not cl
and byte [edi], cl
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
add ecx, eax
mov al, byte [eax + edi]
not al
and byte [ecx], al
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x10281365
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
cmp eax, ebx
je 0x102813d2
push eax
call edi
mov dword [esi + 0xc], ebx
test byte [esi + 0x13], 4
je 0x102813e0
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
mov al, byte [esi + 0x12]
or byte [esi + 0x13], 4
and al, 0xd0
or al, 0x10
mov byte [esi + 0x12], al
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov byte [esi + 0x17], 0xff
mov dword [esi + 8], eax
call fcn.102102db
mov al, byte [esi + 0x13]
mov cl, al
shr cl, 1
and cl, 1
cmp byte [ebp + 8], cl
je 0x1028141c
test al, 1
je 0x1028141c
push dword [ebp + 8]
mov ecx, esi
call fcn.10212b0c
lea ecx, [ebp - 0x60]
call fcn.10207c44
cmp dword [ebp - 0x18], ebx
je 0x10281432
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x10], ebx
je 0x1028167c
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1028167c
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, ebx
shl ecx, 2
mov dl, byte [ecx + edx + 2]
lea eax, [ecx + eax + 3]
not dl
and byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edi, [eax + ecx]
movzx edx, byte [edi + 2]
movzx eax, byte [edi + 3]
imul eax, edx
cdq
mov ebx, 0xff
idiv ebx
mov byte [edi + 2], al
mov eax, dword [ebp - 0xc]
lea edi, [eax + ecx]
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 3]
imul eax, edx
cdq
idiv ebx
mov byte [edi + 1], al
mov eax, dword [ebp - 0xc]
add ecx, eax
movzx edx, byte [ecx]
movzx eax, byte [ecx + 3]
imul eax, edx
mov edi, ebx
cdq
idiv edi
mov ebx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov byte [ecx], al
jl 0x1028144c
xor ebx, ebx
jmp 0x102813b6
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.102115cf
test al, al
jne 0x1028165f
push dword [ebp + 8]
mov ecx, esi
call fcn.10212d25
lea ecx, [ebp - 0x128]
push ecx
push 0x54
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x54
jne 0x10281520
cmp word [ebp - 0x102], 0x20
jne 0x10281520
cmp word [ebp - 0x104], 1
jne 0x10281520
cmp dword [ebp - 0x100], ebx
je 0x1028165f
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x1028154a
xor al, al
jmp 0x1028167e
push 0x2c
lea eax, [ebp - 0xd4]
push ebx
push eax
call fcn.102f835e
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov dword [ebp - 0xcc], eax
xor eax, eax
push 0x20
inc eax
mov word [ebp - 0xc8], ax
pop eax
push ebx
push ebx
mov word [ebp - 0xc6], ax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
push ebx
mov dword [ebp - 0xd4], 0x28
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10281543
push ebx
lea ecx, [ebp - 0x60]
call fcn.102081a4
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x60]
call edi
test byte [ebp - 0x5c], 1
jne 0x102815db
or byte [ebp - 0x5c], 1
mov dword [ebp - 0x58], eax
push ebx
lea ecx, [ebp - 0x8c]
call fcn.102081a4
push dword [ebp - 4]
push dword [ebp - 0x8c]
call edi
test byte [ebp - 0x88], 1
jne 0x10281608
or byte [ebp - 0x88], 1
mov dword [ebp - 0x84], eax
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [ebp - 0x8c]
call fcn.10207c44
lea ecx, [ebp - 0x60]
call fcn.10207c44
test byte [esi + 0x13], 4
je 0x1028164e
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x1c]
or byte [esi + 0x13], 4
mov ecx, esi
mov dword [esi + 8], eax
call fcn.102102db
mov al, byte [esi + 0x13]
mov cl, al
shr cl, 1
and cl, 1
cmp byte [ebp + 8], cl
je 0x1028167c
test al, 1
je 0x1028167c
push dword [ebp + 8]
mov ecx, esi
call fcn.10212b0c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4