Function at 0x475370
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 edi, dword [esp + 0x58]
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 0x4753a6
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x4754a0
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x4754bd
movzx eax, byte [ebx + 0xd]
movzx ebp, byte [ebx + 0xc]
mov byte [esp + 0x20], 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 0x475453
test esi, esi
je 0x47542e
mov ecx, ebp
mov ebp, dword [esp + 0x54]
mov byte [esp + 0x1c], cl
jmp 0x4753fa
test esi, esi
je 0x475421
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 0x4753f6
test eax, eax
mov dword [esp + 0x54], ebp
movzx ebp, byte [esp + 0x1c]
je 0x475441
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.00474040
mov eax, ebp
mov ebp, esi
shl eax, 0x18
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x20]
shl eax, 0x10
or dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x2f]
or dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x28]
shl eax, 8
or dword [esp + 0x1c], eax
and ebp, 0xfffffff0
jne 0x47554b
test esi, esi
jne 0x4754de
mov dword [ebx + 0x168], esi
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x47539c
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x4753c0
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.00474040
mov dword [ebx + 0x16c], 0
jmp 0x4753c0
mov eax, dword [esp + 0x24]
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 + 0x1c]
mov ebp, dword [esp + 0x54]
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 0x475524
mov ebx, dword [esp + 0x50]
jmp 0x47548c
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub esi, ebp
shr eax, 4
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], edi
mov dword [esp], ecx
call dword [esp + 0x60]
mov edx, dword [esp + 0x28]
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x54], 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
test edx, edx
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], cl
je 0x475488
lea ecx, [ebx + 0x40]
mov ebp, edi
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
lea eax, [ebx + 0x60]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
mov esi, ebp
mov ebp, eax
mov edi, ecx
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x4755c8
mov eax, dword [esp + 0x20]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00474040
sub edi, 1
jne 0x4755c6
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
shl eax, 4
add edi, eax
jmp 0x475488