Function at 0x100ac240
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x100a7d64
mov dword [esp + 0x18], fcn.100a88f0
jmp fcn.100ac0a0
mov dword [esp + 0x18], fcn.100a96b0
jmp 0x100ac240
mov eax, 0x3c
call fcn.100230e0
mov eax, dword [0x10143328]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
cmp ebp, edi
je 0x100ac2e9
mov eax, esi
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x100ac2d1
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x24]
push edx
push edi
push ebp
call dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
xor dword [edi], ecx
mov edx, dword [eax + 4]
xor dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
xor dword [edi + 0xc], edx
mov dword [esp + 0x24], ebp
add esp, 0xc
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
jne 0x100ac291
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
jmp 0x100ac356
cmp ebx, 0x10
jb 0x100ac356
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [esp + 0x28]
mov eax, dword [ebp]
mov edx, dword [esi]
xor edx, dword [esp + 0x44]
add esp, 0xc
mov dword [edi], edx
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
xor edx, dword [esp + 0x40]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0xc]
xor ecx, dword [esp + 0x44]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
mov dword [esi + 0xc], eax
jne 0x100ac2f7
test ebx, ebx
je 0x100ac4c0
lea edx, [esp + 0x38]
mov eax, esi
sub eax, edx
mov dword [esp + 0x28], eax
mov ecx, edx
mov eax, 1
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, ecx
lea edx, [edi + 2]
sub edi, eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [esp + 0x28]
add esp, 0xc
xor eax, eax
cmp eax, ebx
jae 0x100ac476
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea ecx, [esp + eax + 0x38]
movzx edx, byte [ecx + edx]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx]
xor dl, byte [ecx + edi]
mov edi, dword [esp + 0x14]
mov byte [ecx + edi], dl
movzx edx, byte [esp + 0x13]
mov edi, dword [esp + 0x28]
mov byte [ecx + edi], dl
mov edx, dword [esp + 0x34]
add edx, ecx
cmp edx, ebx
jae 0x100ac46b
movzx edx, byte [eax + ebp + 1]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx + 1]
xor dl, byte [esi + eax + 1]
mov byte [edi + eax - 1], dl
movzx edx, byte [esp + 0x13]
mov byte [esi + eax + 1], dl
mov edx, dword [esp + 0x2c]
add edx, ecx
cmp edx, ebx
jae 0x100ac46e
movzx edx, byte [eax + ebp + 2]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx + 2]
xor dl, byte [esi + eax + 2]
mov byte [edi + eax], dl
movzx edx, byte [esp + 0x13]
mov byte [esi + eax + 2], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, ebx
jae 0x100ac473
mov cl, byte [ecx + 3]
xor cl, byte [esi + eax + 3]
mov dl, byte [eax + ebp + 3]
mov byte [edi + eax + 1], cl
mov byte [esi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x100ac3b8
jmp 0x100ac476
inc eax
jmp 0x100ac476
add eax, 2
jmp 0x100ac476
add eax, 3
mov edx, 0x10
cmp ebx, edx
jbe 0x100ac4aa
add dword [esp + 0x20], edx
add dword [esp + 0x14], edx
add dword [esp + 0x18], edx
sub ebx, edx
add ebp, edx
test ebx, ebx
jne 0x100ac3a4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1000efa1
add esp, 0x3c
ret
cmp eax, edx
jae 0x100ac4c0
sub ebp, esi
lea ecx, [esi + eax]
sub edx, eax
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100ac4b5
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000efa1
add esp, 0x3c
ret