Function at 0x47a7c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], 1
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov ecx, eax
push edi
mov edi, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ecx
mov ebx, ebp
jne 0x47a938
cmp eax, 0x10
jb 0x47a8a1
shr eax, 4
mov dword [esp + 0x14], eax
jmp 0x47a810
mov edx, ebx
sub edx, edi
mov dword [esp + 0x20], edx
mov edx, esi
lea ebp, [ebx + 3]
sub edx, edi
sub ebx, esi
lea ecx, [esi + 1]
mov eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 4
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov ebx, dword [esp + 0x24]
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 + 0x1c], 1
mov byte [ecx - 2], bl
jne 0x47a832
mov eax, dword [esp + 0x18]
push esi
mov edx, esi
call fcn.0047b280
sub dword [esp + 0x14], 0x10
mov ebx, esi
add esp, 4
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x14], 1
jne 0x47a810
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47a90e
jbe 0x47a8d7
mov edx, ebx
sub edx, edi
mov eax, esi
mov dword [esp + 0x20], edx
sub eax, edi
mov dword [esp + 0x14], ecx
jmp 0x47a8c4
mov edx, dword [esp + 0x20]
mov dl, byte [edi + edx]
xor dl, byte [edi]
add edi, 1
sub dword [esp + 0x14], 1
mov byte [edi + eax - 1], dl
jne 0x47a8c0
cmp ecx, 0x10
jae 0x47a8fd
mov edi, ebx
mov edx, 0x10
sub edi, esi
lea eax, [esi + ecx]
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax + edi]
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x47a8f0
mov eax, dword [esp + 0x18]
push esi
mov edx, esi
call fcn.0047b280
add esp, 4
mov ebx, esi
mov edx, dword [ebx]
mov dword [ebp], edx
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebp + 0xc], edx
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004fe05a
add esp, 0x30
ret
cmp edi, esi
je 0x47aa10
cmp eax, 0x10
jb 0x47a9af
shr eax, 4
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov eax, dword [esp + 0x18]
push esi
mov edx, edi
call fcn.0047b7f0
add esp, 4
lea ecx, [ebx + 2]
mov eax, esi
sub ebx, esi
mov dword [esp + 0x14], 4
mov edi, edi
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 + 0x14], 1
jne 0x47a970
sub dword [esp + 0x10], 0x10
mov ebx, edi
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x1c], 1
jne 0x47a950
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47a9f7
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
mov edx, edi
call fcn.0047b7f0
xor ecx, ecx
add esp, 4
cmp dword [esp + 0x10], ecx
jbe 0x47a9f5
lea edx, [esp + 0x2c]
mov eax, edx
sub ebx, edx
sub esi, eax
jmp 0x47a9e0
lea eax, [esp + ecx + 0x2c]
mov dl, byte [eax + ebx]
xor dl, byte [eax]
add ecx, 1
cmp ecx, dword [esp + 0x10]
mov byte [eax + esi], dl
jb 0x47a9e0
mov ebx, edi
mov eax, dword [ebx]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
jmp 0x47ab36
cmp eax, 0x10
jb 0x47aaaf
sub ebx, esi
shr eax, 4
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push esi
mov edx, edi
mov dword [esp + 0x3c], ecx
call fcn.0047b7f0
add esp, 4
lea eax, [ebp + 2]
mov ecx, 4
movzx edx, byte [ebx + esi]
xor byte [esi], dl
movzx edx, byte [eax - 1]
xor byte [esi + 1], dl
movzx edx, byte [eax]
xor byte [esi + 2], dl
movzx edx, byte [eax + 1]
xor byte [esi + 3], dl
add esi, 4
add eax, 4
sub ecx, 1
jne 0x47aa54
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub dword [esp + 0x10], 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 4], ecx
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x14], 1
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
jne 0x47aa22
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47ab39
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [esp + 0x30]
mov dword [esp + 0x3c], ecx
call fcn.0047b7f0
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
jbe 0x47ab00
mov edi, ebp
mov eax, esi
sub edi, esi
mov edx, ecx
mov bl, byte [eax + edi]
xor byte [eax], bl
add eax, 1
sub edx, 1
jne 0x47aaf3
cmp ecx, 0x10
jae 0x47ab1d
mov edx, 0x10
sub edx, ecx
push edx
lea eax, [esp + ecx + 0x30]
add esi, ecx
push eax
push esi
call fcn.004fff80
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fe05a
add esp, 0x30
ret