Function at 0x4da148
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x174]
mov dword [ebp - 0x18], eax
mov eax, edi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x4da40f
jb 0x4da17e
cmp eax, 0xffffffe0
ja 0x4da40f
mov esi, dword [ebx + 0x168]
lea edx, [ebx + 0x40]
mov dword [ebx + 0x3c], ecx
xor ecx, ecx
mov dword [ebx + 0x38], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x16c], ecx
je 0x4da1e4
test edi, edi
jne 0x4da1ba
lea eax, [ebx + 0x60]
push eax
push edx
call fcn.004dab6b
and dword [ebx + 0x16c], edi
pop ecx
pop ecx
xor eax, eax
jmp 0x4da412
lea eax, [ebx + 0x178]
mov dword [ebx + 0x16c], ecx
mov esi, edx
mov edi, eax
push 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], ecx
mov dword [ebp - 8], esi
jmp 0x4da1ed
lea eax, [ebx + 0x178]
mov dword [ebp - 0x14], edx
movzx ecx, byte [ebx + 0xc]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xf]
shl ecx, 8
or ecx, eax
mov eax, esi
and eax, 0xf
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
je 0x4da291
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], edx
jmp 0x4da230
lea eax, [ebx + 0x178]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x4da268
mov al, byte [eax + ebx + 0x10]
xor al, byte [edx]
lea edx, [ebx + 0x178]
mov byte [ecx], al
mov byte [ebx + esi + 0x178], al
inc esi
mov eax, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x14]
inc edx
dec edi
inc eax
mov dword [ebp + 0x14], edx
and eax, 0xf
mov dword [ebp - 0x10], eax
jne 0x4da22a
mov dword [ebp - 4], ecx
test eax, eax
jne 0x4da404
push esi
push dword [ebp - 8]
lea ecx, [ebx + 0x60]
lea eax, [ebx + 0x40]
push ecx
push eax
call fcn.004da94e
mov edx, dword [ebp - 0x14]
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x4da29d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
lea ecx, [ebx + 0x60]
cmp edi, 0x10
jb 0x4da2c0
test esi, esi
je 0x4da2c0
push esi
lea eax, [ebx + 0x178]
push eax
push ecx
push edx
call fcn.004da94e
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
mov ecx, 0xc00
cmp edi, ecx
jb 0x4da341
mov eax, edi
mov esi, dword [ebp - 4]
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x18]
push 0xc0
push esi
push eax
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, 0xc0
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
push 0xc00
mov byte [ebx + 0xe], al
lea eax, [ebx + 0x60]
push esi
push eax
push dword [ebp - 0x14]
mov byte [ebx + 0xf], cl
call fcn.004da94e
mov eax, dword [ebp + 0x14]
mov ecx, 0xc00
add eax, ecx
add esp, 0x24
add esi, ecx
mov dword [ebp + 0x14], eax
sub edi, ecx
sub dword [ebp - 0x10], 1
jne 0x4da2d8
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
jmp 0x4da344
mov eax, dword [ebp + 0x14]
mov ecx, edi
and ecx, 0xfffffff0
mov dword [ebp - 0x10], ecx
je 0x4da3a7
push ebx
push dword [ebp - 0x18]
mov esi, ecx
shr esi, 4
push esi
push dword [ebp - 4]
push eax
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, esi
mov esi, dword [ebp - 4]
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xf], cl
mov ecx, dword [ebp - 0x10]
sub edi, ecx
add dword [ebp + 0x14], ecx
push ecx
mov byte [ebx + 0xe], al
lea eax, [ebx + 0x60]
push esi
push eax
push dword [ebp - 0x14]
call fcn.004da94e
add esp, 0x24
add esi, dword [ebp - 0x10]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
test edi, edi
je 0x4da404
push dword [ebp - 0x18]
lea eax, [ebx + 0x10]
push eax
push ebx
call dword [ebx + 0x170]
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + 0x10]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
mov ecx, dword [ebp - 4]
shr eax, 8
mov byte [ebx + 0xe], al
mov eax, dword [ebp + 0x14]
sub eax, ecx
mov dword [ebp + 0x14], eax
mov al, byte [eax + ecx]
xor al, byte [edx]
mov ebx, dword [ebp - 0x1c]
mov byte [ecx], al
mov byte [ebx + esi], al
inc esi
mov ebx, dword [ebp + 8]
inc edx
mov eax, dword [ebp + 0x14]
inc ecx
sub edi, 1
jne 0x4da3e9
mov dword [ebx + 0x168], esi
jmp 0x4da1b3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret