Function at 0x4d4610
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor eax, eax
jmp 0x4d4620
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
and dl, 1
mov byte [eax + 0x56a390], dl
inc eax
cmp eax, 0x40
jl 0x4d4620
xor eax, eax
movsx ecx, byte [eax + 0x548f60]
mov dl, byte [ecx + 0x56a38f]
movsx ecx, byte [eax + 0x548f61]
mov byte [eax + 0x5697c8], dl
mov dl, byte [ecx + 0x56a38f]
movsx ecx, byte [eax + 0x548f62]
mov byte [eax + 0x5697c9], dl
mov dl, byte [ecx + 0x56a38f]
movsx ecx, byte [eax + 0x548f63]
mov byte [eax + 0x5697ca], dl
mov dl, byte [ecx + 0x56a38f]
mov byte [eax + 0x5697cb], dl
add eax, 4
cmp eax, 0x40
jl 0x4d4640
mov al, byte [esp + 0x24]
test al, al
mov ebx, dword [esp + 0x20]
mov edx, 0x10
mov ecx, edx
mov esi, 0x5697c8
mov edi, 0x56a390
rep movsd dword es:[edi], dword [esi]
jne 0x4d4748
mov eax, dword [0x5637b4]
mov ebp, dword [0x5637b0]
sub eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
lea esp, [esp]
push ebx
mov ecx, 8
mov esi, ebp
mov edi, 0x56a370
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004d4480
mov ecx, dword [0x5637b4]
add esp, 8
add ecx, 2
mov eax, ebp
mov esi, 8
jmp 0x4d4700
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
xor byte [eax], dl
mov dl, byte [ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [ecx]
xor byte [eax + 2], dl
mov dl, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec esi
jne 0x4d4700
mov eax, dword [esp + 0x24]
mov edi, dword [0x5637b4]
add ebx, 0x30
mov ecx, 8
mov esi, 0x56a370
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], eax
jne 0x4d46d0
jmp 0x4d47d3
mov eax, dword [0x5637b0]
mov ebp, dword [0x5637b4]
sub eax, ebp
mov dword [esp + 0x10], eax
add ebx, 0x2d0
mov dword [esp + 0x24], edx
push ebx
mov ecx, 8
mov esi, ebp
mov edi, 0x56a370
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004d4480
mov ecx, dword [0x5637b0]
add esp, 8
add ecx, 2
mov eax, ebp
mov esi, 8
jmp 0x4d4790
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
xor byte [eax], dl
mov dl, byte [ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [ecx]
xor byte [eax + 2], dl
mov dl, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec esi
jne 0x4d4790
mov eax, dword [esp + 0x24]
mov edi, dword [0x5637b0]
sub ebx, 0x30
mov ecx, 8
mov esi, 0x56a370
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], eax
jne 0x4d4763
xor eax, eax
jmp 0x4d47e0
movsx ecx, byte [eax + 0x548fa0]
mov dl, byte [ecx + 0x56a38f]
movsx ecx, byte [eax + 0x548fa1]
mov byte [eax + 0x5697c8], dl
mov dl, byte [ecx + 0x56a38f]
movsx ecx, byte [eax + 0x548fa2]
mov byte [eax + 0x5697c9], dl
mov dl, byte [ecx + 0x56a38f]
movsx ecx, byte [eax + 0x548fa3]
mov byte [eax + 0x5697ca], dl
mov dl, byte [ecx + 0x56a38f]
mov byte [eax + 0x5697cb], dl
add eax, 4
cmp eax, 0x40
jl 0x4d47e0
mov ebp, dword [esp + 0x18]
mov ecx, 0x10
mov esi, 0x5697c8
mov edi, 0x56a390
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
xor edx, edx
mov edi, 3
mov esi, 2
mov eax, 1
mov bl, byte [eax + 0x56a38f]
mov ecx, edx
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, edx
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add edx, 4
or byte [ecx], bl
mov bl, byte [eax + 0x56a390]
mov ecx, eax
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, eax
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add eax, 4
or byte [ecx], bl
mov bl, byte [esi + 0x56a390]
mov ecx, esi
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, esi
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add esi, 4
or byte [ecx], bl
mov bl, byte [edi + 0x56a390]
mov ecx, edi
sar ecx, 3
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, edi
and ecx, 7
shl bl, cl
mov ecx, dword [esp + 0x24]
add edi, 4
or byte [ecx], bl
cmp eax, 0x41
jl 0x4d4863
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret