Function at 0x55a18c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov eax, dword [edi + 4]
cmp eax, 0x80000000
jne 0x55a1a8
xor esi, esi
jmp 0x55a1d2
cmp eax, 0xff
jne 0x55a1b6
mov esi, 0xa
jmp 0x55a1b8
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, esi
sar eax, 1
jns 0x55a1db
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.0065b29c
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.0065b28c
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jge 0x55a228
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
jmp 0x55a25b
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 0x55a25b
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 + 0x3ef], 0
je 0x55a39a
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x55a2c9
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 0x55a2b3
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.00623368
jmp 0x55a409
cmp eax, 0x80000000
jne 0x55a34d
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 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.00656204
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 0x55a2d5
jmp 0x55a409
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x55a376
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 0x55a409
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 0x55a409
cmp dword [edi + 4], 0xff
jne 0x55a3ce
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 0x55a3bd
adc edx, 0
mov eax, dword [0x67278c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.0062ca2c
jmp 0x55a409
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x55a3e1
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x55a3f8
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 0x55a409
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