Function at 0x559eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov eax, dword [edi + 4]
cmp eax, 0x80000000
jne 0x559ecc
xor esi, esi
jmp 0x559ef6
cmp eax, 0xff
jne 0x559eda
mov esi, 0xa
jmp 0x559edc
mov esi, dword [edi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
mov edx, esi
call fcn.00565f68
call fcn.0065b2a8
mov esi, eax
mov eax, dword [ebx + 0x28]
call fcn.0065b29c
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.0065b28c
mov dword [ebp - 8], eax
mov eax, esi
sar eax, 1
jns 0x559f2d
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 0x559f4f
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
jmp 0x559fd7
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 + 0x146]
dec eax
sub al, 2
jae 0x559fc8
lea ecx, [ebp - 0x20]
mov edx, ebx
xor eax, eax
call fcn.006561ec
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.005590a4
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.0065b29c
sub ebx, eax
cmp ebx, dword [ebp - 4]
jge 0x559fd7
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 + 0x3ef], 0
je 0x55a116
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x55a045
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x55a024
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.00623320
jmp 0x55a185
cmp eax, 0x80000000
jne 0x55a0c9
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.00660d20
mov edx, eax
mov eax, dword [0x6720e4]
mov eax, dword [eax]
call fcn.0062e240
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.00656204
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 0x55a051
jmp 0x55a185
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x55a0f2
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 0x55a185
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 0x55a185
cmp dword [edi + 4], 0xff
jne 0x55a14a
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sar eax, 1
jns 0x55a12c
adc eax, 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
push 2
mov eax, dword [0x67278c]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0062c918
jmp 0x55a185
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x55a15d
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x55a174
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x20]
lea edx, [ebp - 0x10]
mov eax, dword [0x67278c]
mov eax, dword [eax]
call fcn.0062c7bc
jmp 0x55a185
lea edx, [ebp - 0x10]
mov ecx, dword [0x67278c]
mov ecx, dword [ecx]
xchg ecx, eax
call fcn.0062c7bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret