Function at 0x5540b0
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.00553dcc
pop ecx
mov esi, eax
lea edi, [ebx + 4]
mov eax, esi
sar eax, 1
jns 0x5540d5
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.00652c64
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.00652c54
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jge 0x554122
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
jmp 0x554155
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 0x554155
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 0x554294
mov eax, dword [edi + 4]
cmp eax, 0xff
jne 0x5541c3
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 0x5541ad
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.00619764
jmp 0x554303
cmp eax, 0x80000000
jne 0x554247
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 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.0064d678
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 0x5541cf
jmp 0x554303
mov eax, dword [edi + 8]
cmp eax, 0xff000000
jne 0x554270
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 0x554303
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 0x554303
cmp dword [edi + 4], 0xff
jne 0x5542c8
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 0x5542b7
adc edx, 0
mov eax, dword [0x669964]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.00623050
jmp 0x554303
mov eax, dword [edi + 8]
cmp eax, 0xff000000
je 0x5542db
mov edx, dword [ebp + 8]
cmp byte [edx - 0x19], 0
je 0x5542f2
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x20]
lea edx, [ebp - 0x10]
mov eax, dword [0x669964]
mov eax, dword [eax]
call fcn.00622de0
jmp 0x554303
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