Function at 0xa52a689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0xa414bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x14c], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x164], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], esi
push 4
mov dword [ebp - 0x13c], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x134], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x138], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x118], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x158], eax
add eax, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x170], eax
mov eax, esi
mov esi, dword [edi + 0x10]
sub eax, ecx
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
mov dword [ebp - 0x114], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x128], 3
mov ecx, esi
mov dword [ebp - 0x110], 0xf
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
cmovne ecx, esi
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x150], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x174], eax
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [edi + 0xb4]
mov dword [ebp - 0x154], ecx
mov edi, dword [ebp - 0x154]
mov dword [ebp - 0x124], eax
mov eax, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x28]
mov dword [ebp - 0x160], ecx
imul ecx, dword [esi], 0x9e3779b1
pop esi
mov dword [ebp - 0x108], ecx
mov ecx, esi
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x108]
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x16c], edi
mov edi, dword [ebp - 0x13c]
shr ecx, 4
and ecx, 0xffffff0
mov dword [ebp - 0x15c], ecx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x174], eax
cmp dword [edi + 0xdc], edx
jne 0xa52aa60
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x118]
sub eax, edx
mov dword [ebp - 0x108], edx
cmp eax, 0x180
jbe 0xa52a95b
lea eax, [edx + 0x60]
mov dword [ebp - 0x140], eax
cmp edx, eax
jae 0xa52a8ad
mov ecx, esi
sub ecx, dword [ebp - 0x118]
mov dword [ebp - 0x120], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x130]
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 - 0x138]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x134]
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 - 0x110]
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 - 0x120]
mov dword [ebp - 0x108], edx
cmp edx, dword [ebp - 0x140]
jb 0xa52a81d
mov edx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x11c]
add edx, 0xffffffe0
mov eax, dword [edi + 0x24]
inc ecx
and dword [ebp - 0x120], 0
mov esi, ecx
sub esi, dword [ebp - 0x130]
sub esi, edx
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x130]
add eax, edx
mov dword [ebp - 0x108], edx
inc esi
mov dword [ebp - 0x10c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x120]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa52a955
push 0x18
pop ecx
sub ecx, dword [ebp - 0x140]
mov dword [ebp - 0x120], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x130]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x120]
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 0xa52a914
mov edx, dword [ebp - 0x108]
mov ecx, dword [edi + 0x24]
push 0x18
pop esi
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x168], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x120], eax
cmp edx, dword [ebp - 0x114]
jae 0xa52aa20
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x140], eax
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x120]
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 - 0x168]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x144], 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 - 0x110]
add ecx, eax
mov eax, dword [ebp - 0x144]
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 - 0x114]
mov dword [ebp - 0x108], edx
cmp edx, esi
jb 0xa52a98c
jmp 0xa52aa26
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0x1c], esi
push 0x18
pop ecx
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, esi
sub ecx, dword [ebp - 0x118]
and eax, 7
xor edx, dword [ebp - 0x12c]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
xor edx, edx
mov dword [ebp - 0x108], ecx
mov eax, ecx
jmp 0xa52aa85
mov eax, dword [ebp - 0x108]
sub esi, dword [ebp - 0x118]
xor eax, dword [ebp - 0x12c]
mov ecx, esi
shr eax, cl
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x108], eax
mov dword [edi + 0x1c], ecx
add dword [edi + 0x58], eax
mov ecx, dword [ebp - 0x134]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x110], edx
push 0xf
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebp - 0x138]
add ecx, eax
mov dword [ebp - 0x144], ecx
movzx eax, byte [ecx]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x118]
movsx eax, al
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
xor esi, esi
movzx eax, ax
cdq
mov ecx, edx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x10c], ecx
mov edx, eax
cmp ecx, esi
ja 0xa52ab25
cmp edx, esi
jbe 0xa52ab9c
mov edi, esi
cmp dword [ebp - 0x124], esi
jbe 0xa52ab90
test edx, edx
jne 0xa52ab3b
bsf eax, ecx
add eax, 0x20
jmp 0xa52ab3e
bsf eax, edx
add eax, dword [ebp - 0x118]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x134]
mov eax, dword [ecx + eax*4]
je 0xa52ab6a
cmp eax, dword [ebp - 0x150]
jb 0xa52ab90
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x124]
mov eax, dword [ebp - 0x10c]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x10c]
and ecx, eax
mov dword [ebp - 0x10c], ecx
ja 0xa52ab27
jb 0xa52ab90
cmp edx, esi
ja 0xa52ab27
mov dword [ebp - 0x12c], edi
mov edi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x118]
push 0xf
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x144]
add ecx, eax
mov eax, dword [ebp - 0x108]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x134]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x1c]
mov edi, dword [ebp - 0x12c]
test edi, edi
je 0xa52ac69
mov esi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x110]
mov eax, dword [ebp + eax*4 - 0x104]
mov ecx, dword [ebp - 0x130]
add ecx, eax
mov dword [ebp - 0x144], eax
mov eax, dword [ecx + edx - 3]
cmp eax, dword [edx + esi - 3]
jne 0xa52ac58
push dword [ebp - 0x14c]
push ecx
push esi
call fcn.0a51e9f5
mov edx, dword [ebp - 0x128]
add esp, 0xc
cmp eax, edx
jbe 0xa52ac58
mov ecx, dword [ebp - 0x114]
mov edx, eax
mov edi, dword [ebp - 0x164]
add eax, esi
sub ecx, dword [ebp - 0x144]
add ecx, 3
mov dword [ebp - 0x128], edx
mov dword [edi], ecx
mov edi, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x14c]
je 0xa52ac69
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp eax, edi
jb 0xa52abf0
mov eax, dword [ebp - 0x154]
xor edi, edi
mov edx, dword [ebp - 0x15c]
push 0xf
mov dword [ebp - 0x110], edi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x144], eax
sub eax, ecx
sub dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x13c], ecx
movzx ecx, byte [edx + eax]
mov eax, dword [ebp - 0x16c]
movsx eax, al
mov dword [ebp - 0x15c], ecx
movd xmm0, eax
mov eax, dword [ebp - 0x160]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [edx + eax]
mov edx, ecx
pop eax
and edx, eax
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
mov ecx, edx
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 esi, eax
cmp edx, edi
ja 0xa52ad00
cmp esi, edi
jbe 0xa52ae0a
cmp dword [ebp - 0x124], edi
jbe 0xa52ad68
test esi, esi
jne 0xa52ad14
bsf eax, edx
add eax, 0x20
jmp 0xa52ad17
bsf eax, esi
add eax, dword [ebp - 0x15c]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x174]
mov ecx, dword [ecx + eax*4]
je 0xa52ad52
mov eax, dword [ebp - 0x154]
cmp ecx, dword [eax + 0xc]
jb 0xa52ad68
mov eax, dword [ebp - 0x110]
mov dword [ebp + eax*4 - 0x104], ecx
inc eax
dec dword [ebp - 0x124]
mov dword [ebp - 0x110], eax
mov ecx, esi
mov eax, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edx, eax
ja 0xa52ad00
jb 0xa52ad68
cmp esi, edi
ja 0xa52ad00
mov esi, dword [ebp - 0x110]
test esi, esi
je 0xa52ae0a
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp + edi*4 - 0x104]
mov eax, dword [ebp - 0x13c]
mov eax, dword [ecx + eax]
cmp eax, dword [edx]
jne 0xa52ae01
push dword [ebp - 0x170]
mov eax, dword [ebp - 0x13c]
push dword [ebp - 0x144]
add eax, 4
push dword [ebp - 0x14c]
add eax, ecx
push eax
lea eax, [edx + 4]
push eax
call fcn.0a51ea60
add eax, 4
add esp, 0x14
cmp eax, dword [ebp - 0x128]
jbe 0xa52adfb
mov ecx, dword [ebp - 0x114]
sub ecx, dword [ebp + edi*4 - 0x104]
mov edx, dword [ebp - 0x164]
sub ecx, dword [ebp - 0x158]
add ecx, 3
mov dword [ebp - 0x128], eax
mov dword [edx], ecx
mov edx, dword [ebp - 0x11c]
add eax, edx
cmp eax, dword [ebp - 0x14c]
je 0xa52ae0a
jmp 0xa52ae01
mov edx, dword [ebp - 0x11c]
inc edi
cmp edi, esi
jb 0xa52ad7c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop edi
pop esi
call fcn.0a550bf9
leave
ret