Function at 0x41d6c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
push edi
mov dword [ebp - 0xc], 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 - 0x154], ecx
inc edi
cmp edi, 0x10
jb 0x41d6e0
mov eax, dword [ebp - 0x10]
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 - 0x14], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 8], 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 0x41d734
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, edi
xor eax, edx
rol ecx, 5
and eax, ebx
rol ebx, 0x1e
xor eax, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp + esi*4 - 0x154]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 8], 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 - 4]
add ecx, dword [ebp + esi*4 - 0x150]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 4], eax
mov ecx, eax
rol ecx, 5
mov eax, ebx
xor eax, edi
add ecx, 0x5a827999
and eax, dword [ebp - 8]
xor eax, ebx
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp + esi*4 - 0x14c]
rol eax, 0x1e
add edx, ecx
mov dword [ebp - 8], eax
mov ecx, edx
xor eax, edi
rol ecx, 5
and eax, dword [ebp - 4]
rol dword [ebp - 4], 0x1e
xor eax, edi
add eax, 0x5a827999
add edi, 0x5a827999
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp + esi*4 - 0x148]
xor eax, dword [ebp - 4]
add ebx, ecx
and eax, edx
mov ecx, ebx
xor eax, dword [ebp - 8]
rol ecx, 5
add ecx, eax
rol edx, 0x1e
add ecx, dword [ebp + esi*4 - 0x144]
add esi, 5
add edi, ecx
cmp esi, 0x14
jb 0x41d74f
mov dword [ebp - 0xc], edx
cmp esi, 0x28
jae 0x41d9c0
mov eax, dword [ebp - 4]
mov ecx, edi
xor eax, edx
rol ecx, 5
xor eax, ebx
rol ebx, 0x1e
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp + esi*4 - 0x154]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 8], 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 - 4]
add ecx, dword [ebp + esi*4 - 0x150]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 4], eax
mov ecx, eax
mov eax, dword [ebp - 8]
rol ecx, 5
xor eax, ebx
xor eax, edi
add ecx, 0x6ed9eba1
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp + esi*4 - 0x14c]
add edx, ecx
rol eax, 0x1e
mov dword [ebp - 8], eax
mov ecx, edx
xor eax, dword [ebp - 4]
rol dword [ebp - 4], 0x1e
xor eax, edi
rol ecx, 5
add eax, 0x6ed9eba1
add ecx, eax
add edi, 0x6ed9eba1
add ecx, dword [ebp + esi*4 - 0x148]
mov eax, dword [ebp - 8]
add ebx, ecx
xor eax, dword [ebp - 4]
mov ecx, ebx
rol ecx, 5
xor eax, edx
add ecx, eax
rol edx, 0x1e
add ecx, dword [ebp + esi*4 - 0x144]
add esi, 5
add edi, ecx
cmp esi, 0x28
jb 0x41d821
jmp 0x41d9bd
mov eax, dword [ebp - 0xc]
mov edx, edi
mov ecx, eax
rol edx, 5
or ecx, ebx
and eax, ebx
and ecx, dword [ebp - 4]
or ecx, eax
rol ebx, 0x1e
add ecx, dword [ebp + esi*4 - 0x154]
lea eax, [edx - 0x70e44324]
add ecx, dword [ebp - 8]
add eax, ecx
mov ecx, ebx
or ecx, edi
mov dword [ebp - 8], eax
and ecx, dword [ebp - 0xc]
mov edx, eax
rol edx, 5
mov eax, ebx
and eax, edi
rol edi, 0x1e
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x150]
add ecx, dword [ebp - 4]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov dword [ebp - 4], eax
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, eax
or ecx, edi
rol edx, 5
and ecx, ebx
and eax, edi
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x14c]
add ecx, dword [ebp - 0xc]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov ecx, dword [ebp - 8]
rol ecx, 0x1e
mov edx, eax
mov dword [ebp - 8], ecx
or ecx, dword [ebp - 4]
and ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
and eax, dword [ebp - 4]
or ecx, eax
rol edx, 5
add ecx, dword [ebp + esi*4 - 0x148]
mov eax, dword [ebp - 4]
add ecx, ebx
rol eax, 0x1e
lea ebx, [edx - 0x70e44324]
mov dword [ebp - 4], eax
add ebx, ecx
mov ecx, eax
or ecx, dword [ebp - 0xc]
mov edx, ebx
and ecx, dword [ebp - 8]
and eax, dword [ebp - 0xc]
rol edx, 5
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x144]
add esi, 5
add ecx, edi
lea edi, [edx - 0x70e44324]
mov edx, dword [ebp - 0xc]
add edi, ecx
rol edx, 0x1e
mov dword [ebp - 0xc], edx
cmp esi, 0x3c
jb 0x41d8e0
jmp 0x41da7e
mov eax, dword [ebp - 4]
mov ecx, edi
xor eax, edx
rol ecx, 5
xor eax, ebx
add ecx, 0xca62c1d6
add eax, dword [ebp + esi*4 - 0x154]
add eax, dword [ebp - 8]
add eax, ecx
rol ebx, 0x1e
mov dword [ebp - 8], 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 - 0x150]
add eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 4], eax
mov ecx, eax
mov eax, dword [ebp - 8]
xor eax, ebx
rol ecx, 5
xor eax, edi
add eax, dword [ebp + esi*4 - 0x14c]
add eax, edx
lea edx, [ecx - 0x359d3e2a]
add edx, eax
mov eax, dword [ebp - 8]
rol eax, 0x1e
mov ecx, edx
mov dword [ebp - 8], eax
xor eax, dword [ebp - 4]
rol dword [ebp - 4], 0x1e
xor eax, edi
add eax, dword [ebp + esi*4 - 0x148]
rol ecx, 5
add eax, ebx
lea ebx, [ecx - 0x359d3e2a]
add ebx, eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 4]
mov ecx, ebx
xor eax, edx
rol ecx, 5
add eax, dword [ebp + esi*4 - 0x144]
add esi, 5
add eax, edi
lea edi, [ecx - 0x359d3e2a]
add edi, eax
rol edx, 0x1e
cmp esi, 0x50
jb 0x41d9ce
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, edi
pop edi
add dword [ecx + 0xc], ebx
add dword [ecx + 0x10], edx
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
add dword [ecx + 0x14], eax
mov eax, dword [ebp - 8]
add dword [ecx + 0x18], eax
xor eax, eax
pop esi
pop ebx
leave
ret