Function at 0x5771c4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
lea eax, [esp + 0x28]
sub eax, 4
push ebx
push ebp
push esi
mov esi, dword [eax]
shr esi, 0xc
shl esi, 0xc
cmp dword [esi], 0xbdd4abba
je 0x5771f4
mov eax, dword [esi - 0x1000]
sub esi, 0x1000
cmp eax, 0xbdd4abba
jne 0x5771e1
mov ebp, dword [esi + 0x10]
mov ebx, esi
sub esi, ebp
mov edx, dword [ebx + 0x14]
mov ecx, dword [esi + 0x3c]
lea eax, [edx + esi]
mov edx, dword [esp + 0x34]
add ecx, esi
cmp edx, 1
mov dword [esp + 0x2c], ecx
jne 0x577439
mov edx, dword [ecx + 0xc0]
xor ebp, ebp
cmp edx, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
je 0x577239
mov edx, dword [edx + esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x88]
push edi
cmp edx, ebp
je 0x577267
test byte [ebx + 0xb], 8
je 0x577267
mov ecx, dword [ecx + 0x8c]
add edx, esi
shr ecx, 2
mov edi, ecx
dec ecx
test edi, edi
je 0x577267
inc ecx
mov edi, dword [edx]
add edx, 4
add ebp, edi
dec ecx
jne 0x57725d
mov edi, dword [ebx + 0xc]
xor ecx, ecx
mov cx, word [ebx + 8]
add edi, esi
push edi
push ecx
push eax
call fcn.00577064
add esp, 0xc
test ebp, ebp
je 0x577293
mov eax, 0x100
mov ecx, dword [edi]
add edi, 4
xor ecx, ebp
dec eax
mov dword [edi - 4], ecx
jne 0x577286
mov ecx, dword [ebx + 0xc]
xor edx, edx
xor ebp, ebp
mov dx, word [ecx + esi + 0x14]
lea eax, [ecx + esi]
lea edx, [edx + eax + 0x18]
mov edi, dword [eax + 0x34]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xa0]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xa4]
mov dword [esp + 0x24], edx
mov edx, esi
sub edx, edi
mov edi, dword [eax + 0x80]
mov dword [esp + 0x2c], edi
mov edi, dword [ebx + 0x18]
add edi, ebx
mov dword [esp + 0x10], 0
mov bp, word [eax + 6]
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x57733e
mov ecx, dword [esp + 0x38]
lea eax, [ebp + ebp*4]
lea eax, [ecx + eax*8 + 0xc]
mov ecx, ebp
dec ebp
sub eax, 0x28
test ecx, ecx
mov dword [esp + 0x38], eax
je 0x57733e
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x577335
test byte [eax + 0x1b], 0x10
jne 0x577335
mov edx, dword [eax]
add edx, esi
push edx
push ecx
push edi
call fcn.00577064
mov edx, dword [esp + 0x20]
add esp, 0xc
add edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx + 0xc]
jne 0x5772fb
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x57735e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x57735e
test edx, edx
je 0x57735e
push eax
push ecx
push edx
push esi
call fcn.00577444
add esp, 0x10
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x14], eax
mov ecx, dword [edx + esi + 0xc]
lea ebp, [eax + esi]
lea eax, [edx + esi]
mov dword [esp + 0x28], ebp
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x5773ec
jmp 0x577385
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 4]
add edi, esi
test edx, edx
mov ebp, edi
je 0x577397
mov ebp, dword [eax]
add ebp, esi
add ecx, esi
push ecx
call dword [ebx + 0x24]
mov ecx, eax
mov eax, dword [ebp]
test eax, eax
mov dword [esp + 0x38], ecx
je 0x5773d6
jmp 0x5773b0
mov ecx, dword [esp + 0x38]
test eax, 0x80000000
je 0x5773be
and eax, 0xffff
jmp 0x5773c2
lea eax, [eax + esi + 2]
push eax
push ecx
call dword [ebx + 0x28]
add ebp, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5773ac
mov eax, dword [esp + 0x14]
add eax, 0x14
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x577381
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push 4
mov edx, dword [edi + 0x54]
push edx
push esi
call dword [ebx + 0x2c]
xor eax, eax
mov ax, word [edi + 0x14]
mov ecx, dword [eax + edi + 0x3c]
lea eax, [eax + edi + 0x18]
and ecx, 0x7fffffff
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call dword [ebx + 0x2c]
pop edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x577437
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4