Function at 0x43f560
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
fldz
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov edx, ebx
test edx, edx
push esi
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
push edi
jge 0x43f581
fadd dword [0x4baea8]
fld1
xor edi, edi
cmp ebx, 4
fld st(0)
fdivrp st(2)
jl 0x43f6df
mov esi, dword [esp + 0x20]
lea edx, [ebx - 4]
shr edx, 2
add edx, 1
mov dword [esp + 0x10], edx
add edx, edx
add esi, 8
add edx, edx
mov dword [esp + 0x18], edx
mov edx, dword [ecx]
mov edi, dword [eax]
mov ebx, edx
shr edx, 0x19
and edx, 0x63
movzx ebp, byte [edx + 0x48f180]
mov edx, edi
and edx, 0xf5
movzx edx, byte [edx + 0x48f180]
shl edx, 0x1f
shr edi, 1
or edx, edi
mov dword [eax], edx
lea edx, [ebx + ebx]
or edx, ebp
mov dword [ecx], edx
mov edi, dword [eax]
xor edi, edx
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
fmul st(2)
fst dword [esi - 8]
mov edx, dword [ecx]
mov edi, dword [eax]
fmul st(0), st(0)
mov ebx, edx
shr edx, 0x19
and edx, 0x63
faddp st(3)
movzx ebp, byte [edx + 0x48f180]
mov edx, edi
and edx, 0xf5
movzx edx, byte [edx + 0x48f180]
shl edx, 0x1f
shr edi, 1
or edx, edi
mov dword [eax], edx
lea edx, [ebx + ebx]
or edx, ebp
mov dword [ecx], edx
mov edi, dword [eax]
xor edi, edx
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
fmul st(2)
fst dword [esi - 4]
mov edx, dword [ecx]
mov edi, dword [eax]
fmul st(0), st(0)
mov ebx, edx
shr edx, 0x19
and edx, 0x63
faddp st(3)
movzx ebp, byte [edx + 0x48f180]
mov edx, edi
and edx, 0xf5
movzx edx, byte [edx + 0x48f180]
shl edx, 0x1f
shr edi, 1
or edx, edi
mov dword [eax], edx
lea edx, [ebx + ebx]
or edx, ebp
mov dword [ecx], edx
mov edi, dword [eax]
xor edi, edx
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
fmul st(2)
fst dword [esi]
mov edx, dword [ecx]
mov edi, dword [eax]
fmul st(0), st(0)
mov ebx, edx
shr edx, 0x19
and edx, 0x63
faddp st(3)
movzx ebp, byte [edx + 0x48f180]
mov edx, edi
and edx, 0xf5
movzx edx, byte [edx + 0x48f180]
shl edx, 0x1f
shr edi, 1
or edx, edi
mov dword [eax], edx
lea edx, [ebx + ebx]
or edx, ebp
mov dword [ecx], edx
mov edi, dword [eax]
xor edi, edx
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
add esi, 0x10
sub dword [esp + 0x10], 1
fmul st(2)
fst dword [esi - 0xc]
fmul st(0), st(0)
faddp st(3)
jne 0x43f5ae
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
cmp edi, ebx
jae 0x43f73c
mov edx, dword [ecx]
mov esi, dword [eax]
mov ebx, edx
shr edx, 0x19
and edx, 0x63
movzx ebp, byte [edx + 0x48f180]
mov edx, esi
and edx, 0xf5
movzx edx, byte [edx + 0x48f180]
shl edx, 0x1f
shr esi, 1
or edx, esi
mov dword [eax], edx
lea edx, [ebx + ebx]
or edx, ebp
mov dword [ecx], edx
mov esi, dword [eax]
xor esi, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
add edi, 1
cmp edi, dword [esp + 0x28]
fild dword [esp + 0x18]
fmul st(2)
fst dword [edx + edi*4 - 4]
fmul st(0), st(0)
faddp st(3)
jb 0x43f6e3
mov ebx, dword [esp + 0x28]
fstp st(1)
fxch st(1)
fsqrt
fdivp st(1)
fstp dword [esp + 0x28]
fild dword [esp + 0x24]
fmul qword [0x4bae78]
fld qword [0x4baed8]
fxch st(1)
call fcn.00471170
fmul dword [esp + 0x28]
mov esi, dword [esp + 0x20]
xor ecx, ecx
cmp ebx, 4
jl 0x43f7a9
lea edx, [ebx - 4]
shr edx, 2
add edx, 1
lea eax, [esi + 8]
lea ecx, [edx*4]
fld dword [eax - 8]
add eax, 0x10
sub edx, 1
fmul st(1)
fstp dword [eax - 0x18]
fld dword [eax - 0x14]
fmul st(1)
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fmul st(1)
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fmul st(1)
fstp dword [eax - 0xc]
jne 0x43f781
cmp ecx, ebx
jae 0x43f7bd
fld dword [esi + ecx*4]
add ecx, 1
cmp ecx, ebx
fmul st(1)
fstp dword [esi + ecx*4 - 4]
jb 0x43f7ad
pop edi
fstp st(0)
pop esi
pop ebp
pop ebx
add esp, 0xc
ret