Function at 0x463770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov edx, ecx
mov ebp, dword [edx + 4]
push edi
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
sub ebp, 6
xor edi, edi
xor ecx, ecx
xor eax, eax
test ebp, ebp
jle 0x4637f1
cmp edi, dword [edx + 4]
jg 0x4639aa
cmp eax, ebp
jge 0x4637e5
cmp ecx, 4
jge 0x4637e8
movzx ebx, byte [esp + eax*4 + 0x14]
lea esi, [ecx + edi*4]
mov byte [edx + esi*4 + 0x18], bl
movzx ebx, byte [esp + eax*4 + 0x15]
lea esi, [ecx + edi*4]
lea esi, [edx + esi*4]
mov byte [esi + 0x19], bl
movzx ebx, byte [esp + eax*4 + 0x16]
mov byte [esi + 0x1a], bl
movzx ebx, byte [esp + eax*4 + 0x17]
inc eax
inc ecx
cmp eax, ebp
mov byte [esi + 0x1b], bl
jl 0x4637b0
cmp ecx, 4
jne 0x4637ed
inc edi
xor ecx, ecx
cmp eax, ebp
jl 0x4637a3
cmp edi, dword [edx + 4]
jg 0x4639aa
mov dword [esp + 0x10], 0x5371c0
jmp 0x463810
movzx esi, byte [esp + ebp*4 + 0x11]
mov al, byte [esp + 0x14]
xor al, byte [esi + 0x5372e0]
mov byte [esp + 0x14], al
movzx esi, byte [esp + ebp*4 + 0x12]
movzx ebx, byte [esi + 0x5372e0]
xor byte [esp + 0x15], bl
movzx esi, byte [esp + ebp*4 + 0x13]
movzx ebx, byte [esi + 0x5372e0]
xor byte [esp + 0x16], bl
movzx esi, byte [esp + ebp*4 + 0x10]
movzx ebx, byte [esi + 0x5372e0]
mov esi, dword [esp + 0x10]
xor al, byte [esi]
xor byte [esp + 0x17], bl
inc esi
mov byte [esp + 0x14], al
mov dword [esp + 0x10], esi
cmp ebp, 8
je 0x4638a8
cmp ebp, 1
jle 0x463943
lea eax, [esp + 0x15]
lea esi, [ebp - 1]
jmp 0x463880
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x463880
jmp 0x463943
lea eax, [esp + 0x15]
mov esi, 3
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x4638b1
movzx eax, byte [esp + 0x20]
movzx eax, byte [eax + 0x5372e0]
xor byte [esp + 0x24], al
movzx eax, byte [esp + 0x21]
movzx eax, byte [eax + 0x5372e0]
xor byte [esp + 0x25], al
movzx eax, byte [esp + 0x22]
movzx eax, byte [eax + 0x5372e0]
xor byte [esp + 0x26], al
movzx eax, byte [esp + 0x23]
movzx eax, byte [eax + 0x5372e0]
xor byte [esp + 0x27], al
lea eax, [esp + 0x25]
mov esi, 3
lea ecx, [ecx]
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x463920
xor eax, eax
test ebp, ebp
jle 0x4639a1
lea esp, [esp]
cmp edi, dword [edx + 4]
jg 0x4639aa
cmp eax, ebp
jge 0x463995
lea esp, [esp]
cmp ecx, 4
jge 0x463998
movzx ebx, byte [esp + eax*4 + 0x14]
lea esi, [ecx + edi*4]
mov byte [edx + esi*4 + 0x18], bl
movzx ebx, byte [esp + eax*4 + 0x15]
lea esi, [ecx + edi*4]
lea esi, [edx + esi*4]
mov byte [esi + 0x19], bl
movzx ebx, byte [esp + eax*4 + 0x16]
mov byte [esi + 0x1a], bl
movzx ebx, byte [esp + eax*4 + 0x17]
inc eax
inc ecx
cmp eax, ebp
mov byte [esi + 0x1b], bl
jl 0x463960
cmp ecx, 4
jne 0x46399d
inc edi
xor ecx, ecx
cmp eax, ebp
jl 0x463950
cmp edi, dword [edx + 4]
jle 0x463810
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4