Function at 0x47a540
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004707b0
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov esi, dword [esi]
je 0x47a679
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ebp
test esi, esi
je 0x47a5a4
mov ebx, dword [esp + 0x34]
jmp 0x47a580
test edi, edi
je 0x47a5a4
movzx ecx, byte [esi + ebx]
dec edi
movzx eax, byte [ebp]
inc ebp
xor ecx, eax
mov dword [esp + 0x3c], ebp
mov byte [esi + ebx], cl
inc esi
mov byte [edx], cl
inc edx
mov dword [esp + 0x10], edx
and esi, 0xf
jne 0x47a580
cmp edi, 0x10
jb 0x47a61b
mov ecx, dword [esp + 0x34]
mov eax, edi
shr eax, 4
mov ebx, edx
mov dword [esp + 0x18], eax
sub ebx, ecx
shl eax, 4
sub ebp, ecx
add edx, eax
add dword [esp + 0x3c], eax
mov dword [esp + 0x10], edx
jmp 0x47a5d4
mov ecx, dword [esp + 0x34]
push dword [esp + 0x30]
push ecx
push ecx
call dword [esp + 0x4c]
add esp, 0xc
cmp esi, 0x10
jae 0x47a60a
mov ecx, dword [esp + 0x34]
mov edx, 0xf
sub edx, esi
add ecx, esi
shr edx, 2
inc edx
mov eax, dword [ecx + ebp]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
dec edx
jne 0x47a5f7
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x18]
jne 0x47a5d0
test edi, edi
je 0x47a7aa
push dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
push ebp
push ebp
call dword [esp + 0x4c]
mov ebx, dword [esp + 0x1c]
lea edx, [esi + ebp]
sub dword [esp + 0x48], ebp
add esp, 0xc
sub ebx, ebp
add esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x3c]
jmp 0x47a650
movzx ecx, byte [edx + esi]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [edx + ebx - 1], cl
dec edi
jne 0x47a650
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], edi
test esi, esi
je 0x47a6c6
mov edx, dword [esp + 0x34]
lea esp, [esp]
test ebx, ebx
je 0x47a6c6
mov al, byte [esi + edx]
dec ebx
mov cl, byte [edi]
inc edi
xor al, cl
mov dword [esp + 0x3c], edi
mov byte [ebp], al
inc ebp
mov byte [esi + edx], cl
inc esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
and esi, 0xf
jne 0x47a6a0
mov edx, dword [esp + 0x40]
cmp ebx, 0x10
jb 0x47a767
mov ecx, dword [esp + 0x34]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, ebx
shr eax, 4
mov dword [esp + 0x1c], eax
jmp 0x47a6f4
mov ecx, dword [esp + 0x34]
push dword [esp + 0x30]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x47a741
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
sub ebx, ebp
mov ebp, 0xf
add edi, esi
sub ebp, esi
mov esi, dword [esp + 0x18]
shr ebp, 2
inc ebp
nop
mov eax, dword [edi]
lea ecx, [esi + edi]
mov edx, dword [ecx + ebx]
lea edi, [edi + 4]
xor eax, edx
mov dword [ecx], eax
mov dword [edi - 4], edx
dec ebp
jne 0x47a720
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
add dword [esp + 0x18], 0x10
sub ebx, 0x10
mov edx, dword [esp + 0x40]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 0x10], ebx
xor esi, esi
mov dword [esp + 0x14], ebp
dec dword [esp + 0x1c]
mov dword [esp + 0x3c], edi
jne 0x47a6f0
test ebx, ebx
je 0x47a7aa
push dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push eax
push eax
call edx
mov ecx, dword [esp + 0x40]
sub edi, ebp
add esp, 0xc
sub ebp, ecx
lea eax, [esi + ecx]
add esi, ebx
mov dword [esp + 0x18], esi
mov esi, eax
mov dword [esp + 0x3c], eax
mov al, byte [esi]
lea ecx, [esi + ebp]
mov dl, byte [ecx + edi]
lea esi, [esi + 1]
xor al, dl
mov byte [ecx], al
mov byte [esi - 1], dl
dec ebx
jne 0x47a791
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret