Function at 0x553e0c
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.00553dcc
pop ecx
mov esi, eax
lea edi, [ebx + 4]
mov eax, dword [ebx + 0x28]
call fcn.00652c64
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.00652c54
mov dword [ebp - 8], eax
mov eax, esi
sar eax, 1
jns 0x553e5f
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 0x553e81
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
jmp 0x553f09
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 0x553efa
lea ecx, [ebp - 0x20]
mov edx, ebx
xor eax, eax
call fcn.0064d660
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.00552fd4
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.00652c64
sub ebx, eax
cmp ebx, dword [ebp - 4]
jge 0x553f09
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 0x554048
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x553f77
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x553f56
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.0061971c
jmp 0x5540a6
cmp eax, 0x80000000
jne 0x553ffb
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.0065855c
mov edx, eax
mov eax, dword [0x6691b4]
mov eax, dword [eax]
call fcn.006247ec
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.0064d678
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 0x553f83
jmp 0x5540a6
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x554024
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 0x5540a6
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 0x5540a6
cmp dword [edi + 4], 0xff
jne 0x55407c
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x55405e
adc eax, 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
push 2
mov eax, dword [0x669964]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00622f3c
jmp 0x5540a6
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x55408f
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x554095
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
lea edx, [ebp - 0x10]
mov ecx, dword [0x669964]
mov ecx, dword [ecx]
xchg ecx, eax
call fcn.00622de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret