Function at 0x475510
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, ecx
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 0xa98]
dec eax
cmp eax, 4
ja case.default.0x47553c
push ebx
push edi
jmp dword [eax*4 + 0x47581c]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x475807
nop
movzx eax, byte [esi + 0x10b6]
lea ebp, [ebp + 1]
add byte [esi + 0x10b5], al
movzx eax, byte [esi + 0x10b5]
add byte [esi + 0x10b4], al
movzx eax, byte [esi + 0x10b4]
sub byte [ebp - 1], al
sub ecx, 1
jne 0x475550
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00443db6
add esp, 0x30
ret 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x475807
mov edx, 0x1234
add dx, word [esi + 0x10b8]
lea ebp, [ebp + 1]
dec eax
movzx ebx, dx
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 1
movzx eax, al
mov word [esi + 0x10b8], dx
lea ecx, [esi + eax*4]
movzx eax, word [ecx + 0xba4]
xor word [esi + 0x10ba], ax
movzx eax, word [ecx + 0xba6]
mov ecx, 1
sub word [esi + 0x10bc], ax
movzx eax, word [esi + 0x10be]
movzx edx, word [esi + 0x10ba]
movzx edi, word [esi + 0x10bc]
ror ax, cl
xor ax, dx
mov edx, 0x1234
ror ax, cl
movzx eax, ax
mov word [esi + 0x10be], ax
xor eax, edi
xor eax, ebx
mov word [esi + 0x10b8], ax
shr eax, 8
xor byte [ebp - 1], al
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4755a2
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00443db6
add esp, 0x30
ret 8
mov edx, dword [esp + 0x48]
test edx, edx
je 0x475807
dec edx
shr edx, 4
inc edx
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov eax, dword [ebp + 4]
xor eax, dword [esi + 0x10a8]
mov ecx, dword [ebp]
mov ebx, dword [esi + 0x10ac]
xor ecx, dword [esi + 0x10a4]
xor ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [esi + 0x10b0]
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, 0x1f
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
lea esp, [esp]
and eax, 3
mov ecx, ebp
rol ecx, 0xb
add ecx, ebx
mov edx, dword [esi + eax*4 + 0x10a4]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + esi + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0xfa4]
shl eax, 8
or edi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + esi + 0xfa4]
or edi, eax
movzx eax, cl
mov ecx, ebx
shl edi, 8
ror ecx, 0xf
xor ecx, ebp
movzx eax, byte [eax + esi + 0xfa4]
add ecx, edx
or edi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor edi, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
movzx edx, byte [eax + esi + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0xfa4]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + esi + 0xfa4]
or edx, eax
movzx eax, cl
shl edx, 8
mov ecx, ebx
mov ebx, edi
movzx eax, byte [eax + esi + 0xfa4]
or edx, eax
mov eax, dword [esp + 0x1c]
xor edx, dword [esp + 0x14]
sub eax, 1
mov dword [esp + 0x14], ebp
mov ebp, edx
mov dword [esp + 0x1c], eax
jns 0x4756c0
mov eax, dword [esi + 0x10a4]
mov ebp, dword [esp + 0x20]
xor eax, edi
mov dword [ebp], eax
mov eax, dword [esi + 0x10a8]
xor eax, edx
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x10ac]
xor eax, ecx
mov ecx, esi
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x10b0]
xor eax, dword [esp + 0x14]
mov dword [ebp + 0xc], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00476480
add ebp, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], ebp
jne 0x475660
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00443db6
add esp, 0x30
ret 8
push ebp
push dword [esp + 0x4c]
lea ecx, [esi + 0xa9c]
push ebp
call fcn.00489a70
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
xor ecx, esp
call fcn.00443db6
add esp, 0x30
ret 8