Function at 0x475080
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 + 0x14], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
jbe 0x4750c0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x475280
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
jne 0x4752d3
movzx eax, byte [esi + 0xf]
movzx ebx, byte [esi + 0xc]
movzx edi, byte [esi + 0xd]
movzx ebp, byte [esi + 0xe]
mov byte [esp + 0x10], al
mov eax, dword [esi + 0x168]
test eax, eax
je 0x47518f
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x47516a
mov byte [esp + 0x1c], bl
mov ebx, edi
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x20], bl
mov ebx, ebp
mov edi, dword [esp + 0x5c]
mov byte [esp + 0x24], bl
jmp 0x475124
test edi, edi
je 0x47514f
add dword [esp + 0x54], 1
add ecx, 1
mov edx, dword [esp + 0x54]
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 0x475120
test eax, eax
movzx ebx, byte [esp + 0x1c]
mov dword [esp + 0x5c], edi
movzx ebp, byte [esp + 0x24]
mov dword [esp + 0x58], ecx
movzx edi, byte [esp + 0x20]
je 0x47517d
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.00474040
mov eax, edi
movzx edi, al
movzx eax, byte [esp + 0x10]
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 + 0x5c], 0xf
jbe 0x47535c
lea eax, [esi + 0x60]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x40]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
sub eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 1]
shr dword [esp + 0x2c], 4
mov dword [esp + 0x10], eax
add eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
call eax
mov ecx, dword [esp + 0x10]
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 0x475230
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.00474040
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x4752a0
add eax, 1
mov dword [esp + 0x10], eax
jmp 0x4751f4
cmp eax, 0xffffffe0
ja 0x4750b0
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
je 0x4750da
jmp 0x4752d3
mov eax, dword [esp + 0x2c]
and dword [esp + 0x5c], 0xf
add eax, 1
shl eax, 4
add dword [esp + 0x58], eax
add dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x4752f4
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x168], eax
mov eax, 1
jmp 0x475175
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.00474040
mov dword [esi + 0x16c], 0
jmp 0x4750da
mov eax, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
call eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
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 0x475340
jmp 0x4752bf
mov dword [esp + 0x1c], ebx
jmp 0x4752b7