Function at 0x55c860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
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, dword [ebx + 0x28]
call fcn.00656b80
mov dword [ebp - 0x10], eax
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]
mov edx, dword [ebx + 0x2c]
call fcn.00656b70
mov dword [ebp - 8], eax
mov eax, esi
sar eax, 1
jns 0x55c8b3
adc eax, 0
push eax
mov eax, dword [ebx + 0x24]
pop edx
sub eax, edx
mov dword [ebp - 0xc], eax
add eax, esi
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jge 0x55c8d5
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
jmp 0x55c95d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
sub ebx, dword [eax + 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
mov al, byte [eax + 0x14e]
dec eax
sub al, 2
jae 0x55c94e
lea ecx, [ebp - 0x20]
mov edx, ebx
xor eax, eax
call fcn.00650bbc
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
call fcn.0055ba28
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x54]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx - 4]
mov ecx, dword [ecx + 0x30]
sub edx, dword [ecx + 0x4c]
sub eax, edx
call fcn.00656b80
sub ebx, eax
cmp ebx, dword [ebp - 4]
jge 0x55c95d
mov eax, ebx
mov dword [ebp - 4], eax
sub eax, esi
mov dword [ebp - 0xc], eax
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 0x55ca9c
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x55c9cb
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x55c9aa
adc eax, 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0061d0e8
jmp 0x55cafa
cmp eax, 0x80000000
jne 0x55ca4f
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 ebx, dword [ebp - 0xc]
add ebx, edi
mov eax, ebx
inc eax
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
dec ecx
mov edx, ebx
mov eax, dword [ebp - 0x10]
inc eax
call fcn.00650bd4
lea eax, [ebp - 0x30]
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 0x55c9d7
jmp 0x55cafa
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x55ca78
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 0x55cafa
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 0x55cafa
cmp dword [edi + 4], 0xff
jne 0x55cad0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x55cab2
adc eax, 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
push 2
mov eax, dword [0x672e38]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0062679c
jmp 0x55cafa
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x55cae3
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x55cae9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
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