Function at 0x4ddb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x18], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x4dde14
jb 0x4ddb3d
cmp eax, 0xffffffe0
ja 0x4dde14
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x168]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
je 0x4ddbba
test edx, edx
jne 0x4ddb7f
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.004decf0
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ecx]
lea ebx, [esi + 0x178]
mov eax, 0x10
mov dword [ebp - 4], eax
movups xmmword [ebx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
jmp 0x4ddbc3
lea ebx, [esi + 0x178]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0xc]
bswap ecx
mov dword [ebp - 8], ecx
mov ecx, eax
and ecx, 0xf
mov dword [ebp - 0x24], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
je 0x4ddc5d
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x4ddc28
mov cl, byte [edi]
lea eax, [esi + 0x178]
mov dword [ebp - 0x14], eax
dec edx
mov eax, dword [ebp - 4]
inc edi
mov dword [ebp + 0x14], edx
mov byte [esi + eax + 0x178], cl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + esi + 0x10]
xor al, cl
mov ecx, dword [ebp - 0x10]
mov byte [ebx], al
inc ecx
mov eax, dword [ebp - 4]
inc ebx
inc eax
and ecx, 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x4ddbe6
mov edx, dword [ebp - 0x14]
jmp 0x4ddc2f
mov edx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4ddc4e
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x40]
push ecx
push edx
lea ecx, [esi + 0x60]
push ecx
push eax
call fcn.004deb20
mov edx, dword [ebp + 0x14]
add esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ddc60
pop edi
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x60]
cmp edx, 0x10
jb 0x4ddc88
test eax, eax
je 0x4ddc88
push eax
lea eax, [esi + 0x178]
push eax
push ecx
push dword [ebp - 0xc]
call fcn.004deb20
mov edx, dword [ebp + 0x14]
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp edx, 0xc00
jb 0x4ddd1a
mov eax, 0xaaaaaaab
mul edx
shr edx, 0xb
mov dword [ebp - 0x20], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call fcn.004deb20
add esp, 0x10
mov dword [ebp - 0x14], 0xc0
nop dword [eax]
push dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov dword [ebp - 8], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x14], 1
jne 0x4ddcc0
mov edx, dword [ebp + 0x14]
sub edx, 0xc00
sub dword [ebp - 0x20], 1
mov dword [ebp + 0x14], edx
jne 0x4ddca1
mov eax, edx
and eax, 0xfffffff0
je 0x4ddd94
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [ebp - 0xc]
call fcn.004deb20
mov edx, dword [ebp + 0x14]
add esp, 0x10
cmp edx, 0x10
jb 0x4ddd94
shr edx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], edx
push dword [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
sub edx, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x20], 1
lea eax, [esi + 0x10]
mov dword [ebp + 0x14], edx
jne 0x4ddd43
test edx, edx
je 0x4dde02
push dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
inc eax
mov edx, dword [ebp + 0x14]
bswap eax
mov dword [esi + 0xc], eax
lea eax, [ecx + ebx]
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x20]
add eax, ecx
sub edi, ebx
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 4]
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
lea esi, [esi + 1]
mov cl, byte [edi + esi - 1]
mov byte [eax + ebx], cl
inc ebx
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov al, byte [eax]
xor al, cl
mov byte [esi - 1], al
sub edx, 1
jne 0x4dddd0
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret