Function at 0x4d64b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x164
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
test dword [0x61fd40], 0x800000
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x14c], ecx
jne 0x4d6b00
mov edi, ecx
lea edx, [ebp - 0xc8]
sub edi, edx
lea edx, [ebp - 0x88]
sub edx, ecx
mov dword [ebp - 0x13c], edx
lea edx, [ebp - 0x87]
sub edx, ecx
mov dword [ebp - 0x160], edx
lea edx, [ebp - 0x86]
sub edx, ecx
mov dword [ebp - 0x150], edx
lea edx, [ebp - 0x85]
sub edx, ecx
mov dword [ebp - 0x164], edx
mov ecx, eax
lea edx, [ebp - 0x88]
sub ecx, edx
mov dword [ebp - 0x128], ecx
lea ecx, [eax + 2]
lea edx, [ebp - 0xc8]
sub eax, edx
mov esi, eax
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x12c], esi
jmp 0x4d6566
mov edi, dword [ebp - 0x15c]
xor eax, eax
jmp 0x4d6570
lea ecx, [ebp + eax - 0xc8]
mov dl, byte [ecx + edi]
mov byte [ecx], dl
mov cl, byte [esi + ecx]
xor cl, dl
mov byte [ebp + eax - 0x88], cl
inc eax
cmp eax, 0x40
jl 0x4d6570
mov ecx, 0x5b6ee8
mov dword [ebp - 0xd4], ecx
xor eax, eax
jmp 0x4d65a6
mov ecx, dword [ebp - 0xd4]
test eax, eax
je 0x4d65b0
xor edx, edx
xor esi, esi
jmp 0x4d65b5
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp + eax*8 - 0x48], edx
mov dword [ebp + eax*8 - 0x44], esi
lea ecx, [ebp + eax*8 - 0x48]
mov dword [ebp - 0xcc], ecx
lea edx, [eax - 1]
and edx, 7
movzx ecx, byte [ebp + edx*8 - 0xc7]
mov esi, dword [ecx*8 + 0x5b66e8]
mov edi, dword [ecx*8 + 0x5b66ec]
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], esi
shrd esi, edi, 8
shr edi, 8
lea ecx, [eax - 2]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0xc6]
mov ebx, dword [ecx*8 + 0x5b66e8]
mov edx, dword [ecx*8 + 0x5b66ec]
mov dword [ebp - 0x134], edx
xor edi, dword [ebp - 0x134]
xor esi, ebx
shrd esi, edi, 8
lea ecx, [eax - 3]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0xc5]
mov edx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
mov dword [ebp - 0xf8], edx
xor esi, dword [ebp - 0xf8]
shr edi, 8
mov dword [ebp - 0xf4], ecx
xor edi, dword [ebp - 0xf4]
lea edx, [eax - 4]
and edx, 7
movzx ecx, byte [ebp + edx*8 - 0xc4]
mov edx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
shrd esi, edi, 8
mov dword [ebp - 0x118], edx
xor esi, dword [ebp - 0x118]
shr edi, 8
mov dword [ebp - 0x114], ecx
xor edi, dword [ebp - 0x114]
lea edx, [eax + 3]
and edx, 7
movzx ecx, byte [ebp + edx*8 - 0xc3]
mov edx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
shrd esi, edi, 8
mov dword [ebp - 0xe0], edx
xor esi, dword [ebp - 0xe0]
shr edi, 8
mov dword [ebp - 0xdc], ecx
xor edi, dword [ebp - 0xdc]
lea edx, [eax + 2]
and edx, 7
movzx ecx, byte [ebp + edx*8 - 0xc2]
mov edx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
shrd esi, edi, 8
mov dword [ebp - 0x104], ecx
shr edi, 8
xor edi, dword [ebp - 0x104]
mov dword [ebp - 0x108], edx
xor esi, dword [ebp - 0x108]
lea ecx, [eax + 1]
mov dword [ebp - 0xd0], ecx
and ecx, 7
movzx edx, byte [ebp + ecx*8 - 0xc1]
mov ecx, dword [edx*8 + 0x5b66e8]
mov edx, dword [edx*8 + 0x5b66ec]
shrd esi, edi, 8
shr edi, 8
xor edi, edx
xor esi, ecx
shrd esi, edi, 8
shld edx, ecx, 8
shl ecx, 8
shr edi, 8
xor ecx, dword [ebp - 0x108]
mov dword [ebp - 0x138], ebx
xor edx, dword [ebp - 0x104]
movzx eax, byte [ebp + eax*8 - 0xc8]
shld edx, ecx, 8
xor edx, dword [ebp - 0xdc]
shl ecx, 8
xor ecx, dword [ebp - 0xe0]
shld edx, ecx, 8
xor edx, dword [ebp - 0x114]
shl ecx, 8
xor ecx, dword [ebp - 0x118]
shld edx, ecx, 8
xor edx, dword [ebp - 0xf4]
shl ecx, 8
xor ecx, dword [ebp - 0xf8]
shld edx, ecx, 8
xor edx, dword [ebp - 0x134]
shl ecx, 8
xor ecx, ebx
shld edx, ecx, 8
xor edx, dword [ebp - 0x154]
shl ecx, 8
xor ecx, dword [ebp - 0x158]
shld edx, ecx, 8
shl ecx, 8
xor esi, ecx
xor esi, dword [eax*8 + 0x5b66e8]
xor edi, edx
xor edi, dword [eax*8 + 0x5b66ec]
mov eax, dword [ebp - 0xcc]
xor dword [eax], esi
xor dword [eax + 4], edi
mov eax, dword [ebp - 0xd0]
cmp eax, 8
jl 0x4d65a0
mov ecx, 0x10
lea esi, [ebp - 0x48]
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
mov eax, 2
xor edx, edx
mov dword [ebp - 0xcc], 8
lea ecx, [eax - 3]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x87]
mov esi, dword [ecx*8 + 0x5b66e8]
mov edi, dword [ecx*8 + 0x5b66ec]
lea ecx, [eax - 4]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x86]
mov ebx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x148], esi
shrd esi, edi, 8
shr edi, 8
xor edi, dword [ebp - 0x11c]
lea ecx, [eax + 3]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x85]
mov dword [ebp - 0x120], ebx
mov ebx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
xor esi, dword [ebp - 0x120]
mov dword [ebp - 0x10c], ecx
shrd esi, edi, 8
shr edi, 8
xor edi, dword [ebp - 0x10c]
lea ecx, [eax + 2]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x84]
mov dword [ebp - 0x110], ebx
mov ebx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
xor esi, dword [ebp - 0x110]
mov dword [ebp - 0xfc], ecx
shrd esi, edi, 8
lea ecx, [eax + 1]
mov dword [ebp - 0xd0], ecx
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x83]
shr edi, 8
xor edi, dword [ebp - 0xfc]
mov dword [ebp - 0x100], ebx
mov ebx, dword [ecx*8 + 0x5b66e8]
xor esi, dword [ebp - 0x100]
mov ecx, dword [ecx*8 + 0x5b66ec]
shrd esi, edi, 8
mov dword [ebp - 0xec], ecx
mov ecx, eax
shr edi, 8
xor edi, dword [ebp - 0xec]
and ecx, 7
movzx ecx, byte [ebp + ecx*8 - 0x82]
mov dword [ebp - 0xf0], ebx
xor esi, dword [ebp - 0xf0]
mov ebx, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
shrd esi, edi, 8
shr edi, 8
mov dword [ebp - 0xe4], ecx
xor edi, dword [ebp - 0xe4]
dec eax
and eax, 7
movzx ecx, byte [ebp + eax*8 - 0x81]
mov eax, dword [ecx*8 + 0x5b66e8]
mov ecx, dword [ecx*8 + 0x5b66ec]
xor esi, ebx
shrd esi, edi, 8
shr edi, 8
xor edi, ecx
shld ecx, eax, 8
xor ecx, dword [ebp - 0xe4]
xor esi, eax
shl eax, 8
xor eax, ebx
shld ecx, eax, 8
shrd esi, edi, 8
shl eax, 8
shr edi, 8
xor eax, dword [ebp - 0xf0]
mov dword [ebp - 0xe8], ebx
xor ecx, dword [ebp - 0xec]
add edx, 8
shld ecx, eax, 8
xor ecx, dword [ebp - 0xfc]
shl eax, 8
xor eax, dword [ebp - 0x100]
shld ecx, eax, 8
xor ecx, dword [ebp - 0x10c]
shl eax, 8
xor eax, dword [ebp - 0x110]
shld ecx, eax, 8
xor ecx, dword [ebp - 0x11c]
shl eax, 8
xor eax, dword [ebp - 0x120]
shld ecx, eax, 8
xor ecx, dword [ebp - 0x144]
shl eax, 8
xor eax, dword [ebp - 0x148]
shld ecx, eax, 8
shl eax, 8
xor esi, eax
movzx eax, byte [ebp + edx - 0x90]
xor esi, dword [eax*8 + 0x5b66e8]
xor edi, ecx
xor edi, dword [eax*8 + 0x5b66ec]
xor dword [ebp + edx - 0x50], esi
xor dword [ebp + edx - 0x4c], edi
dec dword [ebp - 0xcc]
mov eax, dword [ebp - 0xd0]
jne 0x4d6810
mov ecx, 0x10
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xd4]
add ecx, 8
mov dword [ebp - 0xd4], ecx
cmp ecx, 0x5b6f38
jl 0x4d6599
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x128]
mov edx, 0x10
mov esi, dword [ebp - 0x13c]
add esi, eax
movzx ebx, byte [edi + esi]
xor bl, byte [eax]
add eax, 4
xor bl, byte [esi]
mov esi, dword [ebp - 0x160]
mov byte [eax - 4], bl
movzx ebx, byte [esi + eax - 4]
xor bl, byte [ecx - 1]
mov esi, dword [ebp - 0x150]
xor byte [eax - 3], bl
movzx ebx, byte [esi + eax - 4]
xor bl, byte [ecx]
mov esi, dword [ebp - 0x164]
xor byte [eax - 2], bl
movzx ebx, byte [esi + eax - 4]
xor bl, byte [ecx + 1]
add ecx, 4
xor byte [eax - 1], bl
dec edx
jne 0x4d6a7a
mov esi, dword [ebp - 0x12c]
add esi, 0x40
add edi, 0x40
dec dword [ebp + 0xc]
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], edi
jne 0x4d6560
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.005793c0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret