Function at 0x4d2960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
mov eax, dword [0x53d9f8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x12c]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
mov esi, dword [esp + 0x11c]
mov ecx, esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x13c]
push edi
mov edi, dword [esp + 0x124]
mov edx, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], eax
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x94], 0
movups xmmword [esp + 0x6c], xmm0
mov dword [esp + 0x98], 0
movups xmmword [esp + 0x7c], xmm0
movq qword [esp + 0x8c], xmm0
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x5c]
sub edx, 1
jne 0x4d29f0
cmp dword [esp + 0x5c], edi
jne 0x4d2a10
mov dword [ebp], edx
mov dword [ebx], edx
xor eax, eax
jmp 0x4d2dbc
mov edx, dword [ebx]
mov ecx, 1
cmp dword [esp + ecx*4 + 0x5c], 0
jne 0x4d2a24
inc ecx
cmp ecx, 0xf
jbe 0x4d2a17
cmp edx, ecx
mov dword [esp + 0x14], ecx
mov eax, ecx
cmovae eax, edx
mov edx, 0xf
cmp dword [esp + edx*4 + 0x5c], 0
jne 0x4d2a40
sub edx, 1
jne 0x4d2a34
cmp eax, edx
mov dword [esp + 0x2c], edx
mov ebp, edx
cmovbe ebp, eax
mov dword [esp + 0x20], ebp
mov dword [ebx], ebp
mov ebp, 1
shl ebp, cl
cmp ecx, edx
jae 0x4d2a71
nop dword [eax]
sub ebp, dword [esp + ecx*4 + 0x5c]
js 0x4d2db7
inc ecx
add ebp, ebp
cmp ecx, edx
jb 0x4d2a60
lea ebx, [edx*4]
mov eax, dword [esp + ebx + 0x5c]
sub ebp, eax
mov dword [esp + 0x58], ebp
js 0x4d2db7
add eax, ebp
xor ecx, ecx
mov dword [esp + ebx + 0x5c], eax
mov dword [esp + 0xa0], ecx
sub edx, 1
je 0x4d2ab3
xor eax, eax
nop
add ecx, dword [esp + eax + 0x60]
lea eax, [eax + 4]
mov dword [esp + eax + 0xa0], ecx
sub edx, 1
jne 0x4d2aa0
mov ebp, dword [esp + 0x38]
xor ecx, ecx
nop dword [eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4d2adc
mov eax, dword [esp + edx*4 + 0x9c]
mov dword [ebp + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0x9c], eax
inc ecx
cmp ecx, edi
jb 0x4d2ac0
mov eax, dword [esp + ebx + 0x9c]
xor ebp, ebp
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
mov dword [esp + 0x54], eax
mov ebx, edx
mov eax, dword [esp + 0x38]
neg ebx
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xdc], ebp
cmp eax, dword [esp + 0x2c]
jg 0x4d2d9a
lea eax, [esp + eax*4 + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
je 0x4d2d86
mov eax, dword [esp + 0x24]
nop dword [eax + eax]
mov dword [esp + 0x48], eax
dec eax
mov dword [esp + 0x24], eax
lea eax, [edx + ebx]
cmp dword [esp + 0x14], eax
jle 0x4d2c67
mov edi, dword [esp + 0x2c]
mov ebx, eax
inc ecx
mov dword [esp + 0x3c], ebx
sub edi, ebx
mov dword [esp + 0x10], ecx
cmp edi, edx
mov eax, 1
cmova edi, edx
mov edx, dword [esp + 0x14]
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x48]
jbe 0x4d2bca
mov esi, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x24]
add eax, ecx
cmp edx, edi
jae 0x4d2bca
inc edx
cmp edx, edi
jae 0x4d2bca
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x4d2bca
inc edx
sub eax, ecx
cmp edx, edi
jb 0x4d2bb7
mov eax, dword [esp + 0x40]
mov ecx, edx
mov edi, 1
shl edi, cl
mov eax, dword [eax]
lea ecx, [eax + edi]
cmp ecx, 0x5a0
ja 0x4d2db7
mov esi, dword [esp + 0x4c]
lea esi, [esi + eax*8]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xdc], esi
mov eax, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4d2c50
mov eax, dword [esp + 0x20]
mov dword [esp + ecx*4 + 0x9c], ebp
mov ecx, ebx
sub ecx, eax
mov byte [esp + 0x31], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], dl
mov edx, ebp
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xd8]
mov eax, esi
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esp + 0x10]
jmp 0x4d2c56
mov eax, dword [esp + 0x50]
mov dword [eax], esi
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx]
cmp dword [esp + 0x14], eax
jg 0x4d2b76
mov edx, dword [esp + 0x14]
mov al, dl
mov ecx, dword [esp + 0x54]
sub al, bl
mov byte [esp + 0x31], al
mov eax, dword [esp + 0x38]
lea eax, [eax + ecx*4]
cmp dword [esp + 0x18], eax
jb 0x4d2c8b
mov byte [esp + 0x30], 0xc0
jmp 0x4d2ce1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jae 0x4d2cb9
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x30], al
jmp 0x4d2ce1
sub ecx, eax
mov eax, dword [esp + 0x130]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x12c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov ecx, edx
mov eax, ebp
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x4d2d15
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
nop
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, edx
cmp eax, edi
jb 0x4d2d00
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test ebp, eax
je 0x4d2d2f
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x4d2d27
mov edx, dword [esp + 0x20]
xor ebp, eax
mov ecx, ebx
mov dword [esp + 0x44], ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x9c]
je 0x4d2d76
dec ecx
sub ebx, edx
mov dword [esp + 0x10], ecx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x9c]
jne 0x4d2d52
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d2b60
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jle 0x4d2b41
cmp dword [esp + 0x58], 0
je 0x4d2a09
cmp dword [esp + 0x2c], 1
je 0x4d2a09
mov eax, 0xfffffffb
jmp 0x4d2dbc
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bee49
add esp, 0x10c
ret