Function at 0x47b670
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
jbe 0x47b6a0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x47b860
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
jne 0x47b8b3
movzx eax, byte [esi + 0xf]
movzx ebx, byte [esi + 0xc]
movzx edi, byte [esi + 0xd]
movzx ebp, byte [esi + 0xe]
mov byte [esp + 0x14], al
mov eax, dword [esi + 0x168]
test eax, eax
je 0x47b76f
mov edx, dword [esp + 0x60]
test edx, edx
je 0x47b74a
mov byte [esp + 0x1c], bl
mov ebx, edi
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x20], bl
mov ebx, ebp
mov edi, dword [esp + 0x60]
mov byte [esp + 0x24], bl
jmp 0x47b704
test edi, edi
je 0x47b72f
add dword [esp + 0x58], 1
add ecx, 1
mov edx, dword [esp + 0x58]
sub edi, 1
movzx ebp, byte [esi + eax + 0x10]
movzx ebx, byte [edx - 1]
xor ebp, ebx
mov edx, ebp
mov byte [ecx - 1], dl
xor byte [esi + eax + 0x40], bl
add eax, 1
and eax, 0xf
jne 0x47b700
test eax, eax
movzx ebx, byte [esp + 0x1c]
mov dword [esp + 0x60], edi
movzx ebp, byte [esp + 0x24]
mov dword [esp + 0x5c], ecx
movzx edi, byte [esp + 0x20]
je 0x47b75d
mov dword [esi + 0x168], eax
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.0047a660
mov eax, edi
movzx edi, al
movzx eax, byte [esp + 0x14]
shl ebx, 0x18
shl edi, 0x10
or ebx, edi
or ebx, eax
mov eax, ebp
movzx ebp, al
shl ebp, 8
or ebx, ebp
cmp dword [esp + 0x60], 0xf
jbe 0x47b93c
lea eax, [esi + 0x60]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x40]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
sub eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 1]
shr dword [esp + 0x2c], 4
mov dword [esp + 0x14], eax
add eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov ecx, dword [esp + 0x14]
mov edx, esi
mov eax, ecx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
xor eax, eax
mov byte [esi + 0xf], cl
mov ecx, dword [edi + eax*4]
mov ebx, dword [edx + 0x10]
xor ebx, ecx
mov dword [ebp + eax*4], ebx
add eax, 1
xor dword [edx + 0x40], ecx
add edx, 4
cmp eax, 4
jne 0x47b810
mov eax, dword [esp + 0x20]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0047a660
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, edx
je 0x47b880
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x47b7d4
cmp eax, 0xffffffe0
ja 0x47b696
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
je 0x47b6ba
jmp 0x47b8b3
mov eax, dword [esp + 0x2c]
and dword [esp + 0x60], 0xf
add eax, 1
shl eax, 4
add dword [esp + 0x5c], eax
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x47b8d4
mov eax, dword [esp + 0x60]
mov dword [esi + 0x168], eax
mov eax, 1
jmp 0x47b755
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.0047a660
mov dword [esi + 0x16c], 0
jmp 0x47b6ba
mov eax, dword [esp + 0x54]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
add eax, 1
mov edx, eax
shr edx, 0x18
mov byte [esi + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [esi + 0xe], dl
mov edx, esi
mov byte [esi + 0xf], al
xor eax, eax
nop
movzx ecx, byte [ebx + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [edi + eax], cl
add eax, 1
cmp eax, ebp
jne 0x47b920
jmp 0x47b89f
mov dword [esp + 0x1c], ebx
jmp 0x47b897