Function at 0x4ddbe0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x668a7d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6d6ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
mov ecx, dword [ebx + 0x28]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x58], eax
cmp ecx, 0x120c
je 0x4ddc4f
test edx, edx
je 0x4ddc40
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.004df290
mov edi, dword [ebp - 0x68]
add esp, 4
push 0x120c
call fcn.004df230
add esp, 4
mov edx, eax
mov eax, edi
mov dword [ebx + 0x2c], edx
shr eax, 2
mov dword [ebp - 0x64], eax
add eax, 6
mov dword [ebx + 0x28], 0x120c
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x24], 0
mov ecx, dword [ebx + 0x18]
lea eax, [eax*4 + 4]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x54], eax
cmp ecx, eax
je 0x4ddcab
test edx, edx
je 0x4ddc9b
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.004df210
mov edi, dword [ebp - 0x68]
add esp, 4
mov eax, dword [ebp - 0x54]
push 0
push eax
lea ecx, [ebx + 0x10]
call fcn.0044ea60
mov edx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x1c], edx
mov esi, edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], 0x3fffffff
mov al, byte [0x6ecbbc]
test al, al
jne 0x4ddccd
call fcn.004ef9d0
mov al, byte [0x6ecbbc]
cmp byte [0x6ecbc2], 0
je 0x4ddd1b
test al, al
jne 0x4ddcdf
call fcn.004ef9d0
cmp byte [0x6ecbbf], 0
je 0x4ddd1b
push esi
push edi
push dword [ebp - 0x58]
call fcn.004f02c0
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
add esp, 0xc
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x4de549
push dword [ebx + 0xc]
push dword [ebx + 0x1c]
call fcn.004f0260
add esp, 8
jmp 0x4de549
mov eax, dword [ebp - 0x64]
shl eax, 2
mov dword [ebp - 0x54], eax
test edi, edi
je 0x4ddd8a
test esi, esi
jne 0x4ddd39
call fcn.00637999
mov dword [eax], 0x16
jmp 0x4ddd82
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4ddd51
cmp eax, edi
jb 0x4ddd51
push edi
push ecx
push esi
call fcn.006217b0
add esp, 0xc
jmp 0x4ddd87
push eax
push 0
push esi
call fcn.00621d30
add esp, 0xc
cmp dword [ebp - 0x58], 0
jne 0x4ddd70
call fcn.00637999
mov dword [eax], 0x16
jmp 0x4ddd82
mov eax, dword [ebp - 0x54]
cmp eax, edi
jae 0x4ddd8a
call fcn.00637999
mov dword [eax], 0x22
call fcn.00636c0b
mov eax, dword [ebp - 0x54]
mov ecx, eax
lea eax, [edi + esi]
sub ecx, edi
push ecx
push 0
push eax
call fcn.00621d30
add esp, 0xc
cmp edi, 0xfffffffc
ja 0x4de567
lea eax, [edi + 3]
and eax, 0xfffffffc
push eax
push esi
push esi
push 1
call fcn.004dc480
mov eax, dword [ebp - 0x54]
add esp, 0x10
mov dword [ebp - 0x5c], 0x67645c
mov ecx, dword [eax + esi - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x676258]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x676258]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + 0x676258]
xor edx, eax
movzx eax, byte [ecx + 0x676258]
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 0x54]
xor edx, dword [esi]
xor edx, dword [0x676458]
mov dword [eax + esi], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0x54]
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [ebp - 0x64]
lea edi, [eax*4 + 8]
mov dword [esi + eax*4 + 8], ecx
mov dword [ebp - 0x64], edi
lea edi, [eax*4 + 0xc]
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [ebp - 0x60], edi
mov dword [edi + esi], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x58], ecx
lea ecx, [ecx + eax*4]
lea eax, [edx + 0x10]
add eax, esi
cmp eax, ecx
je 0x4ddf7f
cmp edi, 0x18
jne 0x4dde7e
mov ecx, dword [esi + 0x24]
xor ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
jmp 0x4ddeea
cmp edi, 0x20
jne 0x4ddeea
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + 0x676258]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x676258]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x676258]
xor edx, eax
movzx eax, cl
mov ecx, dword [esi + 0x18]
shl edx, 8
movzx eax, byte [eax + 0x676258]
xor edx, eax
mov eax, dword [esi + 0x14]
xor edx, dword [esi + 0x10]
xor eax, edx
mov dword [esi + 0x30], edx
mov edx, dword [ebp - 0x54]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
add esi, edx
mov ecx, dword [esi + edx - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x676258]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x676258]
xor edx, eax
movzx eax, cl
shr ecx, 0x18
shl edx, 8
movzx eax, byte [eax + 0x676258]
xor edx, eax
movzx eax, byte [ecx + 0x676258]
mov ecx, dword [ebp - 0x5c]
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 0x54]
xor edx, dword [ecx]
add ecx, 4
xor edx, dword [esi]
mov dword [esi + eax], edx
mov eax, dword [esi + 4]
xor eax, edx
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x54]
mov dword [esi + edx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + esi], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x58], ecx
lea ecx, [ecx + eax*4]
lea eax, [edx + 0x10]
add eax, esi
cmp eax, ecx
jne 0x4dde66
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x4de035
cmp byte [0x6ec8d0], 0
jne 0x4de00c
xor ebx, ebx
nop dword [eax]
movzx esi, byte [ebx + 0x676258]
mov edx, esi
mov edi, esi
shr edx, 7
imul eax, edx, 0x1b000000
shl edi, 0x19
lea ecx, [esi + esi]
xor edi, eax
mov eax, esi
shl eax, 8
or eax, esi
shl eax, 8
or edi, eax
imul eax, edx, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, esi
or eax, edi
or ecx, edi
mov dword [ebx*8 + 0x6eb8c0], eax
mov dword [ebx*8 + 0x6eb8c4], ecx
inc ebx
cmp ebx, 0x100
jl 0x4ddfa0
mov ebx, dword [ebp - 0x6c]
xorps xmm0, xmm0
movlpd qword [0x6ec0c8], xmm0
movlpd qword [0x6ec0c0], xmm0
mov byte [0x6ec8d0], 1
mov edi, dword [ebp - 0x58]
push 0x10
push edi
push edi
push 1
call fcn.004dc480
mov eax, dword [ebx + 0xc]
shl eax, 4
add eax, edi
push 0x10
push eax
push eax
push 1
call fcn.004dc480
add esp, 0x20
jmp 0x4de519
cmp byte [0x6ec8d1], 0
jne 0x4de043
call fcn.004dc8c0
mov eax, dword [ebx + 0xc]
mov esi, 4
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], esi
lea eax, [eax*4 - 4]
cmp eax, esi
jbe 0x4de34f
mov ebx, eax
lea eax, [ebx + 2]
lea eax, [edi + eax*4]
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x18]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi - 8]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [ebp - 0x54]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov dword [edx - 8], ecx
mov dword [edi - 8], esi
mov edx, dword [edx - 4]
mov eax, edx
shr eax, 8
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*8 + 0x6ec0d2]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d1]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi - 4]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 8
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d2]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d1]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov eax, dword [ebp - 0x54]
mov dword [eax - 4], ecx
mov dword [edi - 4], esi
mov edx, dword [eax]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov eax, dword [ebp - 0x54]
mov dword [eax], ecx
mov dword [edi], esi
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax + 0x676258]
xor esi, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x5c]
add esi, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], esi
sub ebx, 4
lea edi, [edi - 0x10]
cmp esi, ebx
jb 0x4de074
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x58]
mov edx, dword [edi + esi*4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi + esi*4 + 4]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [edi + esi*4], ecx
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d2]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d1]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi + esi*4 + 8]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + esi*4 + 4], ecx
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
mov edx, dword [edi + esi*4 + 0xc]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + esi*4 + 8], ecx
movzx ecx, byte [eax + 0x676258]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x6ec0d1]
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d2]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d4]
movzx eax, dl
movzx eax, byte [eax + 0x676258]
xor ecx, dword [eax*8 + 0x6ec0d3]
mov dword [edi + esi*4 + 0xc], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8]
bswap eax
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 4]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 4]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 4], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 8]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 8]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0xc]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 0xc], ecx
cmp byte [0x6ecbbc], 0
jne 0x4de527
call fcn.004ef9d0
cmp byte [0x6ecbc2], 0
je 0x4de549
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 0x10]
shl eax, 4
sub eax, 0x10
push eax
push ecx
push ecx
push 1
call fcn.004dc480
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0061f478
mov esp, ebp
pop ebp
ret 0xc
push str.RoundUpToMultipleOf:_integer_overflow
lea ecx, [ebp - 0x28]
call fcn.00411360
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0040e840
push 0x6d1d1c
lea eax, [ebp - 0x50]
push eax
call fcn.0062173b
int3