Function at 0x1799e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ecx, ecx
lea eax, [esi + 0x1d]
movzx edx, byte [eax - 1]
movzx edi, byte [eax]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
mov dword [ebp + ecx*4 - 0x14c], edx
movzx edx, byte [eax + 3]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 6]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 8]
mov dword [ebp + ecx*4 - 0x148], edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 9]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xa]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xc]
mov dword [ebp + ecx*4 - 0x144], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xd]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xe]
shl edx, 8
or edx, edi
mov dword [ebp + ecx*4 - 0x140], edx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jl 0x1799e74
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0x10
mov ecx, dword [eax - 0x20]
xor ecx, dword [eax + 0x14]
mov ebx, dword [eax - 0x1c]
xor ebx, dword [eax + 0x18]
xor ecx, dword [eax]
xor ebx, dword [eax + 4]
mov edx, dword [eax - 0x18]
mov edi, dword [eax - 0x14]
xor ecx, edx
xor ebx, edi
rol ecx, 1
rol ebx, 1
mov dword [eax + 0x24], ebx
mov ebx, dword [eax + 0x1c]
xor ebx, dword [eax - 0x10]
mov dword [eax + 0x20], ecx
xor ebx, dword [eax + 8]
add eax, 0x10
xor ebx, edx
mov edx, dword [eax - 0x1c]
xor edx, dword [eax - 4]
rol ebx, 1
xor edx, ecx
xor edx, edi
rol edx, 1
dec dword [ebp - 4]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], edx
jne 0x1799f27
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0
mov edi, edi
mov esi, eax
not esi
and esi, edx
rol ebx, 5
mov edi, ecx
and edi, eax
or esi, edi
mov edi, dword [ebp - 4]
add ebx, esi
add ebx, dword [ebp + edi*4 - 0x14c]
mov esi, dword [ebp - 0xc]
lea esi, [ebx + esi + 0x5a827999]
mov ebx, dword [ebp - 8]
ror eax, 2
mov dword [ebp - 0xc], edx
mov edx, ebx
not edx
and edx, ecx
mov dword [ebp - 8], esi
rol esi, 5
mov dword [ebp - 4], ecx
mov ecx, eax
and ecx, ebx
or edx, ecx
mov ecx, dword [ebp - 4]
add esi, edx
add esi, dword [ebp + edi*4 - 0x148]
mov edx, dword [ebp - 0xc]
lea edx, [esi + edx + 0x5a827999]
mov esi, eax
ror ebx, 2
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov eax, ecx
not eax
and eax, esi
mov dword [ebp - 4], ebx
and ebx, ecx
or eax, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edx
rol edx, 5
add edx, eax
add edx, dword [ebp + edi*4 - 0x144]
mov eax, dword [ebp - 0xc]
lea eax, [edx + eax + 0x5a827999]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], esi
ror ecx, 2
mov esi, edx
not esi
and esi, ebx
mov dword [ebp - 4], ecx
and ecx, edx
or esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
rol eax, 5
add eax, esi
add eax, dword [ebp + edi*4 - 0x140]
mov dword [ebp - 0xc], ebx
lea esi, [eax + ecx + 0x5a827999]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
ror edx, 2
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
not ebx
and edx, ecx
and ebx, eax
rol esi, 5
or ebx, edx
mov edx, dword [ebp - 0xc]
add esi, ebx
add esi, dword [ebp + edi*4 - 0x13c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
lea esi, [esi + edx + 0x5a827999]
mov edx, dword [ebp - 4]
ror ecx, 2
add edi, 5
mov ebx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp edi, 0x14
jl 0x1799f90
mov edi, 0x14
rol esi, 5
mov ebx, edx
xor ebx, ecx
xor ebx, eax
add esi, ebx
add esi, dword [ebp + edi*4 - 0x14c]
mov ebx, dword [ebp - 0xc]
ror eax, 2
mov dword [ebp - 0xc], edx
lea esi, [esi + ebx + 0x6ed9eba1]
mov ebx, dword [ebp - 8]
mov dword [ebp - 8], esi
rol esi, 5
mov edx, ecx
xor edx, eax
xor edx, ebx
add esi, edx
add esi, dword [ebp + edi*4 - 0x148]
mov edx, dword [ebp - 0xc]
lea edx, [esi + edx + 0x6ed9eba1]
ror ebx, 2
mov esi, eax
xor eax, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 8], edx
rol edx, 5
add edx, eax
add edx, dword [ebp + edi*4 - 0x144]
mov eax, dword [ebp - 0xc]
ror ecx, 2
lea eax, [edx + eax + 0x6ed9eba1]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
rol eax, 5
mov ecx, ebx
xor ecx, dword [ebp - 4]
add edi, 5
xor ecx, edx
add eax, ecx
add eax, dword [ebp + edi*4 - 0x154]
mov ecx, dword [ebp - 8]
ror edx, 2
lea esi, [eax + esi + 0x6ed9eba1]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov edx, eax
xor edx, dword [ebp - 4]
rol esi, 5
xor edx, ecx
add esi, edx
add esi, dword [ebp + edi*4 - 0x150]
mov edx, dword [ebp - 4]
lea esi, [esi + ebx + 0x6ed9eba1]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
ror ecx, 2
mov dword [ebp - 8], esi
cmp edi, 0x28
jl 0x179a0a3
mov dword [ebp - 4], 0x28
rol esi, 5
add esi, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov edi, ecx
or edi, eax
and edi, edx
mov ebx, ecx
and ebx, eax
or edi, ebx
mov ebx, dword [ebp - 4]
add edi, dword [ebp + ebx*4 - 0x14c]
ror eax, 2
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 8]
mov dword [ebp - 8], esi
rol esi, 5
add esi, dword [ebp - 0xc]
mov edx, eax
or edx, edi
and edx, ecx
mov ebx, eax
and ebx, edi
or edx, ebx
mov ebx, dword [ebp - 4]
add edx, dword [ebp + ebx*4 - 0x148]
ror edi, 2
lea edx, [edx + esi - 0x70e44324]
mov esi, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
or esi, ecx
and esi, eax
mov dword [ebp - 8], edx
rol edx, 5
add edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, edi
and eax, ecx
or esi, eax
add esi, dword [ebp + ebx*4 - 0x144]
mov eax, dword [ebp - 4]
lea edx, [esi + edx - 0x70e44324]
ror ecx, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], edi
mov esi, ecx
or esi, eax
and esi, edi
mov dword [ebp - 8], edx
rol edx, 5
add edx, dword [ebp - 0xc]
mov edi, ecx
and edi, eax
or esi, edi
add esi, dword [ebp + ebx*4 - 0x140]
ror eax, 2
lea esi, [esi + edx - 0x70e44324]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov edi, eax
or edi, ecx
and edi, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov edx, eax
and edx, ecx
or edi, edx
add edi, dword [ebp + ebx*4 - 0x13c]
mov edx, dword [ebp - 4]
rol esi, 5
add esi, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
lea esi, [edi + esi - 0x70e44324]
mov edx, eax
mov eax, dword [ebp - 8]
ror ecx, 2
mov dword [ebp - 8], esi
add ebx, 5
mov dword [ebp - 4], ebx
cmp ebx, 0x3c
jl 0x179a183
mov edi, 0x3c
mov dword [ebp - 4], edi
rol esi, 5
add esi, dword [ebp - 0xc]
mov ebx, edx
xor ebx, ecx
xor ebx, eax
add ebx, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 4]
ror eax, 2
lea esi, [ebx + esi - 0x359d3e2a]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
rol esi, 5
add esi, dword [ebp - 0xc]
mov edx, ecx
xor edx, eax
xor edx, ebx
add edx, dword [ebp + edi*4 - 0x148]
ror ebx, 2
lea edx, [edx + esi - 0x359d3e2a]
mov esi, eax
xor eax, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
xor eax, ecx
add eax, dword [ebp + edi*4 - 0x144]
mov dword [ebp - 8], edx
rol edx, 5
add edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], esi
ror ecx, 2
lea eax, [eax + edx - 0x359d3e2a]
mov edx, dword [ebp - 8]
mov esi, ebx
xor esi, ecx
xor esi, edx
add esi, dword [ebp + edi*4 - 0x140]
mov dword [ebp - 8], eax
rol eax, 5
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], ebx
lea esi, [esi + eax - 0x359d3e2a]
mov eax, ecx
mov dword [ebp - 4], ebx
ror edx, 2
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
mov ebx, eax
xor ebx, edx
rol esi, 5
add esi, dword [ebp - 0xc]
xor ebx, ecx
add ebx, dword [ebp + edi*4 - 0x13c]
add edi, 5
lea esi, [ebx + esi - 0x359d3e2a]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
ror ecx, 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp edi, 0x50
jl 0x179a292
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
add ebx, esi
mov esi, dword [edi + 4]
add esi, eax
mov eax, dword [edi + 8]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [edi + 0xc]
add eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
add eax, dword [ebp - 0xc]
mov dword [edi], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x5c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret