Function at 0x1007d9db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov ch, byte [eax]
push edi
mov cl, byte [eax + 1]
push 4
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
add eax, 4
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
pop edx
mov dword [ebp - 0xc], ecx
add eax, edx
xor ecx, ecx
push 0xf
mov ch, byte [eax]
mov cl, byte [eax + 1]
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 3]
movzx edi, byte [eax + edx + 2]
shl ecx, 8
or esi, ecx
add eax, edx
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov ch, byte [eax]
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 3]
shl ecx, 8
or ecx, edi
add eax, edx
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
movzx edi, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edi
lea edi, [ebp - 0x158]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x15c], eax
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 0x40
lea eax, [ebp - 0x154]
pop ecx
mov edi, dword [eax + 0x2c]
xor edi, dword [eax + 0x18]
xor edi, dword [eax - 8]
xor edi, dword [eax]
mov dword [eax + 0x38], edi
add eax, edx
dec ecx
jne 0x1007daa2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x15c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0x14
mov edx, eax
mov ebx, dword [ebp + 8]
not edx
and edx, edi
mov edi, esi
and edi, eax
or edx, edi
mov edi, dword [ebp + 8]
shr edi, 0x1b
shl ebx, 5
or edi, ebx
add edx, edi
mov edi, dword [ebp - 8]
add dword [ebp - 8], 4
add edx, dword [edi]
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
lea edx, [edx + ecx + 0x5a827999]
mov ecx, dword [ebp + 0xc]
or esi, eax
mov eax, dword [ebp + 8]
dec dword [ebp - 4]
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edx
jne 0x1007dad7
lea ebx, [ebp - 0x10c]
mov dword [ebp - 4], 0x14
mov dword [ebp + 0xc], ebx
mov ebx, edx
shr ebx, 0x1b
shl edx, 5
or ebx, edx
mov edx, edi
xor edx, esi
xor edx, eax
add ebx, edx
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
add ebx, dword [edx]
lea edx, [ebx + ecx + 0x6ed9eba1]
mov ecx, edi
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
or esi, eax
mov eax, dword [ebp + 8]
dec dword [ebp - 4]
mov dword [ebp + 8], edx
jne 0x1007db30
lea ebx, [ebp - 0xbc]
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x14
mov ebx, esi
or ebx, eax
and ebx, edi
mov edi, esi
and edi, eax
or ebx, edi
mov edi, edx
shr edi, 0x1b
shl edx, 5
or edi, edx
mov edx, dword [ebp - 8]
add dword [ebp - 8], 4
add ebx, edi
add ebx, dword [edx]
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
lea edx, [ebx + ecx - 0x70e44324]
mov ecx, dword [ebp + 0xc]
or esi, eax
mov eax, dword [ebp + 8]
dec dword [ebp - 4]
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edx
jne 0x1007db7e
lea ebx, [ebp - 0x6c]
mov dword [ebp - 4], 0x14
mov dword [ebp + 0xc], ebx
mov ebx, edx
shr ebx, 0x1b
shl edx, 5
or ebx, edx
mov edx, edi
xor edx, esi
xor edx, eax
add ebx, edx
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
add ebx, dword [edx]
lea edx, [ebx + ecx - 0x359d3e2a]
mov ecx, edi
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
or esi, eax
mov eax, dword [ebp + 8]
dec dword [ebp - 4]
mov dword [ebp + 8], edx
jne 0x1007dbd0
mov ebx, dword [ebp - 0x14]
add ebx, edx
mov edx, dword [ebp + 0x10]
mov dword [edx], ebx
mov ebx, dword [ebp - 0xc]
add eax, ebx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c]
add esi, eax
mov eax, dword [ebp - 0x18]
add edi, eax
mov eax, dword [ebp - 0x10]
mov dword [edx + 0xc], edi
mov dword [edx + 8], esi
add ecx, eax
pop edi
pop esi
mov dword [edx + 0x10], ecx
xor eax, eax
pop ebx
leave
ret 0xc