Function at 0x415700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
movdqu xmm0, xmmword [eax]
push edi
xor edi, edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi + 4]
movdqu xmmword [ebp - 0x24], xmm0
sub ebx, 6
mov dword [ebp - 0x34], edi
movdqu xmm0, xmmword [eax + 0x10]
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ecx
movdqu xmmword [ebp - 0x14], xmm0
test ebx, ebx
jle 0x4157a3
cmp edi, dword [esi + 4]
jg 0x4157a0
cmp ecx, ebx
jge 0x415794
cmp eax, 4
jge 0x415797
movzx ecx, byte [ebp + ecx*4 - 0x24]
lea edx, [eax + edi*4]
mov byte [esi + edx*4 + 0x18], cl
lea ecx, [eax + edi*4]
lea edx, [esi + ecx*4]
inc eax
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [ebp + ecx*4 - 0x23]
mov byte [edx + 0x19], cl
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [ebp + ecx*4 - 0x22]
mov byte [edx + 0x1a], cl
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [ebp + ecx*4 - 0x21]
mov byte [edx + 0x1b], cl
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, ebx
jl 0x415750
cmp eax, 4
jne 0x41579c
inc edi
xor eax, eax
cmp ecx, ebx
jl 0x415747
mov dword [ebp - 0x34], edi
cmp edi, dword [esi + 4]
jg 0x41593e
mov esi, 0x4e19d0
movzx ecx, byte [ebp + ebx*4 - 0x27]
mov dl, byte [ebp - 0x24]
xor dl, byte [ecx + 0x4df3d0]
mov byte [ebp - 0x24], dl
movzx ecx, byte [ebp + ebx*4 - 0x26]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x23], cl
movzx ecx, byte [ebp + ebx*4 - 0x25]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x22], cl
movzx ecx, byte [ebp + ebx*4 - 0x28]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x21], cl
movzx ecx, byte [esi]
inc esi
xor byte [ebp - 0x24], cl
mov dword [ebp - 0x38], esi
cmp ebx, 8
je 0x41583b
cmp ebx, 1
jle 0x4158c9
lea ecx, [ebx - 1]
lea esi, [ebp - 0x23]
mov dword [ebp - 0x28], ecx
mov ebx, ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
dec ebx
jne 0x415812
mov ebx, dword [ebp - 0x30]
jmp 0x4158c9
lea esi, [ebp - 0x23]
mov ebx, 3
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
dec ebx
jne 0x415843
movzx ecx, byte [ebp - 0x18]
lea edi, [ebx + 3]
mov ebx, dword [ebp - 0x30]
lea esi, [ebp - 0x13]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x14], cl
movzx ecx, byte [ebp - 0x17]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x13], cl
movzx ecx, byte [ebp - 0x16]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x12], cl
movzx ecx, byte [ebp - 0x15]
movzx ecx, byte [ecx + 0x4df3d0]
xor byte [ebp - 0x11], cl
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
dec edi
jne 0x4158a5
mov edi, dword [ebp - 0x34]
xor esi, esi
test ebx, ebx
jle 0x41592f
mov ecx, dword [ebp - 0x2c]
cmp edi, dword [ecx + 4]
jg 0x41592c
cmp esi, ebx
jge 0x415920
jmp 0x4158e0
cmp eax, 4
jge 0x41591d
mov ebx, dword [ebp - 0x2c]
lea edx, [eax + edi*4]
movzx ecx, byte [ebp + esi*4 - 0x24]
mov byte [ebx + edx*4 + 0x18], cl
mov edx, ebx
mov ebx, dword [ebp - 0x30]
lea ecx, [eax + edi*4]
lea edx, [edx + ecx*4]
inc eax
movzx ecx, byte [ebp + esi*4 - 0x23]
mov byte [edx + 0x19], cl
movzx ecx, byte [ebp + esi*4 - 0x22]
mov byte [edx + 0x1a], cl
movzx ecx, byte [ebp + esi*4 - 0x21]
inc esi
mov byte [edx + 0x1b], cl
cmp esi, ebx
jl 0x4158e0
mov ecx, dword [ebp - 0x2c]
cmp eax, 4
jne 0x415928
inc edi
xor eax, eax
cmp esi, ebx
jl 0x4158d2
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmp edi, dword [ecx + 4]
jle 0x4157b1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret 4