Function at 0x4dd2f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5c4
push ebx
push ebp
mov ebp, dword [esp + 0x5d4]
push esi
mov esi, dword [esp + 0x5d4]
cmp ebp, 0x100
jbe 0x4dd31b
mov eax, dword [esi + 0x400]
mov dword [esp + 0x34], eax
jmp 0x4dd323
mov dword [esp + 0x34], 0x10
push 0x44
xor ebx, ebx
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.004e4400
add esp, 0xc
mov ecx, esi
mov edx, ebp
lea esp, [esp]
mov eax, dword [ecx]
inc dword [esp + eax*4 + 0x44]
lea eax, [esp + eax*4 + 0x44]
add ecx, 4
sub edx, 1
jne 0x4dd340
cmp dword [esp + 0x44], ebp
jne 0x4dd378
mov edx, dword [esp + 0x5e8]
mov eax, dword [esp + 0x5ec]
pop esi
mov dword [edx], ebx
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c4
ret 0x1c
mov ecx, 1
lea ecx, [ecx]
cmp dword [esp + ecx*4 + 0x44], ebx
jne 0x4dd38c
inc ecx
cmp ecx, 0x10
jbe 0x4dd380
mov edx, dword [esp + 0x5ec]
mov dword [esp + 0xc], ecx
cmp dword [edx], ecx
jae 0x4dd39d
mov dword [edx], ecx
mov eax, 0x10
cmp dword [esp + eax*4 + 0x44], ebx
jne 0x4dd3ad
sub eax, 1
jne 0x4dd3a2
mov dword [esp + 0x28], eax
cmp dword [edx], eax
jbe 0x4dd3b7
mov dword [edx], eax
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x4dd3cf
sub edx, dword [esp + ecx*4 + 0x44]
js 0x4dd3f5
inc ecx
add edx, edx
cmp ecx, eax
jb 0x4dd3c2
push edi
lea edi, [eax*4]
mov ecx, dword [esp + edi + 0x48]
sub edx, ecx
mov dword [esp + 0x44], edx
jns 0x4dd406
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x5c4
ret 0x1c
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x5c4
ret 0x1c
add ecx, edx
mov dword [esp + edi + 0x48], ecx
xor ecx, ecx
sub eax, 1
mov dword [esp + 0xd4], ebx
je 0x4dd433
xor edx, edx
lea esp, [esp]
add ecx, dword [esp + edx + 0x4c]
add edx, 4
sub eax, 1
mov dword [esp + edx + 0xd4], ecx
jne 0x4dd420
push 0x480
lea ecx, [esp + 0x158]
push ebx
push ecx
call fcn.004e4400
add esp, 0xc
xor edx, edx
jmp 0x4dd450
mov eax, dword [esi]
add esi, 4
cmp eax, ebx
je 0x4dd471
mov ecx, dword [esp + eax*4 + 0xd0]
lea eax, [esp + eax*4 + 0xd0]
mov dword [esp + ecx*4 + 0x154], edx
inc ecx
mov dword [eax], ecx
inc edx
cmp edx, ebp
jb 0x4dd450
mov edx, dword [esp + edi + 0xd0]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x154]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
or esi, 0xffffffff
xor ebp, ebp
cmp ecx, eax
mov dword [esp + 0x5dc], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x3c], ebx
jg 0x4dd769
lea edx, [ecx - 1]
mov dword [esp + 0x30], edx
lea edx, [esp + ecx*4 + 0x48]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4dd753
jmp 0x4dd4f0
mov eax, dword [esp + esi*4 + 0x90]
dec dword [esp + 0x18]
add eax, ebx
cmp ecx, eax
jle 0x4dd63b
lea edx, [esp + 0x114]
sub edx, 4
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x5f0]
mov eax, dword [eax]
sub edx, ebp
inc esi
mov dword [esp + 0x34], ebp
cmp edx, eax
jbe 0x4dd52f
mov edx, eax
mov ebx, ecx
sub ebx, ebp
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x18]
inc ecx
cmp eax, ecx
jbe 0x4dd56e
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x18]
inc ebx
add eax, ecx
cmp ebx, edx
jae 0x4dd56a
mov ecx, dword [edi + 4]
add edi, 4
add eax, eax
cmp eax, ecx
jbe 0x4dd56a
inc ebx
sub eax, ecx
cmp ebx, edx
jb 0x4dd557
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
lea edx, [ebx + ebp]
cmp edx, eax
jbe 0x4dd581
cmp ebp, eax
jae 0x4dd581
mov ebx, eax
sub ebx, ebp
mov ecx, ebx
mov ebp, 1
shl ebp, cl
mov dword [esp + esi*4 + 0x90], ebx
lea eax, [ebp*8 + 8]
push eax
call fcn.004e3b96
add esp, 4
test eax, eax
je 0x4dd797
mov edx, dword [esp + 0x5ec]
lea ecx, [eax + 8]
add eax, 4
mov dword [edx], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x5ec], eax
mov dword [eax], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + esi*4 + 0x114], ecx
test esi, esi
je 0x4dd622
mov al, byte [esp + esi*4 + 0x8c]
mov byte [esp + 0x1d], al
add bl, 0x20
mov byte [esp + 0x1c], bl
mov ebx, ecx
mov ecx, edx
mov eax, 1
shl eax, cl
sub ecx, dword [esp + esi*4 + 0x8c]
mov dword [esp + esi*4 + 0xd0], edi
mov dword [esp + 0x20], ebx
dec eax
and eax, edi
mov edi, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + eax*8], edi
mov edi, dword [esp + 0x28]
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [esp + esi*4 + 0x90]
mov ecx, dword [esp + 0x10]
add eax, edx
cmp ecx, eax
jg 0x4dd513
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x5dc]
mov dl, cl
sub dl, bl
mov byte [esp + 0x1d], dl
lea edx, [esp + eax*4 + 0x154]
mov eax, dword [esp + 0x14]
cmp eax, edx
jb 0x4dd660
mov byte [esp + 0x1c], 0x63
jmp 0x4dd6b5
mov eax, dword [eax]
mov edx, dword [esp + 0x5e0]
cmp eax, edx
jae 0x4dd690
cmp eax, 0x100
setb al
add al, 0x1f
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x14]
mov dx, word [eax]
add eax, 4
mov word [esp + 0x20], dx
mov dword [esp + 0x14], eax
jmp 0x4dd6b5
sub eax, edx
mov edx, dword [esp + 0x5e8]
mov dl, byte [eax + edx]
add dword [esp + 0x14], 4
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x5e4]
mov ax, word [edx + eax*2]
mov word [esp + 0x20], ax
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, ebp
jae 0x4dd6f0
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + eax*8]
nop
mov edi, dword [esp + 0x1c]
mov dword [ecx], edi
mov edi, dword [esp + 0x20]
mov dword [ecx + 4], edi
lea edi, [edx*8]
add eax, edx
add ecx, edi
cmp eax, ebp
jb 0x4dd6d0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, 1
shl eax, cl
test edi, eax
je 0x4dd708
nop
xor edi, eax
shr eax, 1
test edi, eax
jne 0x4dd700
mov edx, 1
mov ecx, ebx
shl edx, cl
xor edi, eax
mov dword [esp + 0x28], edi
dec edx
and edx, edi
cmp edx, dword [esp + esi*4 + 0xd0]
je 0x4dd740
sub ebx, dword [esp + esi*4 + 0x8c]
dec esi
mov eax, 1
mov ecx, ebx
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + esi*4 + 0xd0]
jne 0x4dd723
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x10]
jne 0x4dd4f0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x24], 4
inc dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jle 0x4dd4d2
cmp dword [esp + 0x44], 0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x5f0]
mov dword [edx], ecx
je 0x4dd7cd
cmp eax, 1
je 0x4dd7cd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c4
ret 0x1c
test esi, esi
je 0x4dd7bb
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4dd7bb
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.004e3342
add esp, 4
mov eax, esi
test esi, esi
jne 0x4dd7a6
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x5c4
ret 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c4
ret 0x1c