Function at 0x475fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 0xc], 0
mov eax, ecx
push ebx
mov ebx, edx
mov dword [ebp - 0x10], eax
push esi
lea ecx, [eax + 0x400]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ecx
lea edx, [eax + 0x1000]
lea ecx, [eax + 0x800]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [eax + 0xc00]
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], 0
jne 0x475ff7
lea esi, [ebp - 1]
mov dword [ebp - 0x18], 1
mov dword [ebp + 0xc], esi
mov byte [ebp - 1], 0
jmp 0x475ffd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
movsx edi, word [ebp + 8]
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x14], eax
sub ecx, edx
mov esi, edx
mov dword [ebp - 0x20], ecx
cdq
idiv edi
movzx eax, byte [edx + ebx]
lea ebx, [ecx + esi]
shl eax, 0x18
lea esi, [esi + 4]
xor dword [esi - 4], eax
lea eax, [ebx - 1]
cdq
idiv edi
mov eax, dword [ebp - 0xc]
movzx ecx, byte [edx + eax]
mov eax, ebx
cdq
idiv edi
mov eax, dword [ebp - 0xc]
shl ecx, 0x10
xor ecx, dword [esi - 4]
mov dword [esi - 4], ecx
movzx edi, byte [edx + eax]
lea eax, [ebx + 1]
shl edi, 8
xor edi, ecx
cdq
movsx ecx, word [ebp + 8]
idiv ecx
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [esi - 4], edi
movzx eax, byte [edx + ebx]
xor eax, edi
movsx edi, word [ebp + 8]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, 0x48
jl 0x476012
mov eax, dword [ebp - 0x18]
xor edi, edi
mov esi, dword [ebp + 0xc]
movsx ebx, ax
mov eax, 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], eax
jmp 0x4760a3
mov edi, dword [ebp + 0xc]
dec eax
cdq
idiv ebx
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
add dword [ebp - 8], 8
movzx ecx, byte [edx + esi]
cdq
idiv ebx
movzx eax, byte [edx + esi]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
xor edi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x1c], edi
lea eax, [ecx + 2]
cdq
idiv ebx
lea eax, [ecx + 3]
movzx edi, byte [edx + esi]
cdq
idiv ebx
shl edi, 8
movzx eax, byte [edx + esi]
xor edi, eax
lea eax, [ecx + 4]
cdq
idiv ebx
shl edi, 8
movzx eax, byte [edx + esi]
xor edi, eax
lea eax, [ecx + 5]
cdq
add ecx, 8
idiv ebx
shl edi, 8
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [edx + esi]
xor edi, eax
mov eax, dword [ebp - 0x14]
xor eax, edi
mov edx, eax
mov dword [ebp - 0x18], eax
call fcn.00475070
mov edx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
mov dword [eax + edx*4], ecx
mov dword [eax + edx*4 + 4], edi
add edx, 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edx
cmp edx, 0x12
jl 0x4760a0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0
lea ecx, [eax + 2]
mov dword [ebp - 0xc], ecx
nop dword [eax]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
dec eax
add dword [ebp - 8], 8
push dword [ebp - 0x10]
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 2
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 4
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 5
add dword [ebp - 0xc], 8
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x1c]
xor edi, ecx
mov ecx, dword [ebp + 0xc]
push eax
mov edx, edi
mov dword [ebp - 0x18], edi
call fcn.00475070
mov edx, dword [ebp - 0x20]
add esp, 8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], edi
add edx, 2
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jl 0x476180
lea ecx, [eax + 2]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], ecx
nop dword [eax]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
dec eax
add dword [ebp - 8], 8
push dword [ebp - 0x10]
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 2
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 4
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 5
add dword [ebp - 0xc], 8
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x1c]
xor edi, ecx
mov ecx, dword [ebp + 0xc]
push eax
mov edx, edi
mov dword [ebp - 0x18], edi
call fcn.00475070
mov ecx, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], edi
add ecx, 2
mov dword [ebp - 0x20], ecx
cmp ecx, 0x100
jl 0x476260
lea ecx, [eax + 2]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], ecx
nop dword [eax]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
dec eax
add dword [ebp - 8], 8
push dword [ebp - 0x10]
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 2
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 4
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 5
add dword [ebp - 0xc], 8
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x1c]
xor edi, ecx
mov ecx, dword [ebp + 0xc]
push eax
mov edx, edi
mov dword [ebp - 0x18], edi
call fcn.00475070
mov ecx, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], edi
add ecx, 2
mov dword [ebp - 0x20], ecx
cmp ecx, 0x100
jl 0x476340
lea ecx, [eax + 2]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], ecx
nop dword [eax]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
dec eax
add dword [ebp - 8], 8
push dword [ebp - 0x10]
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 2
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 4
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 5
add dword [ebp - 0xc], 8
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x1c]
xor edi, ecx
mov ecx, dword [ebp + 0xc]
push eax
mov edx, edi
mov dword [ebp - 0x18], edi
call fcn.00475070
mov ecx, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], edi
add ecx, 2
mov dword [ebp - 0x20], ecx
cmp ecx, 0x100
jl 0x476420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret