Function at 0xa52edd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0xa414bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x170], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x118], esi
push 4
mov dword [ebp - 0x15c], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x130], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 0x24]
lea esi, [edx + ecx]
mov dword [ebp - 0x110], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x164], eax
add eax, edx
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x118]
sub eax, ecx
mov dword [ebp - 0x128], ecx
mov ecx, dword [edi + 0xb8]
mov dword [ebp - 0x160], edx
xor edx, edx
inc edx
mov dword [ebp - 0x11c], eax
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x168], esi
mov esi, dword [edi + 0x10]
mov ecx, esi
cmova ecx, eax
mov dword [ebp - 0x12c], 3
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
mov dword [ebp - 0x140], edx
cmovne ecx, esi
mov dword [ebp - 0x14c], 0xf
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x134], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x144], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x138], eax
pop ecx
cmp dword [edi + 0xdc], edx
jne 0xa52f174
mov eax, dword [ebp - 0x110]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x11c]
sub eax, edx
mov dword [ebp - 0x108], edx
cmp eax, 0x180
jbe 0xa52f075
lea eax, [edx + 0x60]
mov dword [ebp - 0x120], eax
cmp edx, eax
jae 0xa52efc5
sub ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x128]
push 0xf
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x108]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x154]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x130]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x14c]
add ecx, eax
mov eax, dword [ebp - 0x10c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x108]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x108], edx
cmp edx, dword [ebp - 0x120]
jb 0xa52ef2f
mov esi, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
lea ecx, [esi + 1]
mov eax, dword [edi + 0x24]
add edx, 0xffffffe0
and dword [ebp - 0x114], 0
mov esi, ecx
sub esi, dword [ebp - 0x128]
sub esi, edx
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x128]
add eax, edx
mov dword [ebp - 0x108], edx
inc esi
mov dword [ebp - 0x10c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x114]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa52f072
push 0x18
pop ecx
sub ecx, dword [ebp - 0x120]
mov dword [ebp - 0x114], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x128]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x114]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x10c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x10c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa52f028
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x120], eax
push 0x18
pop ecx
mov eax, dword [edi + 0x5c]
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x158], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x114], eax
cmp edx, esi
jae 0xa52f13c
sub ecx, dword [ebp - 0x120]
mov dword [ebp - 0x144], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x114]
push 0xf
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x108]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x158]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x10c]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x14c]
add ecx, eax
mov eax, dword [ebp - 0x120]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x108]
mov dword [esi + ecx*4], edx
inc edx
mov esi, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x108], edx
cmp edx, esi
jb 0xa52f0aa
mov eax, dword [ebp - 0x118]
mov dword [edi + 0x1c], esi
push 0x18
pop ecx
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, esi
sub ecx, dword [ebp - 0x110]
xor edx, dword [ebp - 0x150]
shr edx, cl
and eax, 7
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [ebp - 0x120], ecx
jmp 0xa52f197
imul edx, dword [esi], 0x9e3779b1
sub ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0x1c], eax
xor edx, dword [ebp - 0x150]
shr edx, cl
mov dword [ebp - 0x120], edx
mov ecx, dword [ebp - 0x130]
mov eax, edx
add dword [edi + 0x58], edx
shr eax, 4
and eax, 0xffffff0
and dword [ebp - 0x108], 0
push 0xf
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x154]
add ecx, eax
mov dword [ebp - 0x144], ecx
movzx eax, byte [ecx]
mov dword [ebp - 0x110], eax
movsx eax, dl
mov edx, dword [ebp - 0x110]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ecx]
pop eax
and edx, eax
mov ecx, edx
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
neg ecx
and ecx, eax
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov ecx, edx
mov esi, eax
xor edx, edx
mov dword [ebp - 0x10c], ecx
cmp ecx, edx
ja 0xa52f228
cmp esi, edx
jbe 0xa52f29f
xor edi, edi
cmp dword [ebp - 0x138], edx
jbe 0xa52f293
test esi, esi
jne 0xa52f23e
bsf eax, ecx
add eax, 0x20
jmp 0xa52f241
bsf eax, esi
add eax, dword [ebp - 0x110]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x130]
mov eax, dword [ecx + eax*4]
je 0xa52f26d
cmp eax, dword [ebp - 0x134]
jb 0xa52f293
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x138]
mov eax, dword [ebp - 0x10c]
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
mov ecx, dword [ebp - 0x10c]
and ecx, eax
mov dword [ebp - 0x10c], ecx
ja 0xa52f22a
jb 0xa52f293
cmp esi, edx
ja 0xa52f22a
mov dword [ebp - 0x108], edi
mov edi, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x110]
push 0xf
pop esi
dec ecx
and ecx, esi
push 0
pop eax
cmove eax, esi
mov esi, dword [ebp - 0x144]
add ecx, eax
mov eax, dword [ebp - 0x120]
mov byte [esi], cl
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x130]
mov eax, dword [edi + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edi + 0x1c]
cmp dword [ebp - 0x108], edx
jbe 0xa52f3a6
mov esi, dword [ebp + edx*4 - 0x104]
mov edi, dword [ebp - 0x118]
cmp esi, dword [ebp - 0x160]
jb 0xa52f32d
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x12c]
add ecx, esi
mov esi, dword [ebp - 0x12c]
mov eax, dword [ecx + eax - 3]
cmp eax, dword [esi + edi - 3]
mov esi, dword [ebp + edx*4 - 0x104]
jne 0xa52f393
push dword [ebp - 0x13c]
push ecx
push edi
call fcn.0a51e9f5
add esp, 0xc
mov ecx, eax
jmp 0xa52f361
mov ecx, dword [ebp - 0x164]
mov eax, dword [esi + ecx]
cmp eax, dword [edi]
jne 0xa52f393
push dword [ebp - 0x168]
lea eax, [ecx + 4]
push dword [ebp - 0x16c]
add eax, esi
push dword [ebp - 0x13c]
push eax
lea eax, [edi + 4]
push eax
call fcn.0a51ea60
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x12c]
jbe 0xa52f38d
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x170]
sub eax, esi
add eax, 3
mov dword [ebp - 0x12c], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x13c]
je 0xa52f3a6
mov edx, dword [ebp - 0x140]
inc edx
mov dword [ebp - 0x140], edx
cmp edx, dword [ebp - 0x108]
jb 0xa52f2df
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x12c]
xor ecx, ebp
pop edi
pop esi
call fcn.0a550bf9
leave
ret