Function at 0x40007db2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ebx, dword [esi + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x54]
push edi
mov edi, dword [esi + 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x40
pop ecx
lea edx, [ebp - 0x150]
call fcn.40006d3f
lea eax, [ebp - 0x148]
mov dword [ebp + 0xc], 0x40
mov ecx, dword [eax + 0x2c]
xor ecx, dword [eax + 0x18]
xor ecx, dword [eax - 8]
xor ecx, dword [eax]
add eax, 4
mov edx, ecx
shr edx, 0x1f
add ecx, ecx
or edx, ecx
dec dword [ebp + 0xc]
mov dword [eax + 0x34], edx
jne 0x40007df6
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 5
shr eax, 0x1b
or eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 8]
push 0x14
and ecx, ebx
xor ecx, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebp + 0xc]
add eax, dword [ebp + ecx*4 - 0x150]
mov ecx, dword [ebp - 8]
lea eax, [eax + edi + 0x5a827999]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, ebx
shl ecx, 0x1e
shr ebx, 2
or ecx, ebx
inc dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
pop ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jb 0x40007e19
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 8]
mov edx, eax
shl eax, 5
shr edx, 0x1b
or edx, eax
mov eax, dword [ebp - 4]
xor eax, ecx
xor eax, ebx
add edx, eax
mov eax, dword [ebp + 0xc]
add edx, dword [ebp + eax*4 - 0x150]
push 0x28
lea eax, [edx + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, ebx
shl ecx, 0x1e
shr ebx, 2
or ecx, ebx
inc dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
pop ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jb 0x40007e6f
mov dword [ebp - 0x10], eax
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 4]
or eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
and eax, ebx
or eax, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x1b
shl edx, 5
or ecx, edx
add eax, ecx
mov ecx, dword [ebp + 0xc]
add eax, dword [ebp + ecx*4 - 0x150]
mov ecx, dword [ebp - 8]
lea eax, [eax + edi - 0x70e44324]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, ebx
shl ecx, 0x1e
shr ebx, 2
or ecx, ebx
inc dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
push 0x3c
mov dword [ebp - 8], ecx
pop ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jb 0x40007ec0
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 8]
mov edx, eax
shl eax, 5
shr edx, 0x1b
or edx, eax
mov eax, dword [ebp - 4]
xor eax, ecx
xor eax, ebx
add edx, eax
mov eax, dword [ebp + 0xc]
add edx, dword [ebp + eax*4 - 0x150]
lea eax, [edx + edi - 0x359d3e2a]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, ebx
shr ebx, 2
shl ecx, 0x1e
or ecx, ebx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x50
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jb 0x40007f1e
mov ecx, dword [esi + 0x4c]
add ecx, eax
mov eax, dword [esi + 0x50]
add eax, ebx
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x4c], ecx
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x58]
add eax, ecx
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x5c]
add eax, edi
push 0x140
mov dword [esi + 0x5c], eax
lea eax, [ebp - 0x150]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 8