Function at 0x5156e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [ecx + 0xb8]
push esi
push edi
mov dword [esp + 0x24], ebp
mov ebx, dword [ebp]
add ebx, dword [eax]
mov ecx, dword [ebp + 4]
add ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, dword [eax + 8]
mov edi, dword [ebp + 0xc]
add edi, dword [eax + 0xc]
movzx eax, bl
mov esi, dword [eax*4 + 0x64aac0]
mov eax, ebx
shr eax, 8
xor esi, ecx
and eax, 0xff
add esi, dword [eax*4 + 0x64aec0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
ror ebx, 0x18
mov dword [esp + 0x2c], esi
add edx, dword [eax*4 + 0x64aac0]
movzx eax, bl
xor edi, dword [eax*4 + 0x64aec0]
lea esi, [edi + ebx]
mov ebx, dword [esp + 0x2c]
movzx eax, bl
mov ecx, dword [eax*4 + 0x64aac0]
mov eax, ebx
shr eax, 8
xor ecx, edx
and eax, 0xff
add ecx, dword [eax*4 + 0x64aec0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x2c], ecx
ror ebx, 0x18
mov ecx, dword [eax*4 + 0x64aac0]
movzx eax, bl
add ecx, edi
mov edx, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x2c]
xor edx, esi
lea esi, [eax + ebx]
movzx eax, al
mov ebx, dword [eax*4 + 0x64aac0]
mov eax, dword [esp + 0x2c]
xor ebx, ecx
shr eax, 8
and eax, 0xff
add ebx, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x2c]
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x10], ebx
mov ecx, dword [eax*4 + 0x64aac0]
mov eax, dword [esp + 0x2c]
add ecx, edx
ror eax, 0x18
mov dword [esp + 0x2c], eax
movzx eax, al
mov edx, dword [eax*4 + 0x64aec0]
movzx eax, bl
xor edx, esi
mov ebx, dword [eax*4 + 0x64aac0]
mov eax, dword [esp + 0x10]
xor ebx, ecx
shr eax, 8
and eax, 0xff
add ebx, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x64aac0]
mov eax, dword [esp + 0x10]
add ecx, edx
ror eax, 0x18
mov dword [esp + 0x10], eax
movzx eax, al
mov edx, dword [eax*4 + 0x64aec0]
xor edx, dword [esp + 0x2c]
movzx eax, bl
mov esi, dword [eax*4 + 0x64aac0]
mov eax, ebx
shr eax, 8
xor esi, ecx
and eax, 0xff
add esi, dword [eax*4 + 0x64aec0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
ror ebx, 0x18
mov dword [esp + 0x2c], esi
mov ecx, dword [eax*4 + 0x64aac0]
add ecx, edx
movzx eax, bl
mov edx, dword [eax*4 + 0x64aec0]
xor edx, dword [esp + 0x10]
lea esi, [edx + ebx]
mov ebx, dword [esp + 0x2c]
movzx eax, bl
mov eax, dword [eax*4 + 0x64aac0]
xor eax, ecx
mov dword [esp + 0x2c], eax
mov eax, ebx
mov edi, dword [esp + 0x2c]
shr eax, 8
and eax, 0xff
add edi, dword [eax*4 + 0x64aec0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
ror ebx, 0x18
mov dword [esp + 0x2c], edi
mov ecx, dword [eax*4 + 0x64aac0]
add ecx, edx
movzx eax, bl
mov edx, dword [eax*4 + 0x64aec0]
mov eax, edi
xor edx, esi
lea esi, [eax + ebx]
movzx eax, al
mov ebx, dword [eax*4 + 0x64aac0]
mov eax, edi
shr eax, 8
xor ebx, ecx
and eax, 0xff
add ebx, dword [eax*4 + 0x64aec0]
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x64aac0]
mov eax, edi
ror eax, 0x18
add ecx, edx
mov dword [esp + 0x2c], eax
movzx eax, al
mov edx, dword [eax*4 + 0x64aec0]
movzx eax, bl
xor edx, esi
mov esi, dword [eax*4 + 0x64aac0]
mov eax, ebx
shr eax, 8
xor esi, ecx
and eax, 0xff
add esi, dword [eax*4 + 0x64aec0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x14], esi
mov ecx, dword [eax*4 + 0x64aac0]
add ecx, edx
ror ebx, 0x18
movzx eax, bl
mov eax, dword [eax*4 + 0x64aec0]
xor eax, dword [esp + 0x2c]
lea edx, [ebp + 0x10]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], ebx
mov ebx, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
mov ebp, dword [edx]
lea esi, [esp + 0x2c]
add ebp, dword [esp + 0x14]
mov ecx, ebx
mov ebx, dword [edx + 4]
rol ecx, 0xd
imul ebx, ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x10]
rol ebx, 0xa
cmp eax, 8
mov edi, ebx
cmovae esi, ecx
mov ecx, ebp
and ecx, 0x1ff
ror edi, 5
mov edx, dword [ecx*4 + 0x64aac0]
mov ecx, ebx
xor edx, edi
xor edx, ebx
rol edx, cl
lea ecx, [esp + 0x2c]
add dword [esi], edx
cmp eax, 8
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x10]
cmovae edx, ecx
mov ecx, edi
rol ebp, cl
inc eax
add ebp, dword [esp + 0x18]
xor dword [edx], ebx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add edx, 8
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
cmp eax, 0x10
jb 0x515975
mov eax, ebx
mov edx, ebx
shr eax, 0x18
rol edx, 0x18
sub edi, dword [eax*4 + 0x64aac0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
sub esi, dword [eax*4 + 0x64aec0]
movzx eax, dl
xor esi, dword [eax*4 + 0x64aac0]
movzx eax, bl
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, ebp
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
rol ebx, 0x18
sub esi, dword [eax*4 + 0x64aac0]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub edx, dword [eax*4 + 0x64aec0]
movzx eax, bl
xor edx, dword [eax*4 + 0x64aac0]
movzx eax, cl
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, edi
sub ecx, ebx
mov eax, ecx
shr eax, 0x18
sub edx, dword [eax*4 + 0x64aac0]
mov eax, ecx
rol eax, 0x18
mov dword [esp + 0x2c], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub ebx, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor ebx, dword [eax*4 + 0x64aac0]
movzx eax, cl
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, esi
mov esi, dword [esp + 0x2c]
sub ecx, edx
mov eax, ecx
shr eax, 0x18
sub ebx, dword [eax*4 + 0x64aac0]
mov eax, ecx
rol eax, 0x18
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub esi, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x10]
movzx eax, al
xor esi, dword [eax*4 + 0x64aac0]
movzx eax, cl
mov dword [esp + 0x2c], esi
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, edx
mov edx, esi
mov esi, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x18
sub edx, dword [eax*4 + 0x64aac0]
mov eax, ecx
rol eax, 0x18
mov dword [esp + 0x2c], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub esi, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor esi, dword [eax*4 + 0x64aac0]
mov dword [esp + 0x10], esi
movzx eax, cl
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, ebx
mov ebx, esi
mov esi, dword [esp + 0x2c]
mov eax, ecx
shr eax, 0x18
sub ebx, dword [eax*4 + 0x64aac0]
mov eax, ecx
rol eax, 0x18
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub esi, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x10]
movzx eax, al
xor esi, dword [eax*4 + 0x64aac0]
movzx eax, cl
mov dword [esp + 0x2c], esi
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, edx
mov edx, esi
sub ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x18
sub edx, dword [eax*4 + 0x64aac0]
mov eax, ecx
rol eax, 0x18
mov dword [esp + 0x2c], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub esi, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor esi, dword [eax*4 + 0x64aac0]
movzx eax, cl
mov dword [esp + 0x10], esi
mov ecx, dword [eax*4 + 0x64aec0]
xor ecx, ebx
mov ebx, esi
mov esi, dword [esp + 0x2c]
sub ecx, edx
mov eax, ecx
shr eax, 0x18
sub ebx, dword [eax*4 + 0x64aac0]
mov eax, ecx
rol eax, 0x18
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
sub esi, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x10]
movzx eax, al
xor esi, dword [eax*4 + 0x64aac0]
movzx eax, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
mov esi, dword [eax*4 + 0x64aec0]
mov eax, dword [esp + 0x2c]
xor esi, edx
sub eax, dword [ecx + 0x98]
sub ebx, dword [ecx + 0x94]
sub esi, dword [ecx + 0x90]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
sub eax, dword [ecx + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x515c64
mov ecx, dword [eax]
jmp 0x515c66
xor ecx, ecx
mov edx, dword [esp + 0x34]
xor ecx, esi
mov dword [edx], ecx
test eax, eax
je 0x515c7d
add eax, 4
test eax, eax
je 0x515c7d
mov ecx, dword [eax]
jmp 0x515c7f
xor ecx, ecx
xor ecx, ebx
mov dword [edx + 4], ecx
test eax, eax
je 0x515c93
add eax, 4
test eax, eax
je 0x515c93
mov ecx, dword [eax]
jmp 0x515c95
xor ecx, ecx
xor ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x515cb9
add eax, 4
test eax, eax
je 0x515cb9
mov eax, dword [eax]
xor eax, dword [esp]
mov dword [edx + 0xc], eax
add esp, 0x18
ret 0xc
xor eax, eax
xor eax, dword [esp]
mov dword [edx + 0xc], eax
add esp, 0x18
ret 0xc