Function at 0xa6b7477
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x154], ecx
push edi
mov dword [ebp - 0x150], esi
mov edi, esi
add edx, 2
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
lea edx, [edx + 4]
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [ebp + edi*4 - 0x144], ecx
inc edi
cmp edi, 0x10
jb 0xa6b74a6
mov eax, dword [ebp - 0x154]
push 0x40
pop esi
mov ecx, dword [eax + 8]
mov edi, ecx
mov ebx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x158], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub esi, 1
jne 0xa6b7506
mov esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x148]
mov ecx, edi
xor eax, edx
rol ecx, 5
and eax, ebx
rol ebx, 0x1e
xor eax, dword [ebp - 0x148]
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x144]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 0x14c], eax
mov ecx, eax
rol ecx, 5
mov eax, edx
xor eax, ebx
and eax, edi
rol edi, 0x1e
xor eax, edx
add ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + esi*4 - 0x140]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, eax
rol ecx, 5
mov eax, ebx
xor eax, edi
add ecx, 0x5a827999
and eax, dword [ebp - 0x14c]
xor eax, ebx
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x13c]
rol eax, 0x1e
add edx, ecx
mov dword [ebp - 0x14c], eax
mov ecx, edx
xor eax, edi
rol ecx, 5
and eax, dword [ebp - 0x148]
rol dword [ebp - 0x148], 0x1e
xor eax, edi
add eax, 0x5a827999
add edi, 0x5a827999
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x138]
xor eax, dword [ebp - 0x148]
add ebx, ecx
and eax, edx
mov ecx, ebx
xor eax, dword [ebp - 0x14c]
rol ecx, 5
add ecx, eax
rol edx, 0x1e
add ecx, dword [ebp + esi*4 - 0x134]
add esi, 5
add edi, ecx
cmp esi, 0x14
jb 0xa6b7524
mov dword [ebp - 0x150], edx
cmp esi, 0x28
jae 0xa6b7828
mov eax, dword [ebp - 0x148]
mov ecx, edi
xor eax, edx
rol ecx, 5
xor eax, ebx
rol ebx, 0x1e
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x144]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 0x14c], eax
mov ecx, eax
rol ecx, 5
mov eax, edx
xor eax, ebx
xor eax, edi
rol edi, 0x1e
add ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + esi*4 - 0x140]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, eax
mov eax, dword [ebp - 0x14c]
rol ecx, 5
xor eax, ebx
xor eax, edi
add ecx, 0x6ed9eba1
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x13c]
add edx, ecx
rol eax, 0x1e
mov dword [ebp - 0x14c], eax
mov ecx, edx
xor eax, dword [ebp - 0x148]
rol dword [ebp - 0x148], 0x1e
xor eax, edi
rol ecx, 5
add eax, 0x6ed9eba1
add ecx, eax
add edi, 0x6ed9eba1
add ecx, dword [ebp + esi*4 - 0x138]
mov eax, dword [ebp - 0x14c]
add ebx, ecx
xor eax, dword [ebp - 0x148]
mov ecx, ebx
rol ecx, 5
xor eax, edx
add ecx, eax
rol edx, 0x1e
add ecx, dword [ebp + esi*4 - 0x134]
add esi, 5
add edi, ecx
cmp esi, 0x28
jb 0xa6b7623
jmp 0xa6b7822
mov eax, dword [ebp - 0x150]
mov edx, edi
mov ecx, eax
rol edx, 5
or ecx, ebx
and eax, ebx
and ecx, dword [ebp - 0x148]
or ecx, eax
rol ebx, 0x1e
add ecx, dword [ebp + esi*4 - 0x144]
lea eax, [edx - 0x70e44324]
add ecx, dword [ebp - 0x14c]
add eax, ecx
mov ecx, ebx
or ecx, edi
mov dword [ebp - 0x14c], eax
and ecx, dword [ebp - 0x150]
mov edx, eax
rol edx, 5
mov eax, ebx
and eax, edi
rol edi, 0x1e
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x140]
add ecx, dword [ebp - 0x148]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov dword [ebp - 0x148], eax
mov edx, eax
mov eax, dword [ebp - 0x14c]
mov ecx, eax
or ecx, edi
rol edx, 5
and ecx, ebx
and eax, edi
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x13c]
add ecx, dword [ebp - 0x150]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov ecx, dword [ebp - 0x14c]
rol ecx, 0x1e
mov edx, eax
mov dword [ebp - 0x14c], ecx
or ecx, dword [ebp - 0x148]
and ecx, edi
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
and eax, dword [ebp - 0x148]
or ecx, eax
rol edx, 5
add ecx, dword [ebp + esi*4 - 0x138]
mov eax, dword [ebp - 0x148]
add ecx, ebx
rol eax, 0x1e
lea ebx, [edx - 0x70e44324]
mov dword [ebp - 0x148], eax
add ebx, ecx
mov ecx, eax
or ecx, dword [ebp - 0x150]
mov edx, ebx
and ecx, dword [ebp - 0x14c]
and eax, dword [ebp - 0x150]
rol edx, 5
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x134]
add esi, 5
add ecx, edi
lea edi, [edx - 0x70e44324]
mov edx, dword [ebp - 0x150]
add edi, ecx
rol edx, 0x1e
mov dword [ebp - 0x150], edx
cmp esi, 0x3c
jb 0xa6b7706
jmp 0xa6b790a
mov eax, dword [ebp - 0x148]
mov ecx, edi
xor eax, edx
rol ecx, 5
xor eax, ebx
add ecx, 0xca62c1d6
add eax, dword [ebp + esi*4 - 0x144]
add eax, dword [ebp - 0x14c]
add eax, ecx
rol ebx, 0x1e
mov dword [ebp - 0x14c], eax
mov ecx, eax
mov eax, edx
rol ecx, 5
xor eax, ebx
add ecx, 0xca62c1d6
xor eax, edi
rol edi, 0x1e
add eax, dword [ebp + esi*4 - 0x140]
add eax, dword [ebp - 0x148]
add eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, eax
mov eax, dword [ebp - 0x14c]
xor eax, ebx
rol ecx, 5
xor eax, edi
add eax, dword [ebp + esi*4 - 0x13c]
add eax, edx
lea edx, [ecx - 0x359d3e2a]
add edx, eax
mov eax, dword [ebp - 0x14c]
rol eax, 0x1e
mov ecx, edx
mov dword [ebp - 0x14c], eax
xor eax, dword [ebp - 0x148]
rol dword [ebp - 0x148], 0x1e
xor eax, edi
add eax, dword [ebp + esi*4 - 0x138]
rol ecx, 5
add eax, ebx
lea ebx, [ecx - 0x359d3e2a]
add ebx, eax
mov eax, dword [ebp - 0x14c]
xor eax, dword [ebp - 0x148]
mov ecx, ebx
xor eax, edx
rol ecx, 5
add eax, dword [ebp + esi*4 - 0x134]
add esi, 5
add eax, edi
lea edi, [ecx - 0x359d3e2a]
add edi, eax
rol edx, 0x1e
cmp esi, 0x50
jb 0xa6b7836
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, edi
pop edi
add dword [ecx + 0xc], ebx
add dword [ecx + 0x10], edx
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x148]
add dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0a7068c0
leave
ret