Function at 0x55cb04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, ebx
call fcn.0055c820
pop ecx
mov esi, eax
lea edi, [ebx + 4]
mov eax, esi
sar eax, 1
jns 0x55cb29
adc eax, 0
push eax
mov eax, dword [ebx + 0x24]
pop edx
sub eax, edx
mov dword [ebp - 0x10], eax
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x28]
call fcn.00656b80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x4c]
mov edx, dword [ebx + 0x2c]
call fcn.00656b70
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jge 0x55cb76
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
jmp 0x55cba9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x48]
cmp eax, dword [ebp - 8]
jge 0x55cba9
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, eax
mov dword [ebp - 8], edx
sub edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x3f8], 0
je 0x55cce8
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x55cc17
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
sar edx, 1
jns 0x55cc01
adc edx, 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x18]
mov ecx, dword [ebp - 0xc]
call fcn.0061d130
jmp 0x55cd57
cmp eax, 0x80000000
jne 0x55cc9b
mov edi, 0xfffffffc
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov esi, eax
add esi, esi
lea esi, [esi + esi*2]
add esi, 0xe4
mov ebx, esi
mov ecx, ebx
mov edx, ebx
mov eax, ebx
call fcn.0065c4f4
mov edx, eax
mov eax, dword [0x671bac]
mov eax, dword [eax]
call fcn.00627fd4
push eax
call sub.gdi32.dll_CreateSolidBrush
mov esi, eax
push esi
mov eax, dword [ebp - 4]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x10]
add ebx, edi
mov ecx, ebx
dec ecx
mov edx, dword [ebp - 0xc]
inc edx
mov eax, ebx
call fcn.00650bd4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.user32.dll_FillRect
push esi
call sub.gdi32.dll_DeleteObject
inc edi
cmp edi, 5
jne 0x55cc23
jmp 0x55cd57
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x55ccc4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.user32.dll_FillRect
jmp 0x55cd57
push eax
call sub.gdi32.dll_CreateSolidBrush
mov esi, eax
push esi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.user32.dll_FillRect
push esi
call sub.gdi32.dll_DeleteObject
jmp 0x55cd57
cmp dword [edi + 4], 0xff
jne 0x55cd1c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
push 2
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
sar edx, 1
jns 0x55cd0b
adc edx, 0
mov eax, dword [0x672e38]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.006268b0
jmp 0x55cd57
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x55cd2f
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x55cd46
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x20]
lea edx, [ebp - 0x10]
mov eax, dword [0x672e38]
mov eax, dword [eax]
call fcn.00626640
jmp 0x55cd57
lea edx, [ebp - 0x10]
mov ecx, dword [0x672e38]
mov ecx, dword [ecx]
xchg ecx, eax
call fcn.00626640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret