Function at 0x475610
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 + 0x5c]
mov ecx, dword [esp + 0x54]
mov eax, dword [ebx + 0x174]
mov dword [esp + 0x24], eax
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x475646
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x47581d
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x47583a
movzx eax, byte [ebx + 0xd]
movzx ebp, byte [ebx + 0xc]
mov byte [esp + 0x1c], al
movzx eax, byte [ebx + 0xe]
mov byte [esp + 0x28], al
movzx eax, byte [ebx + 0xf]
mov byte [esp + 0x2c], al
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x47570f
test esi, esi
je 0x4756e2
mov edx, ebp
mov byte [esp + 0x20], dl
mov edx, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
jmp 0x4756a4
test esi, esi
je 0x4756d1
add dword [esp + 0x54], 1
add edx, 1
mov edi, dword [esp + 0x54]
sub esi, 1
movzx ebp, byte [ebx + eax + 0x10]
movzx edi, byte [edi - 1]
xor ebp, edi
mov ecx, ebp
mov byte [edx - 1], cl
mov ecx, edi
xor byte [ebx + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x4756a0
test eax, eax
movzx ebp, byte [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], edx
je 0x4756f5
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
mov dword [esp + 0x20], ecx
call fcn.00474040
mov ecx, dword [esp + 0x20]
mov eax, ebp
shl eax, 0x18
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x1c]
shl eax, 0x10
or dword [esp + 0x20], eax
movzx eax, byte [esp + 0x2c]
or dword [esp + 0x20], eax
movzx eax, byte [esp + 0x28]
shl eax, 8
or dword [esp + 0x20], eax
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
je 0x475806
shr eax, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x4757ab
lea edi, [ebx + 0x40]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x28]
lea eax, [ebx + 0x60]
mov dword [esp + 0x5c], esi
mov ebp, eax
mov esi, ecx
mov dword [esp + 0x54], 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 0x475772
mov eax, dword [esp + 0x1c]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00474040
sub edi, 1
jne 0x475770
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
shl eax, 4
add ecx, eax
mov eax, dword [esp + 0x24]
mov edi, ecx
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
sub edi, ebp
sub esi, ebp
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [esp + 0x60]
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
add dword [esp + 0x58], ebp
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
shr eax, 8
mov byte [ebx + 0xf], cl
lea ecx, [edi + ebp]
mov byte [ebx + 0xe], al
test esi, esi
jne 0x475863
mov dword [ebx + 0x168], esi
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x47563c
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x475660
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.00474040
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x16c], 0
jmp 0x475660
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 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 + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x58]
add eax, 1
mov edx, eax
mov edi, 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 0x4758b0
jmp 0x47580a