Function at 0x4773e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xac
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [esp + 0xbc]
push edi
lea eax, [ebx + 0xba4]
mov dword [esp + 0x18], esi
push eax
call fcn.00476460
push 0x80
push esi
lea eax, [esp + 0x40]
push eax
call fcn.004b0250
lea edx, [esp + 0x38]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x477428
sub edx, ecx
mov dword [ebx + 0x10a4], 0xd3a3b879
lea edi, [ebx + 0xfa4]
mov dword [ebx + 0x10a8], 0x3f6d12f7
mov ecx, 0x40
mov dword [ebx + 0x10ac], 0x7515a235
mov esi, 0x56fd28
mov dword [ebx + 0x10b0], 0xa4e7f123
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], esi
xor ebp, ebp
test edx, edx
je 0x4774f4
jmp 0x477480
mov ecx, dword [esp + 0x18]
mov edi, 1
movzx eax, byte [ecx + ebp]
movzx ecx, byte [ecx + ebp + 1]
sub eax, esi
add ecx, esi
movzx eax, al
movzx ecx, cl
movzx eax, byte [ebx + eax*4 + 0xba4]
movzx ecx, byte [ebx + ecx*4 + 0xba4]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x4774ed
mov dl, byte [ebx + eax + 0xfa4]
lea ecx, [edi + eax]
add ecx, ebp
lea edi, [edi + 1]
movzx esi, cl
mov cl, byte [esi + ebx + 0xfa4]
mov byte [ebx + eax + 0xfa4], cl
inc eax
movzx eax, al
mov byte [esi + ebx + 0xfa4], dl
cmp eax, dword [esp + 0x14]
jne 0x4774b4
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
add ebp, 2
cmp ebp, edx
jb 0x477480
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x100
jb 0x477475
test dl, 0xf
je 0x47752a
mov ecx, edx
mov eax, edx
or ecx, 0xf
cmp edx, ecx
ja 0x47752a
cmp eax, 0x80
jae 0x4776bc
mov byte [esp + eax + 0x38], 0
inc eax
cmp eax, ecx
jbe 0x477515
xor ecx, ecx
mov dword [esp + 0x18], ecx
test edx, edx
je 0x4776a1
jmp 0x477540
lea edi, [esp + 0x38]
add edi, ecx
mov dword [esp + 0x28], edi
mov ecx, dword [edi]
xor ecx, dword [ebx + 0x10a4]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 8]
xor esi, dword [ebx + 0x10ac]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov edi, eax
xor ecx, dword [ebx + 0x10a8]
xor edi, dword [ebx + 0x10b0]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
and eax, 3
mov ecx, edi
rol ecx, 0xb
add ecx, esi
mov edx, dword [ebx + eax*4 + 0x10a4]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ebp, byte [eax + ebx + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0xfa4]
shl eax, 8
or ebp, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebp, 8
movzx eax, byte [eax + ebx + 0xfa4]
or ebp, eax
movzx eax, cl
mov ecx, esi
shl ebp, 8
ror ecx, 0xf
xor ecx, edi
movzx eax, byte [eax + ebx + 0xfa4]
add ecx, edx
or ebp, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor ebp, dword [esp + 0x1c]
mov dword [esp + 0x1c], esi
movzx edx, byte [eax + ebx + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0xfa4]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + ebx + 0xfa4]
or edx, eax
movzx eax, cl
shl edx, 8
mov ecx, esi
mov esi, ebp
movzx eax, byte [eax + ebx + 0xfa4]
or edx, eax
mov eax, dword [esp + 0x14]
xor edx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], edi
mov edi, edx
mov dword [esp + 0x14], eax
cmp eax, 0x20
jl 0x477581
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x10a4]
xor eax, ebp
push edi
mov dword [edi], eax
mov eax, dword [ebx + 0x10a8]
xor eax, edx
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x10ac]
xor eax, ecx
mov ecx, ebx
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x10b0]
xor eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
call fcn.00477ef0
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x20]
jb 0x477540
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0xac
ret 4
call fcn.0051dbcd
int3