Function at 0x3662776c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
mov eax, dword [0x3663a11c]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x3662779f
mov eax, dword [edx + 0x4c]
cmp eax, 8
jae 0x3662779f
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx]
mov byte [eax + edx + 0x44], cl
inc dword [edx + 0x4c]
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
jne 0x36627783
cmp dword [edx + 0x4c], 8
jb 0x36627b87
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 0x5c]
xor esi, dword [edx + 0x44]
push edi
mov edi, dword [edx + 0x48]
xor edi, dword [edx + 0x60]
mov ecx, dword [ebp + 0x10]
xor eax, edi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
mov eax, dword [eax*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
shr ecx, 3
xor esi, eax
mov eax, dword [edx + 4]
xor eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
mov eax, dword [eax*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
xor edi, eax
mov eax, dword [edx + 8]
xor eax, edi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
mov eax, dword [eax*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
xor esi, eax
mov eax, dword [edx + 0xc]
xor eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
mov eax, dword [eax*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
xor edi, eax
mov eax, dword [edx + 0x10]
xor eax, edi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
mov eax, dword [eax*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
xor esi, eax
mov eax, dword [edx + 0x14]
xor eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
movzx ebx, byte [ebp + 0xa]
mov eax, dword [eax*4 + 0x36607288]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
xor edi, eax
mov eax, dword [edx + 0x18]
xor eax, edi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
mov eax, dword [eax*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
xor esi, eax
mov eax, dword [edx + 0x1c]
xor eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xb]
movzx ebx, byte [ebp + 0xa]
mov eax, dword [eax*4 + 0x36607288]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, byte [ebp + 9]
xor eax, dword [ebx*4 + 0x36606a88]
movzx ebx, byte [ebp + 8]
xor eax, dword [ebx*4 + 0x36606688]
mov dword [ebp - 8], esi
xor eax, edi
test ecx, ecx
mov dword [ebp - 0xc], eax
je 0x36627b5e
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, esi
lea edi, [ebp - 0xc]
lea ecx, [esi + ecx*8]
sub eax, edi
mov dword [ebp + 0xc], ecx
jmp 0x36627993
mov eax, dword [ebp - 0x14]
xor edi, edi
lea esi, [ebp + edi - 0xc]
mov cl, byte [eax + esi]
xor byte [esi], cl
inc edi
cmp edi, 8
jb 0x36627995
mov edi, dword [ebp - 8]
add eax, 8
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
xor eax, edi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
mov ecx, dword [ecx*4 + 0x36607288]
movzx esi, byte [ebp + 0xa]
xor ecx, dword [esi*4 + 0x36606e88]
movzx esi, ah
xor ecx, dword [esi*4 + 0x36606a88]
mov esi, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
mov eax, dword [edx + 4]
xor esi, ecx
xor eax, esi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
mov ecx, dword [ecx*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor ecx, dword [ebx*4 + 0x36606e88]
movzx ebx, ah
xor ecx, dword [ebx*4 + 0x36606a88]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
mov eax, dword [edx + 8]
xor edi, ecx
xor eax, edi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
mov ecx, dword [ecx*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor ecx, dword [ebx*4 + 0x36606e88]
movzx ebx, ah
xor ecx, dword [ebx*4 + 0x36606a88]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
mov eax, dword [edx + 0xc]
xor esi, ecx
xor eax, esi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
mov ecx, dword [ecx*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor ecx, dword [ebx*4 + 0x36606e88]
movzx ebx, ah
xor ecx, dword [ebx*4 + 0x36606a88]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
mov eax, dword [edx + 0x10]
xor edi, ecx
xor eax, edi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
mov ecx, dword [ecx*4 + 0x36607288]
movzx ebx, byte [ebp + 0xa]
xor ecx, dword [ebx*4 + 0x36606e88]
movzx ebx, ah
xor ecx, dword [ebx*4 + 0x36606a88]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
mov eax, dword [edx + 0x14]
xor esi, ecx
xor eax, esi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
movzx ebx, byte [ebp + 0xa]
mov ecx, dword [ecx*4 + 0x36607288]
xor ecx, dword [ebx*4 + 0x36606e88]
movzx ebx, ah
xor ecx, dword [ebx*4 + 0x36606a88]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
mov eax, dword [edx + 0x18]
xor edi, ecx
xor eax, edi
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
movzx ebx, byte [ebp + 0xa]
mov ecx, dword [ecx*4 + 0x36607288]
xor ecx, dword [ebx*4 + 0x36606e88]
movzx ebx, ah
xor ecx, dword [ebx*4 + 0x36606a88]
movzx eax, al
xor ecx, dword [eax*4 + 0x36606688]
xor esi, ecx
mov ecx, dword [edx + 0x1c]
xor ecx, esi
mov dword [ebp + 8], ecx
movzx eax, byte [ebp + 0xb]
movzx ebx, byte [ebp + 0xa]
mov eax, dword [eax*4 + 0x36607288]
xor eax, dword [ebx*4 + 0x36606e88]
movzx ebx, ch
xor eax, dword [ebx*4 + 0x36606a88]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x36606688]
mov dword [ebp - 8], esi
xor eax, edi
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jne 0x36627990
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and ecx, 7
mov dword [edx + 0x4c], ecx
mov ebx, ecx
shr ecx, 2
lea edi, [edx + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [edx + 0x60], eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.3662acac
leave
ret 0xc