Function at 0xa52657f
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 - 0x144], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x16c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x128], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x134], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x130], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x174], eax
add eax, ecx
mov dword [ebp - 0x178], eax
mov eax, edi
mov edi, dword [esi + 0x10]
sub eax, ecx
mov dword [ebp - 0x154], ecx
mov ecx, dword [esi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [esi + 0x10]
mov dword [ebp - 0x124], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x150], esi
mov ecx, edi
mov dword [ebp - 0x12c], 3
cmova ecx, eax
xor edx, edx
cmp dword [esi + 0x18], edx
mov eax, dword [esi + 0xc4]
cmovne ecx, edi
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x168], ecx
push 5
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [esi + 0x50]
imul edi, dword [edi], 0x9e3779b1
mov dword [ebp - 0x11c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x160], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x164], eax
pop ecx
sub ecx, dword [eax + 0xc0]
mov eax, edi
shr eax, cl
mov ecx, dword [esi + 0xc4]
shl eax, 2
mov dword [ebp - 0x15c], eax
cmp ecx, 5
jbe 0xa52669c
xor eax, eax
add ecx, 0xfffffffb
inc eax
shl eax, cl
mov dword [ebp - 0x158], eax
jmp 0xa5266a2
mov dword [ebp - 0x158], edx
push 0x18
mov dword [ebp - 0x118], 0x1f
pop ecx
cmp dword [esi + 0xdc], edx
jne 0xa52690f
mov eax, dword [ebp - 0x124]
mov edi, dword [esi + 0x1c]
sub eax, edi
mov edx, dword [ebp - 0x130]
cmp eax, 0x180
jbe 0xa526826
lea eax, [edi + 0x60]
mov dword [ebp - 0x148], eax
cmp edi, eax
jae 0xa52676f
sub ecx, edx
mov dword [ebp - 0x140], ecx
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x154]
push 0x1f
imul edx, dword [edi + eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x138]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x120], 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 - 0x118]
add ecx, eax
mov eax, dword [ebp - 0x120]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x140]
cmp edi, dword [ebp - 0x148]
jb 0xa5266f0
mov edi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x128]
add edi, 0xffffffe0
mov eax, dword [esi + 0x24]
inc ecx
and dword [ebp - 0x140], 0
mov edx, ecx
sub edx, dword [ebp - 0x154]
sub edx, edi
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x154]
add eax, edi
mov dword [ebp - 0x170], edi
inc edx
mov dword [ebp - 0x148], edi
cmp eax, ecx
push 8
cmova edx, dword [ebp - 0x140]
pop eax
cmp edx, eax
cmova edx, eax
add edx, edi
mov dword [ebp - 0x140], edx
cmp edi, edx
jae 0xa526820
push 0x18
pop ecx
sub ecx, dword [ebp - 0x120]
mov edi, edx
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x148]
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x154]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x120]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x148]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x148], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0xa5267e2
mov edi, dword [ebp - 0x170]
mov edx, dword [esi + 0x24]
push 0x18
pop ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x170], eax
cmp edi, dword [ebp - 0x124]
jae 0xa5268d1
sub ecx, edx
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x170]
push 0x1f
imul edx, dword [edi + eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x120]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x140]
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 - 0x118]
add ecx, eax
mov eax, dword [ebp - 0x148]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x150]
mov ecx, dword [ebp - 8]
cmp edi, dword [ebp - 0x124]
jb 0xa526852
mov eax, dword [ebp - 0x128]
mov edi, dword [ebp - 0x124]
mov dword [esi + 0x1c], edi
push 0x18
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
pop ecx
sub ecx, dword [ebp - 0x130]
xor edx, dword [ebp - 0x11c]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
xor edx, edx
mov dword [ebp - 0x11c], ecx
jmp 0xa526934
mov eax, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x130]
xor eax, edi
shr eax, cl
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x11c]
mov dword [esi + 0x1c], eax
mov edi, dword [ebp - 0x134]
mov eax, ecx
add dword [esi + 0x58], ecx
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x130], edx
lea edi, [edi + eax*4]
add eax, dword [ebp - 0x138]
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], edi
lea edi, [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0x139], al
movzx eax, al
mov dword [ebp - 0x138], eax
movsx eax, cl
movd xmm0, eax
xor eax, eax
stosd dword es:[edi], eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ecx, edi
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [ebp + ecx*4 - 0x14], eax
inc ecx
cmp ecx, 2
jl 0xa5269a0
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x139]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x14]
ror edx, cl
mov ecx, edi
mov dword [ebp - 0x148], edi
cmp edx, edi
jbe 0xa526a4f
mov esi, edi
cmp dword [ebp - 0x160], edi
jbe 0xa526a43
test edx, edx
jne 0xa5269ee
bsf eax, ecx
add eax, 0x20
jmp 0xa5269f1
bsf eax, edx
add eax, dword [ebp - 0x138]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x120]
mov eax, dword [ecx + eax*4]
je 0xa526a1d
cmp eax, dword [ebp - 0x168]
jb 0xa526a43
mov dword [ebp + esi*4 - 0x114], eax
inc esi
dec dword [ebp - 0x160]
mov eax, dword [ebp - 0x148]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x148]
and ecx, eax
mov dword [ebp - 0x148], ecx
ja 0xa5269da
jb 0xa526a43
cmp edx, edi
ja 0xa5269da
mov dword [ebp - 0x118], esi
mov esi, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x138]
push 0x1f
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x134]
add ecx, eax
mov eax, dword [ebp - 0x11c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x120]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [ebp - 0x118], edi
jbe 0xa526b0a
mov esi, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x130]
mov eax, dword [ebp + eax*4 - 0x114]
mov ecx, dword [ebp - 0x154]
add ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa526aed
push dword [ebp - 0x144]
push ecx
push edi
call fcn.0a51e9f5
add esp, 0xc
cmp eax, esi
jbe 0xa526aed
mov ecx, dword [ebp - 0x124]
mov esi, eax
sub ecx, dword [ebp - 8]
add eax, edi
mov edx, dword [ebp - 0x16c]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x144]
je 0xa526b02
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
cmp eax, dword [ebp - 0x118]
jb 0xa526a9d
mov dword [ebp - 0x12c], esi
xor edi, edi
mov eax, dword [ebp - 0x164]
mov esi, dword [ebp - 0x158]
add esi, dword [ebp - 0x160]
push 3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x138], ecx
add eax, dword [ebp - 0x174]
mov ecx, edi
mov dword [ebp - 0x134], eax
pop eax
cmp esi, eax
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x120], ecx
cmovb eax, esi
mov dword [ebp - 0x174], eax
test eax, eax
je 0xa526c2a
mov ecx, dword [ebp - 0x15c]
shl ecx, 2
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x158], eax
test eax, eax
je 0xa526d16
mov ecx, dword [ebp - 0x128]
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa526c03
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x158]
push dword [ebp - 0x138]
add eax, 4
push dword [ebp - 0x144]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a51ea60
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x12c]
jbe 0xa526bfd
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x158]
sub eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x16c]
add eax, 3
mov dword [ebp - 0x12c], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x128]
add eax, ecx
cmp eax, dword [ebp - 0x144]
je 0xa526d1c
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
add dword [ebp - 0x118], 4
inc ecx
mov dword [ebp - 0x120], ecx
cmp ecx, dword [ebp - 0x174]
jae 0xa526c2a
mov ecx, dword [ebp - 0x118]
jmp 0xa526b6a
mov eax, dword [ebp - 0x164]
sub esi, ecx
mov edx, dword [ebp - 0x15c]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov dword [ebp - 0x118], eax
shr dword [ebp - 0x118], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa526d16
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x128]
shl eax, 2
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x164]
mov edx, dword [ebp - 0x118]
mov eax, dword [eax + 0x64]
mov eax, dword [edx + eax]
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x15c], eax
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa526d06
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x15c]
add edx, 4
push dword [ebp - 0x138]
add eax, edx
push dword [ebp - 0x144]
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a51ea60
add eax, 4
add esp, 0x14
cmp eax, dword [ebp - 0x12c]
jbe 0xa526d00
mov ecx, dword [ebp - 0x124]
sub ecx, dword [ebp - 0x15c]
sub ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x16c]
add ecx, 3
mov dword [ebp - 0x12c], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x128]
add eax, ecx
cmp eax, dword [ebp - 0x144]
je 0xa526d16
jmp 0xa526d06
mov ecx, dword [ebp - 0x128]
add dword [ebp - 0x118], 4
inc edi
cmp edi, esi
jb 0xa526c71
mov ecx, dword [ebp - 0x12c]
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a550bf9
leave
ret