Function at 0x47b380
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 0x47b3b0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x47b571
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
jne 0x47b5c3
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 0x47b481
mov edx, dword [esp + 0x60]
test edx, edx
je 0x47b45c
mov byte [esp + 0x1c], bl
mov ebx, edi
mov edi, dword [esp + 0x5c]
mov byte [esp + 0x20], bl
mov ebx, ebp
mov ebp, dword [esp + 0x60]
mov byte [esp + 0x24], bl
mov ebx, dword [esp + 0x58]
jmp 0x47b416
test ebp, ebp
je 0x47b43d
movzx ecx, byte [esi + eax + 0x40]
add ebx, 1
add edi, 1
movzx edx, byte [esi + eax + 0x10]
sub ebp, 1
xor dl, byte [ebx - 1]
xor ecx, edx
mov byte [edi - 1], dl
mov byte [esi + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x47b412
test eax, eax
mov dword [esp + 0x58], ebx
movzx ebx, byte [esp + 0x1c]
mov dword [esp + 0x5c], edi
movzx edi, byte [esp + 0x20]
mov dword [esp + 0x60], ebp
movzx ebp, byte [esp + 0x24]
je 0x47b46f
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 0x47b658
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 ebx, dword [esp + 0x14]
mov edx, esi
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
xor eax, eax
mov byte [esi + 0xf], bl
mov ebx, dword [edx + 0x40]
add edx, 4
mov ecx, dword [edx + 0xc]
xor ecx, dword [edi + eax*4]
mov dword [ebp + eax*4], ecx
xor ebx, ecx
add eax, 1
mov dword [edx + 0x3c], ebx
cmp eax, 4
jne 0x47b522
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 ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x47b590
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x47b4e6
cmp eax, 0xffffffe0
ja 0x47b3a6
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
je 0x47b3ca
jmp 0x47b5c3
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 0x47b5e4
mov eax, dword [esp + 0x60]
mov dword [esi + 0x168], eax
mov eax, 1
jmp 0x47b467
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 0x47b3ca
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 dword [esp + 0x50], esi
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
mov esi, dword [esp + 0x58]
xor eax, eax
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [esi + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, ebp
jne 0x47b632
mov esi, dword [esp + 0x50]
jmp 0x47b5af
mov dword [esp + 0x1c], ebx
jmp 0x47b5a7