Function at 0x47d6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x47d6d0
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x47d8a0
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x47d8bd
movzx eax, byte [ebx + 0xc]
mov byte [esp + 0x20], al
movzx eax, byte [ebx + 0xd]
mov byte [esp + 0x34], al
movzx eax, byte [ebx + 0xe]
mov byte [esp + 0x38], al
movzx eax, byte [ebx + 0xf]
mov byte [esp + 0x3f], al
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x47d786
test esi, esi
je 0x47d759
mov dword [esp + 0x60], ebx
jmp 0x47d724
test esi, esi
je 0x47d751
mov ebx, dword [esp + 0x60]
add edi, 1
add ecx, 1
movzx edx, byte [edi - 1]
sub esi, 1
movzx ebp, byte [ebx + eax + 0x10]
xor ebp, edx
mov ebx, ebp
mov byte [ecx - 1], bl
mov ebx, dword [esp + 0x60]
xor byte [ebx + eax + 0x40], dl
add eax, 1
and eax, 0xf
jne 0x47d720
test eax, eax
mov ebx, dword [esp + 0x60]
je 0x47d76c
mov dword [ebx + 0x168], eax
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x30], ecx
call fcn.0047c110
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
shl eax, 0x18
mov dword [esp + 0x30], eax
movzx eax, byte [esp + 0x34]
shl eax, 0x10
or dword [esp + 0x30], eax
movzx eax, byte [esp + 0x3f]
or dword [esp + 0x30], eax
movzx eax, byte [esp + 0x38]
shl eax, 8
or dword [esp + 0x30], eax
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x38], eax
je 0x47d889
shr eax, 4
test eax, eax
mov dword [esp + 0x34], eax
je 0x47d82f
lea edx, [ebx + 0x40]
mov ebp, edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
lea eax, [ebx + 0x60]
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], esi
mov esi, ebp
mov ebp, eax
mov dword [esp + 0x6c], ecx
mov edi, edx
nop
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x47d7f2
mov eax, dword [esp + 0x20]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0047c110
sub edi, 1
jne 0x47d7f0
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
shl eax, 4
add edi, eax
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
sub edi, ebp
sub esi, ebp
mov dword [esp], edi
add edi, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
call dword [esp + 0x74]
mov eax, dword [esp + 0x34]
add dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
mov byte [ebx + 0xf], cl
mov ecx, dword [esp + 0x20]
shr eax, 8
mov byte [ebx + 0xe], al
add ecx, ebp
test esi, esi
jne 0x47d8e6
mov dword [ebx + 0x168], esi
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x47d6c6
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x47d6ea
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.0047c110
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x16c], 0
jmp 0x47d6ea
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
call dword [ebx + 0x170]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add eax, 1
mov edx, eax
mov ebp, ecx
shr edx, 0x18
mov byte [ebx + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [ebx + 0xe], dl
mov edx, ebx
mov byte [ebx + 0xf], al
xor eax, eax
nop
movzx ecx, byte [edi + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [ebp + eax], cl
add eax, 1
cmp eax, esi
jne 0x47d930
jmp 0x47d88d