Function at 0x4ac4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ec
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x5d4], ebx
mov dword [ebp - 0x5b8], eax
cmp edi, 0x100
jbe 0x4ac4e3
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x5d0], eax
jmp 0x4ac4ed
mov dword [ebp - 0x5d0], 0x10
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004cddb0
add esp, 0xc
mov ecx, esi
mov edx, edi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x50]
sub edx, 1
jne 0x4ac501
cmp dword [ebp - 0x50], edi
jne 0x4ac531
mov eax, dword [ebp - 0x5b8]
mov dword [ebx], edx
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp dword [ebp + ecx*4 - 0x50], 0
jne 0x4ac543
inc ecx
cmp ecx, 0x10
jbe 0x4ac536
mov edx, dword [ebp - 0x5b8]
mov eax, ecx
mov dword [ebp - 0x5a8], eax
cmp dword [edx], ecx
jae 0x4ac557
mov dword [edx], ecx
mov eax, 0x10
nop dword [eax]
cmp dword [ebp + eax*4 - 0x50], 0
jne 0x4ac56c
sub eax, 1
jne 0x4ac560
mov dword [ebp - 0x5c4], eax
cmp dword [edx], eax
jbe 0x4ac578
mov dword [edx], eax
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x4ac590
sub edx, dword [ebp + ecx*4 - 0x50]
js 0x4ac5a5
inc ecx
add edx, edx
cmp ecx, eax
jb 0x4ac583
lea ebx, [eax*4]
mov ecx, edx
sub edx, dword [ebp + ebx - 0x50]
mov dword [ebp - 0x5ec], edx
jns 0x4ac5bb
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp + ebx - 0x50], ecx
mov dword [ebp - 0x94], edx
sub eax, 1
je 0x4ac5e3
xor ecx, ecx
nop
add edx, dword [ebp + ecx - 0x4c]
lea ecx, [ecx + 4]
mov dword [ebp + ecx - 0x94], edx
sub eax, 1
jne 0x4ac5d0
push 0x480
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.004cddb0
add esp, 0xc
xor ecx, ecx
nop dword [eax + eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4ac61f
mov eax, dword [ebp + edx*4 - 0x98]
mov dword [ebp + eax*4 - 0x5a0], ecx
inc eax
mov dword [ebp + edx*4 - 0x98], eax
inc ecx
cmp ecx, edi
jb 0x4ac600
mov eax, dword [ebp + ebx - 0x98]
xor edx, edx
mov ecx, dword [ebp - 0x5a8]
xor esi, esi
mov ebx, dword [ebp - 0x5c4]
or edi, 0xffffffff
mov dword [ebp - 0x5e4], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x5b4], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5c0], edi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0x5a4], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x5dc], edx
mov dword [ebp - 0x5d8], edx
cmp ecx, ebx
jg 0x4ac991
lea eax, [ebp - 0x50]
mov esi, edx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x5c8], eax
mov eax, dword [eax]
test eax, eax
je 0x4ac973
mov ebx, dword [ebp + edi*4 - 0xdc]
mov dword [ebp - 0x5cc], eax
dec eax
mov dword [ebp - 0x5e0], eax
lea eax, [ebx + edx]
cmp ecx, eax
jle 0x4ac80a
nop
mov eax, dword [ebp - 0x5c4]
add edx, ebx
mov ebx, dword [ebp - 0x5b8]
sub eax, edx
inc edi
mov dword [ebp - 0x5a4], edx
mov dword [ebp - 0x5c0], edi
mov esi, dword [ebx]
cmp eax, esi
mov ebx, ecx
cmovbe esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x5cc]
jbe 0x4ac729
mov edx, dword [ebp - 0x5c8]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x5e0]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x4ac723
nop
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x4ac723
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x4ac710
mov edx, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0x5d0]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x4ac73e
cmp edx, ecx
jae 0x4ac73e
mov ebx, ecx
sub ebx, edx
mov ecx, ebx
mov dword [ebp + edi*4 - 0xdc], ebx
mov esi, 1
shl esi, cl
mov dword [ebp - 0x5d8], esi
lea eax, [esi*8 + 8]
push eax
call fcn.004dad8d
add esp, 4
test eax, eax
je 0x4ac9cb
mov edx, dword [ebp - 0x5d4]
lea ecx, [eax + 8]
mov esi, dword [ebp - 0x5b4]
add eax, 4
mov dword [ebp - 0x5dc], ecx
mov dword [ebp - 0x5d4], eax
mov dword [edx], ecx
mov dword [eax], 0
mov dword [ebp + edi*4 - 0x120], ecx
test edi, edi
je 0x4ac7f3
mov al, byte [ebp + edi*4 - 0xe0]
mov edx, 1
mov dword [ebp - 0x5ac], ecx
mov ecx, dword [ebp - 0x5a4]
shl edx, cl
sub ecx, dword [ebp + edi*4 - 0xe0]
dec edx
and edx, esi
mov byte [ebp - 0x5af], al
shr edx, cl
lea eax, [ebx + 0x20]
mov ecx, dword [ebp + edi*4 - 0x124]
mov byte [ebp - 0x5b0], al
mov eax, dword [ebp - 0x5b0]
mov dword [ebp + edi*4 - 0x98], esi
mov dword [ecx + edx*8], eax
mov eax, dword [ebp - 0x5ac]
mov dword [ecx + edx*8 + 4], eax
mov edx, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0x5a8]
lea eax, [edx + ebx]
cmp ecx, eax
jg 0x4ac6c0
mov al, cl
lea ebx, [ebp - 0x5a0]
sub al, dl
mov byte [ebp - 0x5af], al
mov eax, dword [ebp - 0x5e4]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp - 0x5bc]
cmp ebx, eax
jb 0x4ac836
mov byte [ebp - 0x5b0], 0x63
jmp 0x4ac88a
mov ecx, dword [ebx]
add ebx, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5bc], ebx
cmp ecx, eax
jae 0x4ac862
cmp ecx, 0x100
mov word [ebp - 0x5ac], cx
setb al
add al, 0x1f
mov byte [ebp - 0x5b0], al
jmp 0x4ac884
sub ecx, eax
mov dword [ebp - 0x5bc], ebx
mov eax, dword [ebp + 0x14]
mov al, byte [ecx + eax]
mov byte [ebp - 0x5b0], al
mov eax, dword [ebp + 0x10]
mov ax, word [eax + ecx*2]
mov word [ebp - 0x5ac], ax
mov ecx, dword [ebp - 0x5a8]
mov ebx, dword [ebp - 0x5d8]
sub ecx, edx
mov eax, 1
shl eax, cl
mov ecx, edx
shr esi, cl
mov dword [ebp - 0x5cc], eax
cmp esi, ebx
jae 0x4ac8ed
mov edx, dword [ebp - 0x5b0]
mov ecx, dword [ebp - 0x5cc]
mov edi, dword [ebp - 0x5ac]
shl eax, 3
mov dword [ebp - 0x5e8], eax
mov eax, dword [ebp - 0x5dc]
lea eax, [eax + esi*8]
nop dword [eax + eax]
mov dword [eax], edx
add esi, ecx
mov dword [eax + 4], edi
add eax, dword [ebp - 0x5e8]
cmp esi, ebx
jb 0x4ac8d0
mov edx, dword [ebp - 0x5a4]
mov edi, dword [ebp - 0x5c0]
mov ecx, dword [ebp - 0x5a8]
mov eax, 1
mov esi, dword [ebp - 0x5b4]
lea ecx, [ecx - 1]
shl eax, cl
test esi, eax
je 0x4ac90f
xor esi, eax
shr eax, 1
test esi, eax
jne 0x4ac907
xor esi, eax
mov ecx, edx
mov eax, 1
mov dword [ebp - 0x5b4], esi
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [ebp + edi*4 - 0x98]
je 0x4ac959
nop dword [eax]
sub edx, dword [ebp + edi*4 - 0xe0]
dec edi
mov eax, 1
mov ecx, edx
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [ebp + edi*4 - 0x98]
jne 0x4ac930
mov dword [ebp - 0x5c0], edi
mov dword [ebp - 0x5a4], edx
mov eax, dword [ebp - 0x5e0]
mov ecx, dword [ebp - 0x5a8]
test eax, eax
jne 0x4ac6a0
mov ebx, dword [ebp - 0x5c4]
mov eax, dword [ebp - 0x5c8]
inc ecx
add eax, 4
mov dword [ebp - 0x5a8], ecx
mov dword [ebp - 0x5c8], eax
cmp ecx, ebx
jle 0x4ac696
cmp dword [ebp - 0x5ec], 0
mov ecx, dword [ebp - 0x5b8]
mov eax, dword [ebp - 0xdc]
mov dword [ecx], eax
je 0x4ac51e
cmp ebx, 1
je 0x4ac51e
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4ac9f5
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4ac9f5
nop dword [eax]
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.004dab64
add esp, 4
mov eax, esi
test esi, esi
jne 0x4ac9e0
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret