Function at 0x5598a8
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.00559868
pop ecx
mov esi, eax
lea edi, [ebx + 4]
mov eax, dword [ebx + 0x28]
call fcn.00653548
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.00653538
mov dword [ebp - 8], eax
mov eax, esi
sar eax, 1
jns 0x5598fb
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 0x55991d
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
jmp 0x5599a5
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 0x559996
lea ecx, [ebp - 0x20]
mov edx, ebx
xor eax, eax
call fcn.0064d54c
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.00558a70
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.00653548
sub ebx, eax
cmp ebx, dword [ebp - 4]
jge 0x5599a5
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 0x559ae4
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x559a13
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x5599f2
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.00619bb0
jmp 0x559b42
cmp eax, 0x80000000
jne 0x559a97
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 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.0064d564
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 0x559a1f
jmp 0x559b42
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x559ac0
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 0x559b42
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 0x559b42
cmp dword [edi + 4], 0xff
jne 0x559b18
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x559afa
adc eax, 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
push 2
mov eax, dword [0x66fdd4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0062325c
jmp 0x559b42
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x559b2b
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x559b31
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
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