Function at 0x4725c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
cmp dword [esp + 0x2c], 1
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov ebp, eax
push edi
mov edi, edx
mov dword [esp + 0x10], ebp
mov ebx, ecx
jne 0x4726ff
cmp eax, 0x10
jb 0x472684
shr eax, 4
mov dword [esp + 0x14], eax
mov edx, ebx
sub edx, edi
mov dword [esp + 0x18], edx
mov edx, esi
lea ebp, [ebx + 3]
sub edx, edi
sub ebx, esi
lea ecx, [esi + 1]
mov eax, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], 4
mov ebx, dword [esp + 0x18]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [ebx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
movzx ebx, byte [eax - 2]
xor bl, byte [ebp - 1]
add ebp, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [ebp - 4]
sub dword [esp + 0x3c], 1
mov byte [ecx - 2], bl
jne 0x472614
mov eax, dword [esp + 0x34]
push eax
push esi
mov eax, esi
call fcn.00471a80
sub dword [esp + 0x18], 0x10
mov ebx, esi
add esp, 8
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x14], 1
jne 0x4725f2
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x4726e1
jbe 0x4726a7
mov eax, ebx
mov ecx, esi
sub eax, edi
sub ecx, edi
mov dword [esp + 0x3c], ebp
mov dl, byte [edi + eax]
xor dl, byte [edi]
inc edi
sub dword [esp + 0x3c], 1
mov byte [edi + ecx - 1], dl
jne 0x472696
cmp ebp, 0x10
jae 0x4726cb
mov edi, ebx
mov ecx, 0x10
sub edi, esi
lea eax, [esi + ebp]
sub ecx, ebp
lea ebx, [ebx]
mov dl, byte [eax + edi]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4726c0
mov eax, dword [esp + 0x34]
push eax
push esi
mov eax, esi
call fcn.00471a80
mov ecx, dword [esp + 0x40]
add esp, 8
mov ebx, esi
mov edx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
pop edi
pop esi
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0xc]
pop ebp
mov dword [ecx + 0xc], eax
pop ebx
add esp, 0x20
ret
cmp edi, esi
je 0x4727cc
cmp eax, 0x10
jb 0x47276f
shr eax, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
push ecx
push esi
mov eax, edi
call fcn.00472040
add esp, 8
lea ecx, [ebx + 2]
mov eax, esi
sub ebx, esi
mov dword [esp + 0x3c], 4
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub dword [esp + 0x3c], 1
jne 0x472732
mov ebx, edi
sub ebp, 0x10
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x14], 1
jne 0x472713
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x4727ae
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, edi
call fcn.00472040
add esp, 8
xor ecx, ecx
test ebp, ebp
jbe 0x4727a8
lea edx, [esp + 0x20]
mov eax, edx
sub ebx, edx
sub esi, eax
lea eax, [esp + ecx + 0x20]
mov dl, byte [eax + ebx]
xor dl, byte [eax]
inc ecx
mov byte [eax + esi], dl
cmp ecx, ebp
jb 0x472797
mov ecx, dword [esp + 0x38]
mov ebx, edi
mov eax, dword [ebx]
mov dword [ecx], eax
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 8]
pop edi
pop esi
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0xc]
pop ebp
mov dword [ecx + 0xc], edx
pop ebx
add esp, 0x20
ret
cmp eax, 0x10
jb 0x47287a
sub ebx, esi
lea edx, [ecx + 2]
shr eax, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x30], eax
push esi
mov eax, edi
mov dword [esp + 0x30], edx
call fcn.00472040
mov ecx, dword [esp + 0x24]
mov eax, esi
add esp, 8
mov esi, 4
jmp 0x472820
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub esi, 1
jne 0x472820
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
sub ebp, 0x10
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x3c], 1
mov dword [ecx + 0xc], edx
mov esi, eax
jne 0x4727e5
test ebp, ebp
je 0x472903
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
call fcn.00472040
mov edi, dword [esp + 0x40]
add esp, 8
test ebp, ebp
jbe 0x4728cb
mov ecx, edi
mov eax, esi
sub ecx, esi
mov edx, ebp
nop
mov bl, byte [eax + ecx]
xor byte [eax], bl
inc eax
sub edx, 1
jne 0x4728c0
cmp ebp, 0x10
jae 0x4728e8
mov edx, 0x10
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x24]
push eax
add esi, ebp
push esi
call fcn.00597e30
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret