Function at 0x559b4c
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.00559868
pop ecx
mov esi, eax
lea edi, [ebx + 4]
mov eax, esi
sar eax, 1
jns 0x559b71
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.00653548
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.00653538
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jge 0x559bbe
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
jmp 0x559bf1
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 0x559bf1
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 0x559d30
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x559c5f
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 0x559c49
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.00619bf8
jmp 0x559d9f
cmp eax, 0x80000000
jne 0x559ce3
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.00658ebc
mov edx, eax
mov eax, dword [0x66eb44]
mov eax, dword [eax]
call fcn.00624af8
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.0064d564
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 0x559c6b
jmp 0x559d9f
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x559d0c
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 0x559d9f
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 0x559d9f
cmp dword [edi + 4], 0xff
jne 0x559d64
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 0x559d53
adc edx, 0
mov eax, dword [0x66fdd4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.00623370
jmp 0x559d9f
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x559d77
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x559d8e
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x20]
lea edx, [ebp - 0x10]
mov eax, dword [0x66fdd4]
mov eax, dword [eax]
call fcn.00623100
jmp 0x559d9f
lea edx, [ebp - 0x10]
mov ecx, dword [0x66fdd4]
mov ecx, dword [ecx]
xchg ecx, eax
call fcn.00623100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret