Function at 0x47d400
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x47d430
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x47d522
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x47d53f
movzx eax, byte [ebx + 0xc]
mov byte [esp + 0x20], al
movzx eax, byte [ebx + 0xd]
mov byte [esp + 0x24], al
movzx eax, byte [ebx + 0xe]
mov byte [esp + 0x28], al
movzx eax, byte [ebx + 0xf]
mov byte [esp + 0x2f], al
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x47d4d4
test esi, esi
jne 0x47d484
jmp 0x47d4af
test esi, esi
je 0x47d4ab
movzx ecx, byte [ebx + eax + 0x40]
add ebp, 1
add edi, 1
movzx edx, byte [ebx + eax + 0x10]
sub esi, 1
xor dl, byte [ebp - 1]
xor ecx, edx
mov byte [edi - 1], dl
mov byte [ebx + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x47d480
test eax, eax
je 0x47d4c2
mov dword [ebx + 0x168], eax
add esp, 0x3c
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
call fcn.0047c110
mov eax, dword [esp + 0x20]
shl eax, 0x18
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x24]
shl eax, 0x10
or dword [esp + 0x20], eax
movzx eax, byte [esp + 0x2f]
or dword [esp + 0x20], eax
movzx eax, byte [esp + 0x28]
shl eax, 8
or dword [esp + 0x20], eax
mov eax, esi
and eax, 0xfffffff0
jne 0x47d5c9
test esi, esi
jne 0x47d560
mov dword [ebx + 0x168], esi
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x47d426
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x47d44a
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.0047c110
mov dword [ebx + 0x16c], 0
jmp 0x47d44a
mov eax, dword [esp + 0x54]
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 + 0x20]
mov dword [esp + 0x50], ebx
add eax, 1
mov edx, eax
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
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [ebp + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, esi
jne 0x47d5a2
mov ebx, dword [esp + 0x50]
jmp 0x47d50f
mov ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
shr ecx, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 8], ecx
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 4], edi
call dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 0x18
mov byte [ebx + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 0xd], dl
mov edx, eax
mov byte [ebx + 0xf], al
mov eax, dword [esp + 0x24]
shr edx, 8
mov byte [ebx + 0xe], dl
add ebp, eax
sub esi, eax
test ecx, ecx
je 0x47d50b
lea ecx, [ebx + 0x40]
mov edx, edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
lea eax, [ebx + 0x60]
mov dword [esp + 0x58], ebp
mov ebp, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov esi, edx
mov edi, ecx
lea esi, [esi]
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x47d652
mov eax, dword [esp + 0x24]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0047c110
sub edi, 1
jne 0x47d650
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
shl eax, 4
add edi, eax
jmp 0x47d50b