Function at 0x4ac250
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.004f50c0
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, dword [esp + 0x34]
mov bl, byte [esi]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [esp + 0x40]
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test bl, 0x40
jne 0x4ac294
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
cmp eax, 0xf
jae 0x4ac2c3
movzx ebx, byte [esi + eax]
or ecx, ebx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4ac2b0
movzx eax, byte [esi + 0xf]
or ecx, eax
mov eax, dword [esp + 0x44]
mov byte [esi + 0xf], 1
cmp ecx, eax
je 0x4ac2ea
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004f2889
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
push ebp
cmp eax, 0x10
jb 0x4ac393
shr eax, 4
lea ebp, [esi + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [esp + 0x20]
add esp, 0xc
mov eax, 8
lea esp, [esp]
mov cl, byte [eax + esi + 7]
dec eax
inc cl
mov byte [eax + esi + 8], cl
jne 0x4ac331
test eax, eax
jne 0x4ac320
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edx, eax
xor dword [ebp], edx
mov eax, dword [edi + 4]
xor dword [ebp + 4], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
xor ecx, dword [esp + 0x30]
xor eax, dword [esp + 0x2c]
mov dword [edi + 0xc], ecx
mov dword [edi + 8], eax
xor dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x18]
xor dword [esi + 0x18], eax
push ecx
push ebp
push ebp
call dword [esp + 0x20]
sub dword [esp + 0x54], 0x10
add esp, 0xc
add ebx, 0x10
add edi, 0x10
dec dword [esp + 0x1c]
jne 0x4ac302
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4ac3f2
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x20]
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x48], eax
jbe 0x4ac3dd
lea ecx, [esp + 0x24]
mov edx, ecx
sub ebx, ecx
sub edi, edx
jmp 0x4ac3c0
movzx ebp, byte [esp + eax + 0x24]
lea ecx, [esp + eax + 0x24]
movzx edx, byte [ebx + ecx]
xor edx, ebp
mov byte [edi + ecx], dl
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, dword [esp + 0x48]
jb 0x4ac3c0
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add esp, 0xc
pop ebp
cmp edx, 0x10
jae 0x4ac40e
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.004f50f0
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x30]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f2889
add esp, 0x28
ret