Function at 0x475b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x30], eax
push esi
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebx + 4]
mov eax, dword [esi - 0x10]
xor eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [esi - 0xc]
xor eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi - 8]
xor eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi - 4]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
call fcn.00475640
lea ecx, [ebp - 0x18]
call fcn.00475510
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
sar esi, 4
sub esi, 2
mov dword [ebp - 0x24], esi
je 0x475d1b
mov eax, esi
lea edx, [ebp - 0x17]
shl eax, 4
lea edi, [ebp - 0x15]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebx]
add ecx, eax
mov eax, dword [ecx]
xor dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
xor dword [ebp - 0x14], eax
mov eax, dword [ecx + 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ecx + 0xc]
xor dword [ebp - 0xc], eax
xor esi, esi
mov bl, byte [edi + esi*4]
lea eax, [ebp - 0x18]
mov al, byte [eax + esi*4]
mov cl, bl
mov bh, byte [ebp + esi*4 - 0x16]
mov byte [ebp - 0x1a], al
mov al, byte [edx + esi*4]
mov dl, 0xe
mov byte [ebp - 0x19], al
call fcn.00475740
mov dl, 9
movzx edi, al
mov cl, bh
call fcn.00475740
mov cl, byte [ebp - 0x19]
mov dl, 0xd
movzx eax, al
xor edi, eax
call fcn.00475740
mov cl, byte [ebp - 0x1a]
mov dl, 0xb
movzx eax, al
xor edi, eax
call fcn.00475740
movzx eax, al
mov dl, 0xb
xor edi, eax
mov cl, bl
shl edi, 8
mov dword [ebp - 0x20], edi
call fcn.00475740
mov dl, 0xe
movzx edi, al
mov cl, bh
call fcn.00475740
mov cl, byte [ebp - 0x19]
mov dl, 9
movzx eax, al
xor edi, eax
call fcn.00475740
mov cl, byte [ebp - 0x1a]
mov dl, 0xd
movzx eax, al
xor edi, eax
call fcn.00475740
movzx eax, al
mov dl, 0xd
xor edi, eax
mov cl, bl
mov eax, dword [ebp - 0x20]
or eax, edi
shl eax, 8
mov dword [ebp - 0x20], eax
call fcn.00475740
mov dl, 0xb
movzx edi, al
mov cl, bh
call fcn.00475740
mov cl, byte [ebp - 0x19]
mov dl, 0xe
movzx eax, al
xor edi, eax
call fcn.00475740
mov cl, byte [ebp - 0x1a]
mov dl, 9
movzx eax, al
xor edi, eax
call fcn.00475740
movzx eax, al
mov dl, 9
xor edi, eax
mov cl, bl
mov eax, dword [ebp - 0x20]
or eax, edi
shl eax, 8
mov dword [ebp - 0x20], eax
call fcn.00475740
mov dl, 0xd
movzx edi, al
mov cl, bh
call fcn.00475740
mov cl, byte [ebp - 0x19]
mov dl, 0xb
movzx eax, al
xor edi, eax
call fcn.00475740
mov cl, byte [ebp - 0x1a]
mov dl, 0xe
movzx eax, al
xor edi, eax
call fcn.00475740
movzx eax, al
lea ecx, [ebp - 0x18]
xor edi, eax
lea edx, [ebp - 0x17]
mov eax, dword [ebp - 0x20]
or eax, edi
lea edi, [ebp - 0x15]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, 4
jl 0x475bc3
call fcn.00475640
lea ecx, [ebp - 0x18]
call fcn.00475510
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0x17]
mov eax, dword [ebp - 0x28]
dec esi
mov ebx, dword [ebp - 0x2c]
sub eax, 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
test esi, esi
jne 0x475ba6
mov edi, dword [ebx]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
xor ecx, dword [edi + 8]
xor esi, dword [edi]
mov edx, dword [ebp - 0x14]
xor edx, dword [edi + 4]
mov eax, dword [ebp - 0xc]
xor eax, dword [edi + 0xc]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 8]
pop edi
mov dword [ebx], esi
xor ecx, ebp
pop esi
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], eax
pop ebx
call fcn.004b75b2
mov esp, ebp
pop ebp
ret